2 # Copyright (C) 2007-2010 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
://untroubled.org
/nullmailer
/
16 PKG_MD5SUM
:=35124cc05f893efba1310e2ec7c876ff
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/nullmailer
23 TITLE
:=A minimal MTA for hosts which relay to a fixed set of smart relays
24 URL
:=http
://untroubled.org
/nullmailer
/
27 define Package
/nullmailer
/description
28 This is nullmailer
, a sendmail
/qmail
/etc replacement MTA for hosts
29 which relay to a fixed set of smart relays. It is designed to be
30 simple to configure
, secure
, and easily extendable.
33 TARGET_CFLAGS
+= $(TARGET_CPPFLAGS
)
35 define Package
/nullmailer
/install
36 $(INSTALL_DIR
) $(1)/etc
/nullmailer
37 echo
"# List of smart relays" > $(1)/etc
/nullmailer
/remotes
38 $(INSTALL_DIR
) $(1)/usr
/bin
39 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/mailq
$(1)/usr
/bin
/
40 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/nullmailer-inject
$(1)/usr
/bin
/
41 $(INSTALL_DIR
) $(1)/usr
/sbin
42 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/nullmailer-queue
$(1)/usr
/sbin
/
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/nullmailer-send
$(1)/usr
/sbin
/
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/sendmail
$(1)/usr
/sbin
/nullmailer-sendmail
45 $(INSTALL_DIR
) $(1)/usr
/lib
/nullmailer
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/protocols
/qmqp
$(1)/usr
/lib
/nullmailer
/
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/protocols
/smtp
$(1)/usr
/lib
/nullmailer
/
50 define Package
/nullmailer
/postinstall
51 ln
-sf ..
/sbin
/sendmail
$(1)/usr
/lib
/sendmail
52 ln
-sf nullmailer-sendmail
$(1)/usr
/sbin
/sendmail
55 $(eval
$(call BuildPackage
,nullmailer
))