2 # Copyright (C) 2007-2016 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
13 PKG_MAINTAINER
:=Dirk Brenken
<dev@brenken.org
>
16 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.bz2
17 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/s
/ssmtp
18 PKG_MD5SUM
:=22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36
20 include $(INCLUDE_DIR
)/package.mk
22 TARGET_CFLAGS
+= $(TARGET_CPPFLAGS
)
24 define Package
/$(PKG_NAME
)
28 TITLE
:=A minimal and secure mail sender with ssl support
29 URL
:=http
://packages.debian.org
/ssmtp
32 define Package
/$(PKG_NAME
)/description
33 A secure
, effective and simple way of getting mail off a system to your mail hub.
34 Mail is simply forwarded to the configured mailhost
, no daemons running in the background.
35 Extremely easy configuration.
39 define Package
/$(PKG_NAME
)/conffiles
45 LIBS
="$(TARGET_LDFLAGS) -lcrypto -lssl"
50 define Package
/$(PKG_NAME
)/install
51 $(INSTALL_DIR
) $(1)/etc
/ssmtp
52 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/ssmtp.conf
$(1)/etc
/ssmtp
/
53 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/revaliases
$(1)/etc
/ssmtp
/
54 $(INSTALL_DIR
) $(1)/usr
/sbin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ssmtp
$(1)/usr
/sbin
/
56 ln
-s
/usr
/sbin
/ssmtp
$(1)/usr
/sbin
/sendmail
59 $(eval
$(call BuildPackage
,$(PKG_NAME
)))