source: packages/mail/nullmailer/Makefile @ 20406

Last change on this file since 20406 was 20406, checked in by nico, 6 years ago

[packages] mini_sendmail, msmtp, nullmailer, ssmtp: don't ship sendmail symlink, create it at postinstall time

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2007-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=nullmailer
11PKG_VERSION:=1.05
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://untroubled.org/nullmailer/
16PKG_MD5SUM:=35124cc05f893efba1310e2ec7c876ff
17
18include $(INCLUDE_DIR)/package.mk
19
20define 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/
25endef
26
27define 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.
31endef
32
33TARGET_CFLAGS += $(TARGET_CPPFLAGS)
34
35define 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/
48endef
49
50define Package/nullmailer/postinstall
51        ln -sf ../sbin/sendmail $(1)/usr/lib/sendmail
52        ln -sf nullmailer-sendmail $(1)/usr/sbin/sendmail
53endef
54
55$(eval $(call BuildPackage,nullmailer))
Note: See TracBrowser for help on using the repository browser.