tor-hs: fix rpcd
Changes: - add rpcd dependecy - handle rpcd in post inst/rm sections Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
This commit is contained in:
parent
f21885ec85
commit
fe5c201bdd
1 changed files with 15 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 02020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
# Copyright (C) 2020-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=tor-hs
|
PKG_NAME:=tor-hs
|
||||||
PKG_VERSION:=0.0.1
|
PKG_VERSION:=0.0.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
|
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
|
@ -21,7 +21,7 @@ define Package/tor-hs
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=IP Addresses and Names
|
SUBMENU:=IP Addresses and Names
|
||||||
TITLE:=Tor hidden service configurator
|
TITLE:=Tor hidden service configurator
|
||||||
DEPENDS:=+tor
|
DEPENDS:=+tor +rpcd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/tor-hs/description
|
define Package/tor-hs/description
|
||||||
|
@ -38,6 +38,18 @@ endef
|
||||||
define Build/Install
|
define Build/Install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/tor-hs/postinst
|
||||||
|
#!/bin/sh
|
||||||
|
[ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/rpcd restart
|
||||||
|
exit 0
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/tor-hs/postrm
|
||||||
|
#!/bin/sh
|
||||||
|
[ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/rpcd restart
|
||||||
|
exit 0
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/tor-hs/install
|
define Package/tor-hs/install
|
||||||
$(INSTALL_DIR) $(1)/etc/config/
|
$(INSTALL_DIR) $(1)/etc/config/
|
||||||
$(CP) ./files/tor-hs.conf $(1)/etc/config/tor-hs
|
$(CP) ./files/tor-hs.conf $(1)/etc/config/tor-hs
|
||||||
|
|
Loading…
Reference in a new issue