summaryrefslogtreecommitdiff
path: root/net-proxy/tayga
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/tayga')
-rw-r--r--net-proxy/tayga/Manifest3
-rw-r--r--net-proxy/tayga/files/tayga.confd2
-rw-r--r--net-proxy/tayga/files/tayga.initd20
-rw-r--r--net-proxy/tayga/tayga-0.9.2-r3.ebuild36
4 files changed, 61 insertions, 0 deletions
diff --git a/net-proxy/tayga/Manifest b/net-proxy/tayga/Manifest
index 6619d3273b99..b56e60367d94 100644
--- a/net-proxy/tayga/Manifest
+++ b/net-proxy/tayga/Manifest
@@ -1,7 +1,10 @@
AUX tayga-0.9.2-manpage-RFC.patch 1865 BLAKE2B 337cbafecb8895af9093d5ab059710bec9e9021ccd776820430dd6536d038fc423ce8fb85ac7379b67ed10522f78c3231433848cd4f6150d0478df04bce89360 SHA512 0d5653621821cd373d49989115ee0e5076f83f14aae04e4fa6ab7b64799f09bc1892920abe7ef649e9ac315cbc1a1604b7eec37eebdd9dd87635a428e35b9cf0
AUX tayga-0.9.2-release-reserved-addr.patch 286 BLAKE2B ad7d3099a396a7c49ccf2864051b4c30402df2063103acb4ace8159bef579a09b6bccccbabcc95e08d7f944b387719fa5ea5d91078640fab3da6a0562b9e2e3a SHA512 80ea05d6724da3feaf14d7d394e2ee2a2591bd77a72dc1e3689c5a46f3b91b78de87bfd1a5c74c18427fc993bf4664204cce7a6895e42449d698cfc03f1ae0c8
AUX tayga-0.9.2-static-EAM.patch 3050 BLAKE2B 23b802862d17f77db42edcf1eae5127801d30def863ddee1ac7324823d48c1d67fa0061a1330d9e9dd330489dc92044ffb1172b91a5d97b3054848246d9f77d5 SHA512 e47a7d7a88e6aefb58f13df491fecff8e705c7e129d1fcb39a0f2f25ce8fc3acd4e6be6505dc8fecaadad7626fb98932cb539c8576bf6faf14d9d51933c52394
+AUX tayga.confd 62 BLAKE2B 6f3c58c02f222eac5dcdeff6bc14f2cbb09108ebec9bc982dd973239558116e7b53bd965df1243625da026c4bcc3fc8ad6c2dcff8a457fa47301bc9a66362b07 SHA512 9a555e4e84b279536f203649440ae317fb44aec2a3f5be04ea40069b81e3988571a408ac7e2a2c9195e78d6ffbbce52b6e063058dacc49c641cf5087b7ecc632
+AUX tayga.initd 501 BLAKE2B 7c6c55068ae5a533446a6b1511dd1dd0071660f562e54eb4e47a1f2afafb5fe6068645cf8a711ce2dd13bf946473b2192694ba11d60e6e1902b57425a552740e SHA512 ad25f7851e498af7d07455cc419bfd4e7bdc0816daf3f44e83eb99b631931af82e39a0835d8778d986e02b660a818158f60af5a7fbf31efed667d275a0c2dae7
DIST tayga-0.9.2.tar.bz2 86022 BLAKE2B 9658960e0a8a4a419851a50f131a7dfb0790d0d188ad95ed5078033bd3a19180964a072dc177616b3451bc23dfa2b998058d73cc6aacfbb4b59c0b9173764440 SHA512 a7a81cccb7c3e32f00f142b1bac598b732dd748772b307561239d695418ada5302182d487e51d1cf95ed736c0180c01db2f33409d0b9343d6587b76cbb3bc573
EBUILD tayga-0.9.2-r1.ebuild 484 BLAKE2B 2987bf7006a153dde6e5db99d4c2e871b504b4eafa3a39faec03623d6f3b42e94c7de837406baa40491ece824f91da95fa59b4f947145fb3d1e6b05ea5189d0d SHA512 65cbdda9b3f612e25456711c9d0614778b64cddc3264ef9dcf2c314fe57cf73439071296e7fd5e184ac95c0c8e3db7299f3447e73b078ca460700e619a5505cb
EBUILD tayga-0.9.2-r2.ebuild 618 BLAKE2B 13c8fb4c43e2959a86057e95ef46317019e5efd5aa6ea33d237f776f30087d93b107d09901f14565a03ad6d1824a687d8e236bf6ef081b109252e3ee8c2a5ecf SHA512 a19ba144f2042b3f76b6e012f698552ef2633d181eaf4fc37100816dc69c92eb394acbd89d5b33f9908889260a4b93275ab8f2fcf06029464030662c08bc32cb
+EBUILD tayga-0.9.2-r3.ebuild 709 BLAKE2B 9a56f646fd6c3a3ded7ab733fecc976e2c1b997f17c5f98397be89730c58f3133ccfd4abf7e0140d6a8272d00ed5b171d27f55f04228c703828ca454b9ee15e1 SHA512 2c4f4a22d72b5d1866e1fa46611a2b3eb04d1ae11f2e23c1e160663c34d7239b42b0d734fbcc4f0c94a640787569846f4abcc33794321842c98d7f8545511e85
MISC metadata.xml 236 BLAKE2B 7ba65ccb8874d2a0e4b90d90a6b9b038651fa6655b80f493e13543ba816d44973502dad3853c9a28b615888f73d1d515cede7ccae90730b0858fbac655647c12 SHA512 0c85fb2c4ddc9049999107c26a22bb29fbeff328b17ed430860a1bc5d86fe05ae8439a592bd46551eb6e37cf0e17c8c57bbb6cd71bac6df1e756c6f175abe1b6
diff --git a/net-proxy/tayga/files/tayga.confd b/net-proxy/tayga/files/tayga.confd
new file mode 100644
index 000000000000..c601c33e58d3
--- /dev/null
+++ b/net-proxy/tayga/files/tayga.confd
@@ -0,0 +1,2 @@
+# Should match the tayga.conf tun-device
+#rc_need="net.nat64"
diff --git a/net-proxy/tayga/files/tayga.initd b/net-proxy/tayga/files/tayga.initd
new file mode 100644
index 000000000000..a0ad1dd30151
--- /dev/null
+++ b/net-proxy/tayga/files/tayga.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+
+description='tayga NAT64 gateway'
+pidfile=${pidfile:=/var/run/tayga.pid}
+user=${user:=nobody}
+group=${group:=nogroup}
+datadir=${datadir:=/var/db/tayga}
+
+command='/usr/sbin/tayga'
+command_args="--pidfile ${pidfile} -u ${user} -g ${group}"
+
+start_pre() {
+ checkpath --directory --owner ${user}:${group} ${datadir}
+ checkpath --owner ${user}:${group} ${datadir}/dynamic.map
+}
+
+
diff --git a/net-proxy/tayga/tayga-0.9.2-r3.ebuild b/net-proxy/tayga/tayga-0.9.2-r3.ebuild
new file mode 100644
index 000000000000..4d84b05240f6
--- /dev/null
+++ b/net-proxy/tayga/tayga-0.9.2-r3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="out-of-kernel stateless NAT64 implementation based on TUN"
+HOMEPAGE="http://www.litech.org/tayga/"
+SRC_URI="http://www.litech.org/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-static-EAM.patch
+ "${FILESDIR}"/${P}-manpage-RFC.patch
+ "${FILESDIR}"/${P}-release-reserved-addr.patch
+)
+
+src_prepare() {
+ default
+ sed -e '/^CFLAGS/d' \
+ -i configure.ac || die "sed failed"
+ eautoreconf
+}
+
+src_install() {
+ newconfd "${FILESDIR}"/tayga.confd
+ newinitd "${FILESDIR}"/tayga.initd
+}