You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ssmtp
  9. PKG_VERSION:=2.64
  10. PKG_RELEASE:=7
  11. PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
  12. PKG_LICENSE:=GPL-2.0-or-later
  13. PKG_CPE_ID:=cpe:/a:ssmtp:ssmtp
  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_HASH:=22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36
  17. include $(INCLUDE_DIR)/package.mk
  18. TARGET_CFLAGS += $(TARGET_CPPFLAGS)
  19. define Package/ssmtp
  20. SECTION:=mail
  21. CATEGORY:=Mail
  22. DEPENDS:=+libopenssl
  23. TITLE:=A minimal and secure mail sender with ssl support
  24. URL:=http://packages.debian.org/ssmtp
  25. endef
  26. define Package/ssmtp/description
  27. A secure, effective and simple way of getting mail off a system to your mail hub.
  28. Mail is simply forwarded to the configured mailhost, no daemons running in the background.
  29. Extremely easy configuration.
  30. endef
  31. define Package/ssmtp/conffiles
  32. /etc/ssmtp/ssmtp.conf
  33. /etc/ssmtp/revaliases
  34. endef
  35. CONFIGURE_VARS += \
  36. LIBS="$(TARGET_LDFLAGS) -lcrypto -lssl"
  37. CONFIGURE_ARGS += \
  38. --enable-ssl
  39. define Package/ssmtp/install
  40. $(INSTALL_DIR) $(1)/etc/ssmtp
  41. $(INSTALL_CONF) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
  42. $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
  45. ln -s /usr/sbin/ssmtp $(1)/usr/sbin/sendmail
  46. endef
  47. $(eval $(call BuildPackage,ssmtp))