2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://smtptrapd.inodes.org
16 PKG_MD5SUM
:=edc5f2f3ea9f9bdd9e0f479a58903bf1
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/smtptrapd
24 TITLE
:=SMTP Trap Daemon
25 URL
:=http
://smtptrapd.inodes.org
/
28 define Package
/smtptrapd
/description
29 The smtptrapd program is a multi-threaded daemon that provides
30 a RFC
2821 compliant SMTP service that always returns a
4xx soft
31 error to the RCPT TO verb.
37 -I
$(STAGING_DIR
)/usr
/include \
39 $(PKG_BUILD_DIR
)/smtptrapd.c \
40 -o
$(PKG_BUILD_DIR
)/smtptrapd \
41 -L
$(STAGING_DIR
)/usr
/lib
/ -lpthread
44 define Package
/smtptrapd
/install
45 $(INSTALL_DIR
) $(1)/etc
/init.d
46 $(INSTALL_BIN
) .
/files
/smtptrapd.init
$(1)/etc
/init.d
/smtptrapd
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smtptrapd
$(1)/usr
/sbin
/
51 $(eval
$(call BuildPackage
,smtptrapd
))