[package] update ssmtp to 2.63 (#3786)
[openwrt/svn-archive/archive.git] / mail / ssmtp / 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:=ssmtp
11 PKG_VERSION:=2.63
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/
16 PKG_MD5SUM:=
17
18 include $(INCLUDE_DIR)/package.mk
19
20 TARGET_CFLAGS += $(TARGET_CPPFLAGS)
21
22 define Package/ssmtp
23 SECTION:=mail
24 CATEGORY:=Mail
25 DEPENDS:=+libopenssl
26 TITLE:=A minimal and secure mail sender
27 URL:=http://packages.debian.org/stable/mail/ssmtp
28 endef
29
30 define Package/ssmtp/description
31 A secure, effective and simple way of getting mail off a system to your
32 mail hub. It contains no suid-binaries or other dangerous things - no
33 mail spool to poke around in, and no daemons running in the background.
34 mail is simply forwarded to the configured mailhost. Extremely easy
35 configuration.
36 endef
37
38 CONFIGURE_VARS += \
39 LIBS="$(TARGET_LDFLAGS) -lcrypto -lssl"
40
41 CONFIGURE_ARGS += \
42 --enable-ssl
43
44 define Package/ssmtp/install
45 $(INSTALL_DIR) $(1)/etc/ssmtp
46 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
47 $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
50 ln -sf ssmtp $(1)/usr/sbin/sendmail
51 endef
52
53 $(eval $(call BuildPackage,ssmtp))