treewide: add PKG_CPE_ID for better cvescanner coverage
[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:=7
13 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
14 PKG_LICENSE:=GPL-2.0-or-later
15 PKG_CPE_ID:=cpe:/a:ssmtp:ssmtp
16
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.bz2
18 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp
19 PKG_HASH:=22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(TARGET_CPPFLAGS)
24
25 define Package/ssmtp
26 SECTION:=mail
27 CATEGORY:=Mail
28 DEPENDS:=+libopenssl
29 TITLE:=A minimal and secure mail sender with ssl support
30 URL:=http://packages.debian.org/ssmtp
31 endef
32
33 define Package/ssmtp/description
34 A secure, effective and simple way of getting mail off a system to your mail hub.
35 Mail is simply forwarded to the configured mailhost, no daemons running in the background.
36 Extremely easy configuration.
37
38 endef
39
40 define Package/ssmtp/conffiles
41 /etc/ssmtp/ssmtp.conf
42 /etc/ssmtp/revaliases
43 endef
44
45 CONFIGURE_VARS += \
46 LIBS="$(TARGET_LDFLAGS) -lcrypto -lssl"
47
48 CONFIGURE_ARGS += \
49 --enable-ssl
50
51 define Package/ssmtp/install
52 $(INSTALL_DIR) $(1)/etc/ssmtp
53 $(INSTALL_CONF) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
54 $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
57 ln -s /usr/sbin/ssmtp $(1)/usr/sbin/sendmail
58 endef
59
60 $(eval $(call BuildPackage,ssmtp))