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.

62 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. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/mailsend
  20. SECTION:=mail
  21. CATEGORY:=Mail
  22. TITLE:=A command-line mail sender
  23. DEPENDS:=+MAILSEND_SSL:libopenssl
  24. URL:=https://github.com/muquit/mailsend
  25. endef
  26. define Package/mailsend/config
  27. config MAILSEND_SSL
  28. bool "SSL support"
  29. depends on PACKAGE_mailsend
  30. default n
  31. help
  32. Implements SSL support in mailsend (using libopenssl).
  33. endef
  34. ifeq ($(CONFIG_MAILSEND_SSL),y)
  35. CONFIGURE_ARGS+= --with-openssl=$(STAGING_DIR)/usr
  36. endif
  37. define Package/mailsend/description
  38. Mailsend is a simple command line program to send mail via SMTP protocol.
  39. SSL is supported via OpenSSL (optional).
  40. endef
  41. define Build/Compile
  42. $(MAKE) -C $(PKG_BUILD_DIR)
  43. endef
  44. define Package/mailsend/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mailsend $(1)/usr/bin/
  47. endef
  48. $(eval $(call BuildPackage,mailsend))