2006-08-01 20:19:55 +00:00
|
|
|
#
|
2011-01-06 04:53:53 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-08-01 20:19:55 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=fetchmail
|
2013-07-02 21:27:42 +00:00
|
|
|
PKG_VERSION:=6.3.26
|
2006-08-01 20:19:55 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2011-07-03 21:07:51 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2008-07-05 12:47:06 +00:00
|
|
|
PKG_SOURCE_URL:=http://download.berlios.de/fetchmail
|
2013-07-02 21:27:42 +00:00
|
|
|
PKG_MD5SUM:=61b66faad044afa26e142bb1791aa2b3
|
2010-04-18 13:21:17 +00:00
|
|
|
|
2011-01-06 04:53:53 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL:=1
|
2006-08-01 20:19:55 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-01-06 04:53:53 +00:00
|
|
|
define Package/fetchmail/Default
|
2008-05-03 02:42:43 +00:00
|
|
|
SECTION:=mail
|
|
|
|
CATEGORY:=Mail
|
2006-08-01 20:19:55 +00:00
|
|
|
TITLE:=Remote mail retriever
|
2013-07-03 10:20:19 +00:00
|
|
|
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
2008-07-05 12:47:06 +00:00
|
|
|
URL:=http://fetchmail.berlios.de/
|
2006-08-01 20:19:55 +00:00
|
|
|
endef
|
|
|
|
|
2011-01-06 04:53:53 +00:00
|
|
|
define Package/fetchmail/Default/description
|
2008-05-03 02:42:43 +00:00
|
|
|
Retrieves remote mail via POP/IMAP.
|
|
|
|
Very useful in conjunction with mutt.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2011-01-06 04:53:53 +00:00
|
|
|
define Package/fetchmail
|
|
|
|
$(call Package/fetchmail/Default)
|
|
|
|
DEPENDS+= +libopenssl
|
|
|
|
TITLE+= (with SSL support)
|
|
|
|
VARIANT:=ssl
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fetchmail/description
|
|
|
|
$(call Package/fetchmail/Default/description)
|
|
|
|
This package is built with SSL support.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fetchmail-nossl
|
|
|
|
$(call Package/fetchmail/Default)
|
|
|
|
TITLE+= (without SSL support)
|
|
|
|
VARIANT:=nossl
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fetchmail-nossl/description
|
|
|
|
$(call Package/fetchmail/Default/description)
|
|
|
|
This package is built without SSL support.
|
|
|
|
endef
|
|
|
|
|
2009-09-19 13:27:42 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-fallback=procmail \
|
|
|
|
--without-hesiod
|
2006-08-01 20:19:55 +00:00
|
|
|
|
2011-01-06 04:53:53 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-ssl="$(STAGING_DIR)/usr"
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),nossl)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-ssl
|
|
|
|
endif
|
|
|
|
|
2009-09-19 13:27:42 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_path_procmail=/usr/sbin/procmail
|
2006-08-01 20:19:55 +00:00
|
|
|
|
|
|
|
define Package/fetchmail/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-04-18 13:21:17 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/
|
2006-08-01 20:19:55 +00:00
|
|
|
endef
|
|
|
|
|
2011-01-06 04:53:53 +00:00
|
|
|
Package/fetchmail-nossl/install = $(Package/fetchmail/install)
|
|
|
|
|
2006-08-01 20:19:55 +00:00
|
|
|
$(eval $(call BuildPackage,fetchmail))
|
2011-01-06 04:53:53 +00:00
|
|
|
$(eval $(call BuildPackage,fetchmail-nossl))
|