usbmuxd: Update to latest git
[feed/packages.git] / mail / ssmtp / Makefile
1 #
2 # Copyright (C) 2007-2016 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.64
12 PKG_RELEASE:=5
13 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
14 PKG_LICENSE:=GPL-2.0+
15
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_HASH:=22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36
19
20 include $(INCLUDE_DIR)/package.mk
21
22 TARGET_CFLAGS += $(TARGET_CPPFLAGS)
23
24 define Package/ssmtp
25 SECTION:=mail
26 CATEGORY:=Mail
27 DEPENDS:=+libopenssl
28 TITLE:=A minimal and secure mail sender with ssl support
29 URL:=http://packages.debian.org/ssmtp
30 endef
31
32 define Package/ssmtp/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.
36
37 endef
38
39 define Package/ssmtp/conffiles
40 /etc/ssmtp/ssmtp.conf
41 /etc/ssmtp/revaliases
42 endef
43
44 CONFIGURE_VARS += \
45 LIBS="$(TARGET_LDFLAGS) -lcrypto -lssl"
46
47 CONFIGURE_ARGS += \
48 --enable-ssl
49
50 define Package/ssmtp/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
57 endef
58
59 $(eval $(call BuildPackage,ssmtp))