[package] update fetchmail to 6.3.9 (#5206)
[openwrt/svn-archive/archive.git] / mail / fetchmail / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fetchmail
11 PKG_VERSION:=6.3.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.berlios.de/fetchmail
16 PKG_MD5SUM:=72c20ad2b9629f1a109668b05a84d823
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/fetchmail
21 SECTION:=mail
22 CATEGORY:=Mail
23 TITLE:=Remote mail retriever
24 URL:=http://fetchmail.berlios.de/
25 endef
26
27 define Package/fetchmail/description
28 Retrieves remote mail via POP/IMAP.
29 Very useful in conjunction with mutt.
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --enable-fallback=procmail \
35 --without-hesiod \
36 , \
37 ac_cv_path_procmail=/usr/sbin/procmail \
38 )
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
44 all install
45 endef
46
47 define Package/fetchmail/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,fetchmail))