2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.bz2
15 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/s
/ssmtp
16 PKG_MD5SUM
:=65b4e0df4934a6cd08c506cabcbe584f
18 include $(INCLUDE_DIR
)/package.mk
20 TARGET_CFLAGS
+= $(TARGET_CPPFLAGS
)
26 TITLE
:=A minimal and secure mail sender
27 URL
:=http
://packages.debian.org
/ssmtp
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
38 define Package
/ssmtp
/conffiles
44 LIBS
="$(TARGET_LDFLAGS) -lcrypto -lssl"
49 define Package
/ssmtp
/install
50 $(INSTALL_DIR
) $(1)/etc
/ssmtp
51 $(INSTALL_CONF
) $(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
/
57 define Package
/ssmtp
/postinst
58 ln
-sf ssmtp
$${IPKG_INSTROOT}/usr
/sbin
/sendmail
61 $(eval
$(call BuildPackage
,ssmtp
))