2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 EXTRA_LDFLAGS
+=-Wl
,-rpath-link
,$(STAGING_DIR
)/usr
/lib
21 TARGET_CONFIGURE_OPTS
+=\
22 CC
="$(TARGET_CC) $(EXTRA_LDFLAGS)"
24 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=A minimal and secure mail sender
32 A secure
, effective and simple way of getting mail off a system to your
\\\
33 mail hub. It contains no suid-binaries or other dangerous things
- no
\\\
34 mail spool to poke around in
, and no daemons running in the background.
\\\
35 mail is simply forwarded to the configured mailhost. Extremely easy
\\\
37 URL
:=http
://packages.debian.org
/stable
/mail
/ssmtp
43 define Package
/ssmtp
/install
44 $(INSTALL_DIR
) $(1)/etc
/ssmtp
45 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ssmtp.conf
$(1)/etc
/ssmtp
/
46 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/revaliases
$(1)/etc
/ssmtp
/
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ssmtp
$(1)/usr
/sbin
/
49 ln
-sf ssmtp
$(1)/usr
/sbin
/sendmail
52 $(eval
$(call BuildPackage
,ssmtp
))