Skip to content

Commit aaf0ea0

Browse files
committed
uacme: make uacme-dnsapi-adaper package
for cleaner dependency tree, and to not use space when not needed. this will reduce about 30kb when not using dnsapi. Signed-off-by: Seo Suchan <tjtncks@gmail.com>
1 parent 42d30a8 commit aaf0ea0

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

net/acme-acmesh/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ endef
5151
define Package/acme-acmesh-dnsapi
5252
SECTION:=net
5353
CATEGORY:=Network
54-
DEPENDS:=+acme-common +PACKAGE_uacme:curl
54+
DEPENDS:=+acme-common
5555
TITLE:=DNS API integration for ACME (Letsencrypt) client
5656
PKGARCH:=all
5757
endef

net/uacme/Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ define Package/uacme-ualpn
5858
URL:=https://github.com/ndilieto/uacme
5959
endef
6060

61+
define Package/uacme-dnsapi-adapter
62+
$(call Package/uacme/Default)
63+
DEPENDS:= +uacme +acme-acmesh-dnsapi +curl
64+
TITLE:=adapter script for use acme.sh dnsapi with uacme
65+
endef
66+
6167
define Package/uacme/Default/description
6268
lightweight client for the RFC8555 ACMEv2 protocol, written in plain C code
6369
with minimal dependencies (libcurl and one of GnuTLS, OpenSSL or mbedTLS).
@@ -104,9 +110,7 @@ define Package/uacme/install
104110
$(1)/usr/lib/acme/client
105111

106112
$(INSTALL_BIN) ./files/hook.sh $(1)/usr/lib/acme/hook
107-
$(INSTALL_BIN) ./files/dnschalhook.sh $(1)/usr/lib/acme/client/dnschalhook.sh
108113
$(INSTALL_BIN) ./files/httpchalhook.sh $(1)/usr/lib/acme/client/httpchalhook.sh
109-
$(INSTALL_BIN) ./files/dnsapi_helper.sh $(1)/usr/lib/acme/client/dnsapi_helper.sh
110114
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/uacme $(1)/usr/sbin/uacme
111115
endef
112116

@@ -120,5 +124,13 @@ define Package/uacme-ualpn/install
120124
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ualpn.sh $(1)/usr/lib/acme/client/ualpn.sh
121125
endef
122126

127+
define Package/uacme-dnsapi-adapter/install
128+
$(INSTALL_DIR) \
129+
$(1)/usr/lib/acme/client
130+
131+
$(INSTALL_BIN) ./files/dnschalhook.sh $(1)/usr/lib/acme/client/dnschalhook.sh
132+
$(INSTALL_BIN) ./files/dnsapi_helper.sh $(1)/usr/lib/acme/client/dnsapi_helper.sh
133+
endef
134+
123135
$(eval $(call BuildPackage,uacme))
124136
$(eval $(call BuildPackage,uacme-ualpn))

0 commit comments

Comments
 (0)