Commit f9c059e0 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

Merge tor-packages

parents 132acc66 1f6ca491
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=meek
PKG_VERSION:=f5726d12dca8135144433c93a16500b05d742f88
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/arlolra/meek.git
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=go/host
PKG_LICENSE:=GPL-3.0
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
GO_SRC_DIR:=$(PKG_BUILD_DIR)/meek-client/
include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/package/devel/go/files/go-package.mk
define Package/meek
SECTION:=net
CATEGORY:=Network
SUBMENU:=IP Addresses and Names
TITLE:=meek
URL:=https://github.com/arlolra/meek
endef
define Package/$(PKG_NAME)/description
Meek is a blocking-resistant pluggable transport for Tor.
https://trac.torproject.org/projects/tor/wiki/doc/meek
endef
define Build/Compile
$(call Build/Compile/Go)
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin/
$(CP) $$(PKG_BUILD_DIR)/meek-client/meek-client $(1)/usr/bin/meek-client
endef
$(eval $(call BuildPackage,meek))
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=obfs4proxy
PKG_VERSION:=0.0.7
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/Yawning/obfs4.git
PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=go/host
PKG_LICENSE:=GPL-3.0
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
GO_SRC_DIR:=$(PKG_BUILD_DIR)/obfs4proxy/
include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/package/devel/go/files/go-package.mk
define Package/obfs4proxy
SECTION:=net
CATEGORY:=Network
SUBMENU:=IP Addresses and Names
TITLE:=obfs4proxy
URL:=https://github.com/Yawning/obfs4
endef
define Package/$(PKG_NAME)/description
Pluggable Transports (PT) transform the Tor traffic flow between the client and the bridge.
https://trac.torproject.org/projects/tor/wiki/doc/PluggableTransports/obfs4proxy
endef
define Build/Compile
$(call Build/Compile/Go)
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin/
$(CP) $$(PKG_BUILD_DIR)/obfs4proxy/obfs4proxy $(1)/usr/bin/obfs4proxy
endef
$(eval $(call BuildPackage,obfs4proxy))
#
# Copyright (C) 2017 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:=torsocks
PKG_VERSION:=v2.2.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/dgoulet/torsocks.git
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
PKG_LICENSE:=GPL-3.0
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
SUBMENU:=IP Addresses and Names
TITLE:=torsocks
URL:=https://github.com/dgoulet/torsocks
DEPENDS:=+tor
endef
define Package/$(PKG_NAME)/description
Torsocks allows you to use most applications in a safe way with Tor.
It ensures that DNS requests are handled safely and explicitly rejects any traffic other than TCP from the application you're using.
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); ./autogen.sh )
$(call Build/Configure/Default)
endef
define Build/Compile
$(call Build/Compile/Default)
endef
define Build/Install
$(call Build/Install/Default, install)
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/tor/
$(CP) $(PKG_INSTALL_DIR)/etc/tor/torsocks.conf $(1)/etc/tor/
$(INSTALL_DIR) $(1)/usr/lib/torsocks
$(CP) $(PKG_INSTALL_DIR)/usr/lib/torsocks/libtorsocks* $(1)/usr/lib/torsocks/
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/torsocks $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/man/man5
$(CP) $(PKG_INSTALL_DIR)/usr/man/man5/* $(1)/usr/man/man5/
$(INSTALL_DIR) $(1)/usr/man/man8
$(CP) $(PKG_INSTALL_DIR)/usr/man/man8/* $(1)/usr/man/man8
$(INSTALL_DIR) $(1)/usr/man/man1
$(CP) $(PKG_INSTALL_DIR)/usr/man/man1/* $(1)/usr/man/man1
$(INSTALL_DIR) $(1)/usr/share/doc/torsocks
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/torsocks/* $(1)/usr/share/doc/torsocks
endef
$(eval $(call BuildPackage,torsocks))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment