048fc3e5c376739f0fe32d5837080ab1093c4965
[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 PKG_MD5SUM:=9956b30139edaa4f5f77c4d0dbd80225
15
16 PKG_SOURCE_URL:=http://www.catb.org/~esr/fetchmail/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/fetchmail
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Remote mail retriever
29 DESCRIPTION:=Retrieves remote mail via POP/IMAP\\\
30 Very useful in conjunction with mutt.
31 URL:=http://www.catb.org/~esr/fetchmail/
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --enable-fallback=procmail \
37 --without-hesiod, \
38 ac_cv_path_procmail=/usr/sbin/procmail \
39 )
40 endef
41
42 define Build/Compile
43 rm -rf $(PKG_INSTALL_DIR)
44 mkdir -p $(PKG_INSTALL_DIR)
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Package/fetchmail/install
51 mkdir -p $(1)/usr/bin
52 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,fetchmail))