diff options
author | Jan Pavlinec <jan.pavlinec@nic.cz> | 2020-03-24 15:35:08 +0100 |
---|---|---|
committer | Jan Pavlinec <jan.pavlinec@nic.cz> | 2020-04-17 13:57:00 +0200 |
commit | 5906bfecd5ee265715debab3ef84143f3cb07a94 (patch) | |
tree | 62ddd81a72a45efb662016460140bdbbaeeab9ef /net/tor-hs/Makefile | |
parent | eef3d14af786995dbc485efb0a9d623c7a3e8ea9 (diff) |
tor-hs: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
Diffstat (limited to 'net/tor-hs/Makefile')
-rw-r--r-- | net/tor-hs/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net/tor-hs/Makefile b/net/tor-hs/Makefile new file mode 100644 index 000000000..3a5490a58 --- /dev/null +++ b/net/tor-hs/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 02020 CZ.NIC, z. s. p. o. (https://www.nic.cz/) +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=tor-hs +PKG_VERSION:=0.0.1 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz> +PKG_LICENSE:=GPL-3.0-or-later + +include $(INCLUDE_DIR)/package.mk + +define Package/tor-hs + SECTION:=net + CATEGORY:=Network + SUBMENU:=IP Addresses and Names + TITLE:=Tor hidden service configurator + DEPENDS:=+tor +endef + +define Package/tor-hs/description + Tor Hidden Service configurator +endef + +define Package/tor-hs/conffiles +/etc/config/tor-hs +endef + +define Build/Compile +endef + +define Build/Install +endef + +define Package/tor-hs/install + $(INSTALL_DIR) $(1)/etc/config/ + $(CP) ./files/tor-hs.conf $(1)/etc/config/tor-hs + $(INSTALL_DIR) $(1)/etc/init.d/ + $(INSTALL_BIN) ./files/tor-hs.init $(1)/etc/init.d/tor-hs + $(INSTALL_DIR) $(1)/etc/tor/ + $(INSTALL_BIN) ./files/nextcloud-update.sh $(1)/etc/tor/ + $(INSTALL_DIR) $(1)/usr/libexec/rpcd + $(INSTALL_BIN) ./files/tor_rpcd.sh $(1)/usr/libexec/rpcd/ +endef + +$(eval $(call BuildPackage,tor-hs)) |