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.

71 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2014-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:=mailsend
  9. PKG_VERSION:=1.19
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/muquit/mailsend/archive/$(PKG_VERSION)
  13. PKG_HASH:=565ef6be26c58ef75065c5519eae8dd55bae3142928619696b28d242b73493f7
  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/default
  19. SECTION:=mail
  20. CATEGORY:=Mail
  21. TITLE:=A command-line mail sender
  22. URL:=https://github.com/muquit/mailsend
  23. endef
  24. define Package/mailsend-nossl
  25. $(call Package/mailsend/default)
  26. TITLE+= (without SSL)
  27. VARIANT:=nossl
  28. endef
  29. define Package/mailsend
  30. $(call Package/mailsend/default)
  31. TITLE+= (with SSL)
  32. DEPENDS:=+libopenssl
  33. VARIANT:=ssl
  34. endef
  35. ifeq ($(BUILD_VARIANT),ssl)
  36. CONFIGURE_ARGS+= --with-openssl=$(STAGING_DIR)/usr
  37. endif
  38. define Package/mailsend/description
  39. $(call Package/mailsend-nossl/description)
  40. .
  41. SSL supported is provided by OpenSSL.
  42. endef
  43. define Package/mailsend-nossl/description
  44. Mailsend is a simple command line program to send mail via SMTP protocol.
  45. endef
  46. define Build/Compile
  47. $(MAKE) -C $(PKG_BUILD_DIR)
  48. endef
  49. define Package/mailsend/install
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mailsend $(1)/usr/bin/
  52. endef
  53. Package/mailsend-nossl/install=$(Package/mailsend/install)
  54. $(eval $(call BuildPackage,mailsend))
  55. $(eval $(call BuildPackage,mailsend-nossl))