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.

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