a6e591a017a53104f3365183281cda408d01c357
[openwrt/svn-archive/archive.git] / net / ssmtp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ssmtp
12 PKG_VERSION:=2.61
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
15
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ssmtp
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=A minimal and secure mail sender
29 DESCRIPTION:=A secure, effective and simple way of getting mail off a system to your\\\
30 mail hub. It contains no suid-binaries or other dangerous things - no\\\
31 mail spool to poke around in, and no daemons running in the background.\\\
32 mail is simply forwarded to the configured mailhost. Extremely easy\\\
33 configuration.
34 URL:=http://packages.debian.org/stable/mail/ssmtp
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default)
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default,all)
43 endef
44
45 define Package/ssmtp/install
46 install -m0755 -d $(1)/etc/ssmtp
47 install -m0644 $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
48 install -m0644 $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
49 install -m0755 -d $(1)/usr/sbin
50 $(CP) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
51 ln -sf ssmtp $(1)/usr/sbin/sendmail
52 endef
53
54 $(eval $(call BuildPackage,ssmtp))