2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.catb.org
/~esr
/fetchmail
/
17 PKG_MD5SUM
:=9956b30139edaa4f5f77c4d0dbd80225
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/fetchmail
28 TITLE
:=Remote mail retriever
30 Retrieves remote mail via POP
/IMAP.
\\\
31 Very useful in conjunction with mutt.
32 URL
:=http
://www.catb.org
/~esr
/fetchmail
/
35 define Build
/Configure
36 $(call Build
/Configure
/Default
, \
37 --enable-fallback
=procmail \
40 ac_cv_path_procmail
=/usr
/sbin
/procmail \
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Package
/fetchmail
/install
51 $(INSTALL_DIR
) $(1)/usr
/bin
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fetchmail
$(1)/usr
/bin
/
55 $(eval
$(call BuildPackage
,fetchmail
))