0
0
mirror of https://github.com/openwrt/packages.git synced 2025-10-06 17:50:26 +00:00
Files
packages/net/acme-acmesh/Makefile
Vladimir Kochnev 6a13be2220 acme-acme.sh: support listen_port option
acme.sh supports --httpport and --tlsport options to be used
together with --standalone and --alpn modes respectively.

This is useful if we're behind a reverse proxy or smth like that
or if we cannot bind to standard 80 or 443 port for some other
reason.

This change makes listen_port from configuration to be passed as
either --httpport or --tlsport

Signed-off-by: Vladimir Kochnev <hashtable@yandex.ru>
2025-10-02 13:14:11 +02:00

70 lines
1.8 KiB
Makefile

#
# Copyright (C) 2016 Toke Høiland-Jørgensen
#
# This is free software, licensed under the GNU General Public License v3 or
# later.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=acme-acmesh
PKG_VERSION:=3.1.1
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/acmesh-official/acme.sh/tar.gz/$(PKG_VERSION)?
PKG_HASH:=c5d623ac0af400e83cd676aefaf045228f60e9fc597fea5db4c3a5bd7f6bfcf4
PKG_BUILD_DIR:=$(BUILD_DIR)/acme.sh-$(PKG_VERSION)
PKG_MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
PKG_LICENSE:=GPL-3.0-only
PKG_LICENSE_FILES:=LICENSE.md
include $(INCLUDE_DIR)/package.mk
define Package/acme-acmesh
SECTION:=net
CATEGORY:=Network
DEPENDS:=+acme-common +wget-ssl +ca-bundle +openssl-util +socat
TITLE:=ACME client acme.sh wrapper script
URL:=https://acme.sh
PKGARCH:=all
PROVIDES:=acme-client
endef
define Package/acme-acmesh/description
A client for issuing ACME (e.g, Letsencrypt) certificates.
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/acme-acmesh/install
$(INSTALL_DIR) $(1)/usr/lib/acme/client
$(INSTALL_BIN) $(PKG_BUILD_DIR)/acme.sh $(1)/usr/lib/acme/client
$(INSTALL_BIN) ./files/hook.sh $(1)/usr/lib/acme/hook
endef
define Package/acme-acmesh-dnsapi
SECTION:=net
CATEGORY:=Network
DEPENDS:=+acme-acmesh
TITLE:=DNS API integration for ACME (Letsencrypt) client
PKGARCH:=all
endef
define Package/acme-acmesh-dnsapi/description
This package provides DNS API integration for ACME (Letsencrypt) client.
endef
define Package/acme-acmesh-dnsapi/install
$(INSTALL_DIR) $(1)/usr/lib/acme/client/dnsapi
$(INSTALL_DATA) $(PKG_BUILD_DIR)/dnsapi/*.sh $(1)/usr/lib/acme/client/dnsapi
endef
$(eval $(call BuildPackage,acme-acmesh))
$(eval $(call BuildPackage,acme-acmesh-dnsapi))