2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://download.berlios.de
/fetchmail
16 PKG_MD5SUM
:=64519711c8533f5a34d20c9ff620d880
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/fetchmail
/Default
26 TITLE
:=Remote mail retriever
27 URL
:=http
://fetchmail.berlios.de
/
30 define Package
/fetchmail
/Default
/description
31 Retrieves remote mail via POP
/IMAP.
32 Very useful in conjunction with mutt.
35 define Package
/fetchmail
36 $(call Package
/fetchmail
/Default
)
38 TITLE
+= (with SSL support
)
42 define Package
/fetchmail
/description
43 $(call Package
/fetchmail
/Default
/description
)
44 This package is built with SSL support.
47 define Package
/fetchmail-nossl
48 $(call Package
/fetchmail
/Default
)
49 TITLE
+= (without SSL support
)
53 define Package
/fetchmail-nossl
/description
54 $(call Package
/fetchmail
/Default
/description
)
55 This package is built without SSL support.
59 --enable-fallback
=procmail \
62 ifeq ($(BUILD_VARIANT
),ssl
)
64 --with-ssl
="$(STAGING_DIR)/usr"
67 ifeq ($(BUILD_VARIANT
),nossl
)
73 ac_cv_path_procmail
=/usr
/sbin
/procmail
75 define Package
/fetchmail
/install
76 $(INSTALL_DIR
) $(1)/usr
/bin
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fetchmail
$(1)/usr
/bin
/
80 Package
/fetchmail-nossl
/install = $(Package
/fetchmail
/install)
82 $(eval
$(call BuildPackage
,fetchmail
))
83 $(eval
$(call BuildPackage
,fetchmail-nossl
))