cleanup
[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:=2
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/
17 PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 EXTRA_LDFLAGS+=-Wl,-rpath-link,$(STAGING_DIR)/usr/lib
22 TARGET_CONFIGURE_OPTS+=\
23 CC="$(TARGET_CC) $(EXTRA_LDFLAGS)"
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/ssmtp
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+libopenssl
31 TITLE:=A minimal and secure mail sender
32 DESCRIPTION:=\
33 A secure, effective and simple way of getting mail off a system to your \\\
34 mail hub. It contains no suid-binaries or other dangerous things - no \\\
35 mail spool to poke around in, and no daemons running in the background.\\\
36 mail is simply forwarded to the configured mailhost. Extremely easy \\\
37 configuration.
38 URL:=http://packages.debian.org/stable/mail/ssmtp
39 endef
40
41 # uses GNU configure
42
43 define Build/Configure
44 $(call Build/Configure/Default, \
45 --enable-ssl \
46 )
47 endef
48
49 define Package/ssmtp/install
50 $(INSTALL_DIR) $(1)/etc/ssmtp
51 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
55 ln -sf ssmtp $(1)/usr/sbin/sendmail
56 endef
57
58 $(eval $(call BuildPackage,ssmtp))