diff options
author | Victor Ostorga <vostorga@gentoo.org> | 2009-09-26 19:24:36 +0000 |
---|---|---|
committer | Victor Ostorga <vostorga@gentoo.org> | 2009-09-26 19:24:36 +0000 |
commit | 67fda0c3dec8e7d10f9b1e07d2e660294bef5e83 (patch) | |
tree | 160882241ce1354bc71b88f25ff4f0b66cf7c5fb /net-misc/iodine | |
parent | Fix bug #283572 (add a check for CONFIG_LOCKDEP). (diff) | |
download | historical-67fda0c3dec8e7d10f9b1e07d2e660294bef5e83.tar.gz historical-67fda0c3dec8e7d10f9b1e07d2e660294bef5e83.tar.bz2 historical-67fda0c3dec8e7d10f9b1e07d2e660294bef5e83.zip |
Initial commit, ebuild thanks to Erik Ekman bug 173038
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'net-misc/iodine')
-rw-r--r-- | net-misc/iodine/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/iodine/Manifest | 7 | ||||
-rw-r--r-- | net-misc/iodine/files/iodine-0.5.2-Makefile.patch | 38 | ||||
-rw-r--r-- | net-misc/iodine/files/iodined.conf | 44 | ||||
-rw-r--r-- | net-misc/iodine/files/iodined.init | 60 | ||||
-rw-r--r-- | net-misc/iodine/iodine-0.5.2.ebuild | 40 | ||||
-rw-r--r-- | net-misc/iodine/metadata.xml | 14 |
7 files changed, 214 insertions, 0 deletions
diff --git a/net-misc/iodine/ChangeLog b/net-misc/iodine/ChangeLog new file mode 100644 index 000000000000..cf944d7779f3 --- /dev/null +++ b/net-misc/iodine/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-misc/iodine +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/iodine/ChangeLog,v 1.1 2009/09/26 19:24:36 vostorga Exp $ + +*iodine-0.5.2 (26 Sep 2009) + + 26 Sep 2009; Víctor Ostorga <vostorga@gentoo.org> +iodine-0.5.2.ebuild, + +files/iodine-0.5.2-Makefile.patch, +files/iodined.conf, + +files/iodined.init, +metadata.xml: + Initial commit, ebuild thanks to Erik Ekman bug 173038 + diff --git a/net-misc/iodine/Manifest b/net-misc/iodine/Manifest new file mode 100644 index 000000000000..7d78fb3685f5 --- /dev/null +++ b/net-misc/iodine/Manifest @@ -0,0 +1,7 @@ +AUX iodine-0.5.2-Makefile.patch 1160 RMD160 312892d2ad82456fc827b14ab72d70ab028c8d3a SHA1 924af0d6a0eba19068a295fa9ddd91b53743de5a SHA256 1fce3a95bfb403b809cf1ea5c4c2b707382970697f608633620570456f6574dd +AUX iodined.conf 1547 RMD160 ad496ac03a3ace69556c098e7269d6152268ed94 SHA1 9e819aea6042a272b0ab589b37d2140fdbde2615 SHA256 01860664e8121308d0efb17258374a8a248293c4ed375a5b6f50d6568ceb8750 +AUX iodined.init 1448 RMD160 d3abef14b8343e13c3ee942f2e86fdcf06cae82a SHA1 c2f7a25819365f00b10f6eb72f024f03381d5086 SHA256 7c65e903efd09dcdab5f38df5c258a2cfdfd626629229c084d1b418916168a01 +DIST iodine-0.5.2.tar.gz 50788 RMD160 2c0d55233c2a6157911a5b868bc538d27c1eb085 SHA1 28d0d00e513e20aa7fdfcc61872dee0ec032f112 SHA256 cbc14665d325634318ebd6f792f8dc2229101bd5a55232420570538612f6a5e4 +EBUILD iodine-0.5.2.ebuild 978 RMD160 0c98a7046f12f372738ac8a32859d0f365d981dd SHA1 f00fb9b914bb092ef3fd4d294b75b0d205c6d121 SHA256 a170dbbddcc81c30de7c5968c722176040a09db9a26644d6bf865d492751b77e +MISC ChangeLog 464 RMD160 562bd14f83281953001835af6aab0ae30aeaa063 SHA1 400fb65cf2f22905bf955beedbdb5fd219dab84f SHA256 4ed3218052104c9d53dc24c3bed9c03eb95fd6c19c78f2515f7980fd0d93aaef +MISC metadata.xml 542 RMD160 6c13b03f0c0419af77016321ac253c89c6d780a8 SHA1 ecf80d84225389bc31bb1cde13393d66a72f2c7c SHA256 0335f36cd14491ce3a72df667b627ecdc99042f89b185a7cafea8b62e138a084 diff --git a/net-misc/iodine/files/iodine-0.5.2-Makefile.patch b/net-misc/iodine/files/iodine-0.5.2-Makefile.patch new file mode 100644 index 000000000000..10e251287b62 --- /dev/null +++ b/net-misc/iodine/files/iodine-0.5.2-Makefile.patch @@ -0,0 +1,38 @@ +diff -NrU5 iodine-0.5.2.original/src/Makefile iodine-0.5.2/src/Makefile +--- iodine-0.5.2.original/src/Makefile 2009-08-07 19:58:30.000000000 -0600 ++++ iodine-0.5.2/src/Makefile 2009-08-07 20:34:01.000000000 -0600 +@@ -1,18 +1,18 @@ +-CC = gcc ++#CC = gcc + COMMONOBJS = tun.o dns.o read.o encoding.o login.o base32.o base64.o md5.o common.o + CLIENTOBJS = iodine.o + CLIENT = ../bin/iodine + SERVEROBJS = iodined.o user.o fw_query.o + SERVER = ../bin/iodined + + OS = `echo $(TARGETOS) | tr "a-z" "A-Z"` + ARCH = `uname -m` + + LIBPATH = -L. +-LDFLAGS = -lz `sh osflags $(TARGETOS) link` $(LIBPATH) +-CFLAGS = -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` ++LDFLAGS += -lz `sh osflags $(TARGETOS) link` $(LIBPATH) ++CFLAGS += -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` + + all: stateos $(CLIENT) $(SERVER) + + stateos: + @echo OS is $(OS), arch is $(ARCH) +@@ -27,11 +27,11 @@ + @mkdir -p ../bin + @$(CC) $(COMMONOBJS) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS) + + .c.o: + @echo CC $< +- @$(CC) $(CFLAGS) $< -o $@ ++ @$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ + + clean: + @echo "Cleaning src/" + @rm -f $(CLIENT){,.exe} $(SERVER){,.exe} *~ *.o *.core + diff --git a/net-misc/iodine/files/iodined.conf b/net-misc/iodine/files/iodined.conf new file mode 100644 index 000000000000..7889b0892eea --- /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 000000000000..7308e81ead25 --- /dev/null +++ b/net-misc/iodine/files/iodined.init @@ -0,0 +1,60 @@ +#!/sbin/runscript +# Copyright 1999-2007 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.1 2009/09/26 19:24:35 vostorga Exp $ + +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 -- $ARGS + eend $? +} + +stop() { + ebegin "Stopping iodined" + start-stop-daemon --stop --exec /usr/bin/iodined + eend $? +} diff --git a/net-misc/iodine/iodine-0.5.2.ebuild b/net-misc/iodine/iodine-0.5.2.ebuild new file mode 100644 index 000000000000..1a6d257f0e59 --- /dev/null +++ b/net-misc/iodine/iodine-0.5.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/iodine/iodine-0.5.2.ebuild,v 1.1 2009/09/26 19:24:36 vostorga Exp $ + +inherit linux-info eutils + +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" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + test? ( dev-libs/check )" + +src_unpack(){ + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-Makefile.patch +} + +src_compile() { + emake CC="$(tc-getCC)" || die "make failed" +} + +src_install() { + dobin bin/iodine bin/iodined || die "binaries failed" + dodoc README CHANGELOG || die "docs failed" + doman man/iodine.8 || die "man failed" + + newinitd "${FILESDIR}"/iodined.init iodined || die "initd failed" + newconfd "${FILESDIR}"/iodined.conf iodined || die "confd failed" + keepdir /var/empty +} diff --git a/net-misc/iodine/metadata.xml b/net-misc/iodine/metadata.xml new file mode 100644 index 000000000000..5680830443be --- /dev/null +++ b/net-misc/iodine/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>vostorga@gentoo.org</email> + <name>Víctor Ostorga</name> + </maintainer> + <maintainer> + <email>root@kryo.se</email> + <name>Erik Ekman</name> + </maintainer> + <longdescription>iodine lets you tunnel IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed</longdescription> +</pkgmetadata> |