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.

78 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2016 Toke Høiland-Jørgensen
  3. #
  4. # This is free software, licensed under the GNU General Public License v3 or
  5. # later.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=acme
  9. PKG_VERSION:=2.8.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/acmesh-official/acme.sh/archive/$(PKG_VERSION).tar.gz
  13. PKG_HASH:=fd36cb749466296ded521ceacda3fc841ec76be620900d1116e0492d171c1d9f
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/acme.sh-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
  16. PKG_LICENSE:=GPL-3.0-only
  17. PKG_LICENSE_FILES:=LICENSE.md
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/acme
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+wget-ssl +ca-bundle +openssl-util +socat
  23. TITLE:=ACME (Letsencrypt) client
  24. URL:=https://acme.sh
  25. PKGARCH:=all
  26. endef
  27. define Package/acme/description
  28. A client for issuing Letsencrypt certificates.
  29. endef
  30. define Package/acme/conffiles
  31. /etc/config/acme
  32. /etc/acme
  33. endef
  34. define Build/Configure
  35. endef
  36. define Build/Compile
  37. endef
  38. define Package/acme/install
  39. $(INSTALL_DIR) $(1)/etc/acme
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_CONF) ./files/acme.config $(1)/etc/config/acme
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/acme.init $(1)/etc/init.d/acme
  44. $(INSTALL_DIR) $(1)/usr/lib/acme
  45. $(INSTALL_BIN) ./files/run.sh $(1)/usr/lib/acme/run-acme
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/acme.sh $(1)/usr/lib/acme/acme.sh
  47. endef
  48. define Package/acme-dnsapi
  49. SECTION:=net
  50. CATEGORY:=Network
  51. DEPENDS:=+acme
  52. TITLE:=DNS API integration for ACME (Letsencrypt) client
  53. PKGARCH:=all
  54. endef
  55. define Package/acme-dnsapi/description
  56. This package provides DNS API integration for ACME (Letsencrypt) client.
  57. endef
  58. define Package/acme-dnsapi/install
  59. $(INSTALL_DIR) $(1)/usr/lib/acme/dnsapi
  60. $(INSTALL_DATA) $(PKG_BUILD_DIR)/dnsapi/*.sh $(1)/usr/lib/acme/dnsapi
  61. endef
  62. $(eval $(call BuildPackage,acme))
  63. $(eval $(call BuildPackage,acme-dnsapi))