[PATCH] nullmailer packaged
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 17 Jan 2010 17:23:42 +0000 (17:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 17 Jan 2010 17:23:42 +0000 (17:23 +0000)
Adds rules to package nullmailer, a relay-only MTA (alternative to ssmtp).
Also available as a branch on github: http://github.com/ChoHag/openwrt-packages
Signed-off-by: Matthew King <matthew.king@monnsta.net>
SVN-Revision: 19190

mail/nullmailer/Makefile [new file with mode: 0644]

diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile
new file mode 100644 (file)
index 0000000..cd0addc
--- /dev/null
@@ -0,0 +1,56 @@
+#
+# Copyright (C) 2007-2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=nullmailer
+PKG_VERSION:=1.05
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://untroubled.org/nullmailer/
+PKG_MD5SUM:=35124cc05f893efba1310e2ec7c876ff
+
+include $(INCLUDE_DIR)/package.mk
+
+TARGET_CFLAGS += $(TARGET_CPPFLAGS)
+
+define Package/nullmailer
+  SECTION:=mail
+  CATEGORY:=Mail
+  TITLE:=A minimal MTA for hosts which relay to a fixed set of smart relays
+  URL:=http://untroubled.org/nullmailer/
+endef
+
+define Package/nullmailer/description
+ This is nullmailer, a sendmail/qmail/etc replacement MTA for hosts
+ which relay to a fixed set of smart relays.  It is designed to be
+ simple to configure, secure, and easily extendable.
+endef
+
+CONFIGURE_ARGS += \
+       --prefix=/usr \
+       --sysconfdir=/etc \
+       --libexecdir=/usr/lib
+
+define Package/nullmailer/install      
+       $(INSTALL_DIR) $(1)/etc/nullmailer
+       echo "# List of smart relays" > $(1)/etc/nullmailer/remotes
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mailq $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-inject $(1)/usr/bin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-queue $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-send $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sendmail $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib/nullmailer
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/qmqp $(1)/usr/lib/nullmailer
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/smtp $(1)/usr/lib/nullmailer
+       ln -sf ../sbin/sendmail $(1)/usr/lib
+endef
+
+$(eval $(call BuildPackage,nullmailer))