cd0addc575aa99a290978fd9dd530d9c935c613a
[packages.git] / mail / nullmailer / Makefile
1 #
2 # Copyright (C) 2007-2009 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:=1
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 TARGET_CFLAGS += $(TARGET_CPPFLAGS)
21
22 define Package/nullmailer
23   SECTION:=mail
24   CATEGORY:=Mail
25   TITLE:=A minimal MTA for hosts which relay to a fixed set of smart relays
26   URL:=http://untroubled.org/nullmailer/
27 endef
28
29 define Package/nullmailer/description
30  This is nullmailer, a sendmail/qmail/etc replacement MTA for hosts
31  which relay to a fixed set of smart relays.  It is designed to be
32  simple to configure, secure, and easily extendable.
33 endef
34
35 CONFIGURE_ARGS += \
36         --prefix=/usr \
37         --sysconfdir=/etc \
38         --libexecdir=/usr/lib
39
40 define Package/nullmailer/install       
41         $(INSTALL_DIR) $(1)/etc/nullmailer
42         echo "# List of smart relays" > $(1)/etc/nullmailer/remotes
43         $(INSTALL_DIR) $(1)/usr/bin
44         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mailq $(1)/usr/bin/
45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-inject $(1)/usr/bin/
46         $(INSTALL_DIR) $(1)/usr/sbin
47         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-queue $(1)/usr/sbin/
48         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-send $(1)/usr/sbin/
49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sendmail $(1)/usr/sbin/
50         $(INSTALL_DIR) $(1)/usr/lib/nullmailer
51         $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/qmqp $(1)/usr/lib/nullmailer
52         $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/smtp $(1)/usr/lib/nullmailer
53         ln -sf ../sbin/sendmail $(1)/usr/lib
54 endef
55
56 $(eval $(call BuildPackage,nullmailer))