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.xz
15 PKG_SOURCE_URL:=http://download.berlios.de/fetchmail
16 PKG_MD5SUM:=61b66faad044afa26e142bb1791aa2b3
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 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
28 URL:=http://fetchmail.berlios.de/
31 define Package/fetchmail/Default/description
32 Retrieves remote mail via POP/IMAP.
33 Very useful in conjunction with mutt.
36 define Package/fetchmail
37 $(call Package/fetchmail/Default)
39 TITLE+= (with SSL support)
43 define Package/fetchmail/description
44 $(call Package/fetchmail/Default/description)
45 This package is built with SSL support.
48 define Package/fetchmail-nossl
49 $(call Package/fetchmail/Default)
50 TITLE+= (without SSL support)
54 define Package/fetchmail-nossl/description
55 $(call Package/fetchmail/Default/description)
56 This package is built without SSL support.
60 --enable-fallback=procmail \
63 ifeq ($(BUILD_VARIANT),ssl)
65 --with-ssl="$(STAGING_DIR)/usr"
68 ifeq ($(BUILD_VARIANT),nossl)
74 ac_cv_path_procmail=/usr/sbin/procmail
76 define Package/fetchmail/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/
81 Package/fetchmail-nossl/install = $(Package/fetchmail/install)
83 $(eval $(call BuildPackage,fetchmail))
84 $(eval $(call BuildPackage,fetchmail-nossl))