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.4 KiB

  1. #
  2. # Copyright (C) 2014 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:=mailsend
  9. PKG_VERSION:=1.17b15
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/muquit/mailsend/archive/$(PKG_VERSION)
  13. PKG_MD5SUM:=60103c411a8627e893d35e7836f904e8
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/mailsend
  19. SECTION:=mail
  20. CATEGORY:=Mail
  21. TITLE:=A command-line mail sender
  22. DEPENDS:=+MAILSEND_SSL:libopenssl
  23. URL:=https://github.com/muquit/mailsend
  24. endef
  25. define Package/mailsend/config
  26. config MAILSEND_SSL
  27. bool "SSL support"
  28. depends on PACKAGE_mailsend
  29. default n
  30. help
  31. Implements SSL support in mailsend (using libopenssl).
  32. endef
  33. ifeq ($(CONFIG_MAILSEND_SSL),y)
  34. CONFIGURE_ARGS+= --with-openssl=$(STAGING_DIR)/usr
  35. endif
  36. define Package/mailsend/description
  37. Mailsend is a simple command line program to send mail via SMTP protocol.
  38. SSL is supported via OpenSSL (optional).
  39. endef
  40. define Build/Compile
  41. $(MAKE) -C $(PKG_BUILD_DIR)
  42. endef
  43. define Package/mailsend/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mailsend $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,mailsend))