summaryrefslogtreecommitdiff
path: root/net-vpn/iodine
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-03 02:58:11 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-03 02:58:11 +0000
commitfbe7acf59ebf6dc3f04a6ef108ff3887fa5d7972 (patch)
tree3669828a2d0c5f7cb1a4bfd79be8032aac558282 /net-vpn/iodine
parent9bc9c4dcc38dc560cff8e5d083d1e5f282ddde98 (diff)
gentoo auto-resync : 03:12:2022 - 02:58:11
Diffstat (limited to 'net-vpn/iodine')
-rw-r--r--net-vpn/iodine/Manifest3
-rw-r--r--net-vpn/iodine/files/iodined-1.init-r164
-rw-r--r--net-vpn/iodine/files/iodined.conf-r146
-rw-r--r--net-vpn/iodine/iodine-0.7.0-r4.ebuild50
4 files changed, 163 insertions, 0 deletions
diff --git a/net-vpn/iodine/Manifest b/net-vpn/iodine/Manifest
index 01c327835164..637081627a81 100644
--- a/net-vpn/iodine/Manifest
+++ b/net-vpn/iodine/Manifest
@@ -1,7 +1,10 @@
AUX iodine-0.7.0-TestMessage.patch 350 BLAKE2B c3b3b56b8d63eac14a6a2690ae3758e2bc65f972b1d4f1705fff8c40df239cba5560fa0a90575121b8fd38418af13416e0c0e1347c713b40b6a4e0d3caf7cee3 SHA512 cdc482fdab22fc5ee612416161b2a93d4967211a47f9688a57737eef06bb48896c753f57df6bb3e8f826d78ac17955ce93d518e231e3e6ef507b53e050e47dca
AUX iodine-0.7.0-new-systemd.patch 440 BLAKE2B d4d0f2b24cfaaf743f84f4003d52134403a0c8edee0927b22a23d48bcc8bd09c0673f6f47581a0be11630164282ecb8425262fafdc75c2b93c179ff855eee880 SHA512 ec2f0402ad332278382328ea9278832e09afc99aeee75167be854e73e46a4980c347b1119e2f198f8ad85af5deecb811be0061b00d6874fc86c60313d8cfbb4b
AUX iodined-1.init 1422 BLAKE2B 50e39490f37d4e74ae9e768459e1011d232e9673d87091a41d0f7bbee8ef47a6b4c716e5dfcb169582ea7299fb33e3d8b238ead1af690f41630f6482f3635882 SHA512 c146c16f10574a16971d81010ab51f6fa68ebbd3275e50f18bfeb4dde5976ab97a9817d26bbe7d2b8cce3c4a8624a7627674528b30a4e958b4523cee03d6e1c9
+AUX iodined-1.init-r1 1482 BLAKE2B afdbca79e702c60450e41702f2828b2b8221da87a03f8e7cca6b2c7bb8e5d792523829dfe4f057246993052de39be3bed8f5f26103ba62b6ad46c654a9f5dac0 SHA512 b5fe38f376b6550d3a81c14cc6e18c4f68f533f944850446588e8cb14f645d9d260ed16982a558bf2973e59c2fb691c0482f2e5d9cc4483344facc45267ac262
AUX iodined.conf 1547 BLAKE2B aed2f5ee21d513cec4602031a739735f3fc13cc4ebd5f273603a0a67e6bcdcc053c68df128fc167f7330d1848195584a8249a4b77f02e19bcf6e9e4d3e3d3bbf SHA512 3aab274be5670e4dc59fbf4fa9b5d6bfb1363ea081a8cf5c3d881007ca6d54a725038edd3b06f0aa24fb71756c4a54e96374867063ac1310ef9ce3a2ff25943d
+AUX iodined.conf-r1 1600 BLAKE2B c6f4e82cbaa0b642e7fe686394dd716c96f68d63936d2ad7706a66e29da6ca31a0b0512d76325501ccbe599d68ce0ddb4147ef6089ba21a27f8c1bfde712e100 SHA512 233f25e179ce76a667077e81087f8d90b7699f123056796d4db4f56ff9ad79fbd799d6045c73eed13bb86ee30117c8734a36686fbb5516fcc601c51385520268
DIST iodine-0.7.0.tar.gz 96181 BLAKE2B bc7b634f4060d0a3be259f1a0797263de65d6ee6bc2c777c0b74d789c60877aae2895bfda11f5fdd7e064ab137607abfffe689e0a01b2505878e442d08e3555a SHA512 49fe4f0cf614d3400cbfdade84eb4f50430f8f92004f663a08acc1514e8ff342443a8c3f855828bbca1864a3fafe419b5256f8a80fc4024b364d4c8c953fc0ec
EBUILD iodine-0.7.0-r3.ebuild 1020 BLAKE2B b03a4d582c0cf2d2b165bb63918b9cd6d7d10f7347145167dc27a602dde205b605161df66ac0c258f5978e7a8d928a4217a4ab95e6dbbd2bf1fa028a842878b1 SHA512 acef89f80e27a92de4b6e14abfbd200a8c81c14c1a536299de5411523dfc3e1cba8ebd1d6eff6adf074abc2e48fc60a34b636f994e62e23af6972dd5a8849aa6
+EBUILD iodine-0.7.0-r4.ebuild 1026 BLAKE2B ad3683d137073f57ca17e0ad4c49bab01eaa3b66d123a969eb4c517392c9b280513897cd9f02b1c705799ee577aecb3bc861299d191669516fba7b1cdeac1900 SHA512 5ec98e5deab2fd78d290adc90408fca3e3098c60eb7320e29665000c164224e2610f3b6db16ef8f71767c950b3e3d8f9115f559ce4636e8021ef681f0970502c
MISC metadata.xml 450 BLAKE2B 8c88db266968d064e71df902513f1621d0310d0ea2341557b5434b067e13c27a84b44e33d238f747b68b65f80e8c7eb90d0904de445aaa8cb62bd230de581d7a SHA512 caa5ec6e7129d114abbf34925ff87e8c772232d95f75bf6e33018786601e1a455f4eef49588c681a539ea32c3e4a4c34cdda9406ad2da988d65c303b1c3498de
diff --git a/net-vpn/iodine/files/iodined-1.init-r1 b/net-vpn/iodine/files/iodined-1.init-r1
new file mode 100644
index 000000000000..d436acc2896a
--- /dev/null
+++ b/net-vpn/iodine/files/iodined-1.init-r1
@@ -0,0 +1,64 @@
+#!/sbin/openrc-run
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+PID_FILE="/run/iodined.pid"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting iodined"
+ ARGS=""
+ if [ "$IODINED_ARGS" ]; then
+ ARGS="$ARGS $IODINED_ARGS"
+ fi
+ if [ "$IODINED_USER" ]; then
+ ARGS="$ARGS -u $IODINED_USER"
+ fi
+ if [ "$IODINED_CHROOT" ]; then
+ ARGS="$ARGS -t $IODINED_CHROOT"
+ fi
+ if [ "$IODINED_MTU" ]; then
+ ARGS="$ARGS -m $IODINED_MTU"
+ fi
+ if [ "$IODINED_LISTENPORT" ]; then
+ ARGS="$ARGS -p $IODINED_LISTENPORT"
+ fi
+ if [ "$IODINED_EXTERN_IP" ]; then
+ ARGS="$ARGS -n $IODINED_EXTERN_IP"
+ fi
+ if [ "$IODINED_LOCAL_DNS_PORT" ]; then
+ ARGS="$ARGS -b $IODINED_LOCAL_DNS_PORT"
+ fi
+ if [ "$IODINED_LISTENIP" ]; then
+ ARGS="$ARGS -l $IODINED_LISTENIP"
+ fi
+ if [ "$IODINED_PASSWD" ]; then
+ ARGS="$ARGS -P $IODINED_PASSWD"
+ else
+ eerror "Please set a password (IODINED_PASSWD) in /etc/conf.d/iodined!"
+ return 1
+ fi
+ if [ "$IODINED_IP" ]; then
+ ARGS="$ARGS $IODINED_IP"
+ else
+ eerror "Please set an IP (IODINED_IP) in /etc/conf.d/iodined!"
+ return 1
+ fi
+ if [ "$IODINED_DOMAIN" ]; then
+ ARGS="$ARGS $IODINED_DOMAIN"
+ else
+ eerror "Please set a domain (IODINED_DOMAIN) in /etc/conf.d/iodined!"
+ return 1
+ fi
+ start-stop-daemon --start --exec /usr/sbin/iodined --pidfile $PID_FILE -- -F $PID_FILE $ARGS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping iodined"
+ start-stop-daemon --stop --exec /usr/sbin/iodined --pidfile $PID_FILE
+ eend $?
+}
diff --git a/net-vpn/iodine/files/iodined.conf-r1 b/net-vpn/iodine/files/iodined.conf-r1
new file mode 100644
index 000000000000..e9a93d12320b
--- /dev/null
+++ b/net-vpn/iodine/files/iodined.conf-r1
@@ -0,0 +1,46 @@
+# /etc/conf.d/iodined: config file for /etc/init.d/iodined
+
+# Drop privileges to this user after startup
+# This is used by the -u argument. Comment out to keep running as root.
+IODINED_USER="nobody"
+
+# Chroot to this directory after startup
+# This is used by the -t argument. Comment out to avoid chroot.
+IODINED_CHROOT="/var/empty"
+
+# This password needs to be used in all clients when they connect
+# This is used by the -P argument
+IODINED_PASSWD=""
+
+# This is the MTU (Max Transmit Unit) used in the tunnel.
+# You probably dont need this field at all, downstream data will
+# now be fragmented. This is used by the -m argument
+#IODINED_MTU=1020
+
+# The server port to listen on. You should normally not change this.
+# See man page. This is used by the -p argument
+#IODINED_LISTENPORT=53
+
+# The IP address to return as reply to NS queries. If not set, it will
+# be the destination address of the query. Used by the -n argument
+#IODINED_EXTERN_IP=1.1.1.1
+
+# The port used by a "real" DNS server on localhost. Queries for
+# domains not handled by iodined will be forwarded to this port,
+# and answers will be routed back. Used by the -b argument
+#IODINED_LOCAL_DNS_PORT=5353
+
+# The IP number to listen on.
+# This is used by the -l argument
+#IODINED_LISTENIP=127.0.0.1
+
+# This IP number will be used by the local tun device.
+IODINED_IP="172.28.0.1"
+
+# Use subdomains to this domain for network tunneling
+# If a real domain is used, it should be delegated to this server with
+# a NS entry in the domain zone (see man page)
+IODINED_DOMAIN="blah.abc"
+
+# Any extra args not covered above.
+#IODINED_ARGS=""
diff --git a/net-vpn/iodine/iodine-0.7.0-r4.ebuild b/net-vpn/iodine/iodine-0.7.0-r4.ebuild
new file mode 100644
index 000000000000..acd02810647f
--- /dev/null
+++ b/net-vpn/iodine/iodine-0.7.0-r4.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="IP over DNS tunnel"
+HOMEPAGE="https://code.kryo.se/iodine/"
+SRC_URI="https://code.kryo.se/${PN}/${P}.tar.gz"
+
+CONFIG_CHECK="~TUN"
+
+LICENSE="ISC GPL-2" #GPL-2 for init script bug #426060
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-TestMessage.patch
+ "${FILESDIR}"/${P}-new-systemd.patch
+)
+
+src_prepare() {
+ default
+
+ sed -e '/^\s@echo \(CC\|LD\)/d' \
+ -e 's:^\(\s\)@:\1:' \
+ -i {,src/}Makefile || die
+
+ tc-export CC
+}
+
+src_install() {
+ # Don't re-run submake
+ sed -e '/^install:/s: all: :' \
+ -i Makefile || die
+ emake prefix="${EPREFIX}"/usr DESTDIR="${D}" install
+ einstalldocs
+
+ newinitd "${FILESDIR}"/iodined-1.init-r1 iodined
+ newconfd "${FILESDIR}"/iodined.conf-r1 iodined
+ keepdir /var/empty
+ fperms 600 /etc/conf.d/iodined
+}