2008-05-08 00:57:21 +00:00
|
|
|
#
|
2011-11-17 10:47:27 +00:00
|
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
2008-05-08 00:57:21 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=smtptrapd
|
|
|
|
PKG_VERSION:=1.5
|
2011-11-17 10:47:27 +00:00
|
|
|
PKG_RELEASE:=2
|
2008-05-08 00:57:21 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2008-07-30 16:37:23 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2008-05-08 00:57:21 +00:00
|
|
|
PKG_MD5SUM:=edc5f2f3ea9f9bdd9e0f479a58903bf1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/smtptrapd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libpthread
|
|
|
|
TITLE:=SMTP Trap Daemon
|
2008-07-30 16:37:23 +00:00
|
|
|
URL:=http://smtptrapd.sourceforge.net/
|
2008-05-08 00:57:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/smtptrapd/description
|
2014-03-27 07:05:21 +00:00
|
|
|
The smtptrapd program is a multi-threaded daemon that provides
|
|
|
|
a RFC 2821 compliant SMTP service that always returns a 4xx soft
|
2008-05-08 00:57:21 +00:00
|
|
|
error to the RCPT TO verb.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(TARGET_CC) \
|
|
|
|
$(TARGET_CFLAGS) \
|
2009-04-29 12:56:17 +00:00
|
|
|
$(TARGET_CPPFLAGS) \
|
2008-05-08 00:57:21 +00:00
|
|
|
-D_REENTRANT \
|
|
|
|
$(PKG_BUILD_DIR)/smtptrapd.c \
|
|
|
|
-o $(PKG_BUILD_DIR)/smtptrapd \
|
2009-04-29 12:56:17 +00:00
|
|
|
$(TARGET_LDFLAGS) \
|
|
|
|
-lpthread
|
2008-05-08 00:57:21 +00:00
|
|
|
endef
|
2014-03-27 07:05:21 +00:00
|
|
|
|
2008-05-08 00:57:21 +00:00
|
|
|
define Package/smtptrapd/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/smtptrapd.init $(1)/etc/init.d/smtptrapd
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smtptrapd $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,smtptrapd))
|