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.

83 lines
2.0 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.7
  10. PKG_RELEASE:=6
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/acmesh-official/acme.sh/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=774010429730882f6bbfcd3756ff0fa755846106664841092af828a814159861
  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/prerm
  49. #!/bin/sh
  50. sed -i '/\/etc\/init\.d\/acme start/d' /etc/crontabs/root
  51. endef
  52. define Package/acme-dnsapi
  53. SECTION:=net
  54. CATEGORY:=Network
  55. DEPENDS:=+acme
  56. TITLE:=DNS API integration for ACME (Letsencrypt) client
  57. PKGARCH:=all
  58. endef
  59. define Package/acme-dnsapi/description
  60. This package provides DNS API integration for ACME (Letsencrypt) client.
  61. endef
  62. define Package/acme-dnsapi/install
  63. $(INSTALL_DIR) $(1)/usr/lib/acme/dnsapi
  64. $(INSTALL_DATA) $(PKG_BUILD_DIR)/dnsapi/*.sh $(1)/usr/lib/acme/dnsapi
  65. endef
  66. $(eval $(call BuildPackage,acme))
  67. $(eval $(call BuildPackage,acme-dnsapi))