From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5D0661392EF for ; Fri, 18 Jul 2014 15:31:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF4CCE0918; Fri, 18 Jul 2014 15:31:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74BCBE0918 for ; Fri, 18 Jul 2014 15:31:01 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7ACD334038F for ; Fri, 18 Jul 2014 15:31:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 2C6FD1807D for ; Fri, 18 Jul 2014 15:30:59 +0000 (UTC) From: "Michael Weber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Weber" Message-ID: <1405693889.540b7b19cc15980db103c3fc0802a286ad437168.xmw@gentoo> Subject: [gentoo-commits] dev/xmw:master commit in: net-misc/iodine/files/, net-misc/iodine/ X-VCS-Repository: dev/xmw X-VCS-Files: net-misc/iodine/ChangeLog net-misc/iodine/Manifest net-misc/iodine/files/iodine-0.7.0-TestMessage.patch net-misc/iodine/files/iodined.conf net-misc/iodine/files/iodined.init net-misc/iodine/iodine-0.7.0.ebuild net-misc/iodine/metadata.xml X-VCS-Directories: net-misc/iodine/files/ net-misc/iodine/ X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber X-VCS-Revision: 540b7b19cc15980db103c3fc0802a286ad437168 X-VCS-Branch: master Date: Fri, 18 Jul 2014 15:30:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1380670b-cf46-4886-a149-6d04f2720b1a X-Archives-Hash: 8ed0bf6fc3cf185ae08fd7230798d941 commit: 540b7b19cc15980db103c3fc0802a286ad437168 Author: Michael Weber xmw de> AuthorDate: Fri Jul 18 14:31:29 2014 +0000 Commit: Michael Weber gentoo org> CommitDate: Fri Jul 18 14:31:29 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=540b7b19 Version bump (bug 513560) Package-Manager: portage-2.2.10 Manifest-Sign-Key: --- net-misc/iodine/ChangeLog | 6 +++ net-misc/iodine/Manifest | 1 + .../iodine/files/iodine-0.7.0-TestMessage.patch | 12 +++++ net-misc/iodine/files/iodined.conf | 44 +++++++++++++++ net-misc/iodine/files/iodined.init | 62 ++++++++++++++++++++++ net-misc/iodine/iodine-0.7.0.ebuild | 51 ++++++++++++++++++ net-misc/iodine/metadata.xml | 8 +++ 7 files changed, 184 insertions(+) diff --git a/net-misc/iodine/ChangeLog b/net-misc/iodine/ChangeLog new file mode 100644 index 0000000..1875b3f --- /dev/null +++ b/net-misc/iodine/ChangeLog @@ -0,0 +1,6 @@ +*iodine-0.7.0 (18 Jul 2014) + + 18 Jul 2014; Michael Weber + +files/iodine-0.7.0-TestMessage.patch, +files/iodined.conf, + +files/iodined.init, +iodine-0.7.0.ebuild, +metadata.xml: + Version bump (bug 513560) diff --git a/net-misc/iodine/Manifest b/net-misc/iodine/Manifest new file mode 100644 index 0000000..080608c --- /dev/null +++ b/net-misc/iodine/Manifest @@ -0,0 +1 @@ +DIST iodine-0.7.0.tar.gz 96181 SHA256 ad2b40acf1421316ec15800dcde0f587ab31d7d6f891fa8b9967c4ded93c013e SHA512 49fe4f0cf614d3400cbfdade84eb4f50430f8f92004f663a08acc1514e8ff342443a8c3f855828bbca1864a3fafe419b5256f8a80fc4024b364d4c8c953fc0ec WHIRLPOOL ac098f9a409c75768b6b2da0f755560ea932a97855df32aefe860237a28ebf1ef1b576860378575522221214d9dc65c26f0297fafe628ea770e4449217c5d593 diff --git a/net-misc/iodine/files/iodine-0.7.0-TestMessage.patch b/net-misc/iodine/files/iodine-0.7.0-TestMessage.patch new file mode 100644 index 0000000..6b814b6 --- /dev/null +++ b/net-misc/iodine/files/iodine-0.7.0-TestMessage.patch @@ -0,0 +1,12 @@ +--- iodine-0.7.0/Makefile ++++ iodine-0.7.0/Makefile +@@ -35,8 +35,7 @@ + $(RM) $(RM_FLAGS) $(DESTDIR)$(mandir)/man8/iodine.8 + + test: all +- @echo "!! The check library is required for compiling and running the tests" +- @echo "!! Get it at http://check.sf.net" ++ @echo "Executing tests target" + @(cd tests; $(MAKE) TARGETOS=$(TARGETOS) all) + + clean: diff --git a/net-misc/iodine/files/iodined.conf b/net-misc/iodine/files/iodined.conf new file mode 100644 index 0000000..7889b08 --- /dev/null +++ b/net-misc/iodine/files/iodined.conf @@ -0,0 +1,44 @@ +# /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" + diff --git a/net-misc/iodine/files/iodined.init b/net-misc/iodine/files/iodined.init new file mode 100644 index 0000000..a0d0e0b --- /dev/null +++ b/net-misc/iodine/files/iodined.init @@ -0,0 +1,62 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/iodine/files/iodined.init,v 1.2 2012/06/07 19:53:54 floppym Exp $ + +PID_FILE="/var/run/iodined.pid" + +depend() { + need net +} + +start() { + ebegin "Starting iodined" + ARGS="" + 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/bin/iodined --pidfile $PID_FILE -- -F $PID_FILE $ARGS + eend $? +} + +stop() { + ebegin "Stopping iodined" + start-stop-daemon --stop --exec /usr/bin/iodined --pidfile $PID_FILE + eend $? +} diff --git a/net-misc/iodine/iodine-0.7.0.ebuild b/net-misc/iodine/iodine-0.7.0.ebuild new file mode 100644 index 0000000..2b40e9f --- /dev/null +++ b/net-misc/iodine/iodine-0.7.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/iodine/iodine-0.6.0_rc1-r1.ebuild,v 1.2 2012/07/11 18:03:38 vostorga Exp $ + +EAPI=5 + +inherit linux-info eutils toolchain-funcs + +DESCRIPTION="IP over DNS tunnel" +HOMEPAGE="http://code.kryo.se/iodine/" +SRC_URI="http://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" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + test? ( dev-libs/check )" + +src_prepare(){ + epatch \ + "${FILESDIR}"/${P}-TestMessage.patch + + sed -e '/^\s@echo \(CC\|LD\)/d' \ + -e 's:^\(\s\)@:\1:' \ + -i {,src/}Makefile || die + + tc-export CC +} + +src_compile() { + #shipped ./Makefiles doesn't pass -j to submake + emake -C src TARGETOS=Linux all +} + +src_install() { + #don't re-run submake + sed -e '/^install:/s: all: :' \ + -i Makefile || die + emake prefix="${EPREFIX}"usr DESTDIR="${D}" install + + dodoc CHANGELOG README TODO + + newinitd "${FILESDIR}"/iodined.init iodined + newconfd "${FILESDIR}"/iodined.conf iodined + keepdir /var/empty +} diff --git a/net-misc/iodine/metadata.xml b/net-misc/iodine/metadata.xml new file mode 100644 index 0000000..5b80fb9 --- /dev/null +++ b/net-misc/iodine/metadata.xml @@ -0,0 +1,8 @@ + + + + +xmw@gentoo.org +Michael Weber + +