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