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.

65 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2015 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:=1
  11. PKG_MAINTAINER:=Dirk Brenken <dirk@brenken.org>
  12. PKG_LICENSE:=GPL-2.0+
  13. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.bz2
  14. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp
  15. PKG_MD5SUM:=65b4e0df4934a6cd08c506cabcbe584f
  16. include $(INCLUDE_DIR)/package.mk
  17. TARGET_CFLAGS += $(TARGET_CPPFLAGS)
  18. define Package/$(PKG_NAME)
  19. SECTION:=mail
  20. CATEGORY:=Mail
  21. DEPENDS:=+libopenssl
  22. TITLE:=A minimal and secure mail sender with ssl support
  23. URL:=http://packages.debian.org/ssmtp
  24. endef
  25. define Package/$(PKG_NAME)/description
  26. A secure, effective and simple way of getting mail off a system to your
  27. mail hub. It contains no suid-binaries or other dangerous things - no
  28. mail spool to poke around in, and no daemons running in the background.
  29. Mail is simply forwarded to the configured mailhost. Extremely easy
  30. configuration.
  31. endef
  32. define Package/$(PKG_NAME)/conffiles
  33. /etc/ssmtp/ssmtp.conf
  34. /etc/ssmtp/revaliases
  35. endef
  36. CONFIGURE_VARS += \
  37. LIBS="$(TARGET_LDFLAGS) -lcrypto -lssl"
  38. CONFIGURE_ARGS += \
  39. --enable-ssl
  40. define Package/$(PKG_NAME)/install
  41. $(INSTALL_DIR) $(1)/etc/ssmtp
  42. $(INSTALL_CONF) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
  43. $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
  46. endef
  47. define Package/$(PKG_NAME)/postinst
  48. #!/bin/sh
  49. ln -sf ssmtp $${IPKG_INSTROOT}/usr/sbin/sendmail
  50. endef
  51. $(eval $(call BuildPackage,$(PKG_NAME)))