2 # Copyright (C) 2020-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_MAINTAINER
:=Jan Pavlinec
<jan.pavlinec1@gmail.com
>
15 PKG_LICENSE
:=GPL-3.0
-or-later
17 include $(INCLUDE_DIR
)/package.mk
22 SUBMENU
:=IP Addresses and Names
23 TITLE
:=Tor hidden service configurator
27 define Package
/tor-hs
/description
28 Tor Hidden Service configurator
31 define Package
/tor-hs
/conffiles
41 define Package
/tor-hs
/postinst
43 [ -z
"$${IPKG_INSTROOT}" ] && /etc
/init.d
/rpcd restart
47 define Package
/tor-hs
/postrm
49 [ -z
"$${IPKG_INSTROOT}" ] && /etc
/init.d
/rpcd restart
53 define Package
/tor-hs
/install
54 $(INSTALL_DIR
) $(1)/etc
/config
/
55 $(CP
) .
/files
/tor-hs.conf
$(1)/etc
/config
/tor-hs
56 $(INSTALL_DIR
) $(1)/etc
/init.d
/
57 $(INSTALL_BIN
) .
/files
/tor-hs.init
$(1)/etc
/init.d
/tor-hs
58 $(INSTALL_DIR
) $(1)/etc
/tor
/
59 $(INSTALL_BIN
) .
/files
/nextcloud-update.sh
$(1)/etc
/tor
/
60 $(INSTALL_DIR
) $(1)/usr
/libexec
/rpcd
61 $(INSTALL_BIN
) .
/files
/tor_rpcd.sh
$(1)/usr
/libexec
/rpcd
/tor-hs-rpc
64 $(eval
$(call BuildPackage
,tor-hs
))