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
14 PKG_MD5SUM
:=9956b30139edaa4f5f77c4d0dbd80225
16 PKG_SOURCE_URL
:=http
://www.catb.org
/~esr
/fetchmail
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
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
29 DESCRIPTION
:=Retrieves remote mail via POP
/IMAP
\\\
30 Very useful in conjunction with mutt.
31 URL
:=http
://www.catb.org
/~esr
/fetchmail
/
34 define Build
/Configure
35 $(call Build
/Configure
/Default
,--enable-fallback
=procmail
--without-hesiod
,ac_cv_c_bigendian
=no \
36 ac_cv_sizeof_off_t
=8 \
43 rm -rf
$(PKG_INSTALL_DIR
)
44 mkdir
-p
$(PKG_INSTALL_DIR
)
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Package
/fetchmail
/install
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
55 $(eval
$(call BuildPackage
,fetchmail
))