packages: add missing conffiles define
[openwrt/svn-archive/archive.git] / mail / nullmailer / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nullmailer
11 PKG_VERSION:=1.05
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://untroubled.org/nullmailer/
16 PKG_MD5SUM:=35124cc05f893efba1310e2ec7c876ff
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/nullmailer
21 SECTION:=mail
22 CATEGORY:=Mail
23 TITLE:=A minimal MTA for hosts which relay to a fixed set of smart relays
24 URL:=http://untroubled.org/nullmailer/
25 endef
26
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.
31 endef
32
33 TARGET_CFLAGS += $(TARGET_CPPFLAGS)
34
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/
48 endef
49
50 define Package/nullmailer/conffiles
51 /etc/nullmailer/remotes
52 endef
53
54 define Package/nullmailer/postinst
55 ln -sf ../sbin/sendmail $${IPKG_INSTROOT}/usr/lib/sendmail
56 ln -sf nullmailer-sendmail $${IPKG_INSTROOT}/usr/sbin/sendmail
57 endef
58
59 $(eval $(call BuildPackage,nullmailer))