X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=mail%2Ffetchmail%2FMakefile;h=a85ec05e6c42dbeb83f288e7a79410cc3f42ff64;hb=f6fa126284e587a36d7818faa837b1909c4153ac;hp=367356ebcca970b3996ebf27190e230c77adc06f;hpb=31746dfb3bbcd2d9658d1f4fe234e6d09bbf4a12;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile index 367356ebcc..a85ec05e6c 100644 --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2008 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,45 +8,76 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fetchmail -PKG_VERSION:=6.3.9-rc2 +PKG_VERSION:=6.3.19 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://download.berlios.de/fetchmail -PKG_MD5SUM:=29f338f6a0dbef027b420344fda34580 +PKG_MD5SUM:=64519711c8533f5a34d20c9ff620d880 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk -define Package/fetchmail +define Package/fetchmail/Default SECTION:=mail CATEGORY:=Mail TITLE:=Remote mail retriever URL:=http://fetchmail.berlios.de/ endef -define Package/fetchmail/description +define Package/fetchmail/Default/description Retrieves remote mail via POP/IMAP. Very useful in conjunction with mutt. endef -define Build/Configure - $(call Build/Configure/Default, \ - --enable-fallback=procmail \ - --without-hesiod \ - , \ - ac_cv_path_procmail=/usr/sbin/procmail \ - ) +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 Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - all install +define Package/fetchmail-nossl/description + $(call Package/fetchmail/Default/description) + This package is built without SSL support. endef +CONFIGURE_ARGS += \ + --enable-fallback=procmail \ + --without-hesiod + +ifeq ($(BUILD_VARIANT),ssl) + CONFIGURE_ARGS += \ + --with-ssl="$(STAGING_DIR)/usr" +endif + +ifeq ($(BUILD_VARIANT),nossl) + CONFIGURE_ARGS += \ + --without-ssl +endif + +CONFIGURE_VARS += \ + ac_cv_path_procmail=/usr/sbin/procmail + define Package/fetchmail/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/ endef +Package/fetchmail-nossl/install = $(Package/fetchmail/install) + $(eval $(call BuildPackage,fetchmail)) +$(eval $(call BuildPackage,fetchmail-nossl))