1 |
vostorga 09/09/26 19:24:36 |
2 |
|
3 |
Added: iodined.conf iodine-0.5.2-Makefile.patch |
4 |
iodined.init |
5 |
Log: |
6 |
Initial commit, ebuild thanks to Erik Ekman bug 173038 |
7 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-misc/iodine/files/iodined.conf |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iodine/files/iodined.conf?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iodine/files/iodined.conf?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: iodined.conf |
16 |
=================================================================== |
17 |
# /etc/conf.d/iodined: config file for /etc/init.d/iodined |
18 |
|
19 |
# Drop privileges to this user after startup |
20 |
# This is used by the -u argument. Comment out to keep running as root. |
21 |
IODINED_USER="nobody" |
22 |
|
23 |
# Chroot to this directory after startup |
24 |
# This is used by the -t argument. Comment out to avoid chroot. |
25 |
IODINED_CHROOT="/var/empty" |
26 |
|
27 |
# This password needs to be used in all clients when they connect |
28 |
# This is used by the -P argument |
29 |
IODINED_PASSWD="" |
30 |
|
31 |
# This is the MTU (Max Transmit Unit) used in the tunnel. |
32 |
# You probably dont need this field at all, downstream data will |
33 |
# now be fragmented. This is used by the -m argument |
34 |
#IODINED_MTU=1020 |
35 |
|
36 |
# The server port to listen on. You should normally not change this. |
37 |
# See man page. This is used by the -p argument |
38 |
#IODINED_LISTENPORT=53 |
39 |
|
40 |
# The IP address to return as reply to NS queries. If not set, it will |
41 |
# be the destination address of the query. Used by the -n argument |
42 |
#IODINED_EXTERN_IP=1.1.1.1 |
43 |
|
44 |
# The port used by a "real" DNS server on localhost. Queries for |
45 |
# domains not handled by iodined will be forwarded to this port, |
46 |
# and answers will be routed back. Used by the -b argument |
47 |
#IODINED_LOCAL_DNS_PORT=5353 |
48 |
|
49 |
# The IP number to listen on. |
50 |
# This is used by the -l argument |
51 |
#IODINED_LISTENIP=127.0.0.1 |
52 |
|
53 |
# This IP number will be used by the local tun device. |
54 |
IODINED_IP="172.28.0.1" |
55 |
|
56 |
# Use subdomains to this domain for network tunneling |
57 |
# If a real domain is used, it should be delegated to this server with |
58 |
# a NS entry in the domain zone (see man page) |
59 |
IODINED_DOMAIN="blah.abc" |
60 |
|
61 |
|
62 |
|
63 |
|
64 |
1.1 net-misc/iodine/files/iodine-0.5.2-Makefile.patch |
65 |
|
66 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iodine/files/iodine-0.5.2-Makefile.patch?rev=1.1&view=markup |
67 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iodine/files/iodine-0.5.2-Makefile.patch?rev=1.1&content-type=text/plain |
68 |
|
69 |
Index: iodine-0.5.2-Makefile.patch |
70 |
=================================================================== |
71 |
diff -NrU5 iodine-0.5.2.original/src/Makefile iodine-0.5.2/src/Makefile |
72 |
--- iodine-0.5.2.original/src/Makefile 2009-08-07 19:58:30.000000000 -0600 |
73 |
+++ iodine-0.5.2/src/Makefile 2009-08-07 20:34:01.000000000 -0600 |
74 |
@@ -1,18 +1,18 @@ |
75 |
-CC = gcc |
76 |
+#CC = gcc |
77 |
COMMONOBJS = tun.o dns.o read.o encoding.o login.o base32.o base64.o md5.o common.o |
78 |
CLIENTOBJS = iodine.o |
79 |
CLIENT = ../bin/iodine |
80 |
SERVEROBJS = iodined.o user.o fw_query.o |
81 |
SERVER = ../bin/iodined |
82 |
|
83 |
OS = `echo $(TARGETOS) | tr "a-z" "A-Z"` |
84 |
ARCH = `uname -m` |
85 |
|
86 |
LIBPATH = -L. |
87 |
-LDFLAGS = -lz `sh osflags $(TARGETOS) link` $(LIBPATH) |
88 |
-CFLAGS = -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` |
89 |
+LDFLAGS += -lz `sh osflags $(TARGETOS) link` $(LIBPATH) |
90 |
+CFLAGS += -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` |
91 |
|
92 |
all: stateos $(CLIENT) $(SERVER) |
93 |
|
94 |
stateos: |
95 |
@echo OS is $(OS), arch is $(ARCH) |
96 |
@@ -27,11 +27,11 @@ |
97 |
@mkdir -p ../bin |
98 |
@$(CC) $(COMMONOBJS) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS) |
99 |
|
100 |
.c.o: |
101 |
@echo CC $< |
102 |
- @$(CC) $(CFLAGS) $< -o $@ |
103 |
+ @$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ |
104 |
|
105 |
clean: |
106 |
@echo "Cleaning src/" |
107 |
@rm -f $(CLIENT){,.exe} $(SERVER){,.exe} *~ *.o *.core |
108 |
|
109 |
|
110 |
|
111 |
|
112 |
1.1 net-misc/iodine/files/iodined.init |
113 |
|
114 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iodine/files/iodined.init?rev=1.1&view=markup |
115 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iodine/files/iodined.init?rev=1.1&content-type=text/plain |
116 |
|
117 |
Index: iodined.init |
118 |
=================================================================== |
119 |
#!/sbin/runscript |
120 |
# Copyright 1999-2007 Gentoo Foundation |
121 |
# Distributed under the terms of the GNU General Public License v2 |
122 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/iodine/files/iodined.init,v 1.1 2009/09/26 19:24:35 vostorga Exp $ |
123 |
|
124 |
depend() { |
125 |
need net |
126 |
} |
127 |
|
128 |
start() { |
129 |
ebegin "Starting iodined" |
130 |
ARGS="" |
131 |
if [ "$IODINED_USER" ]; then |
132 |
ARGS="$ARGS -u $IODINED_USER" |
133 |
fi |
134 |
if [ "$IODINED_CHROOT" ]; then |
135 |
ARGS="$ARGS -t $IODINED_CHROOT" |
136 |
fi |
137 |
if [ "$IODINED_MTU" ]; then |
138 |
ARGS="$ARGS -m $IODINED_MTU" |
139 |
fi |
140 |
if [ "$IODINED_LISTENPORT" ]; then |
141 |
ARGS="$ARGS -p $IODINED_LISTENPORT" |
142 |
fi |
143 |
if [ "$IODINED_EXTERN_IP" ]; then |
144 |
ARGS="$ARGS -n $IODINED_EXTERN_IP" |
145 |
fi |
146 |
if [ "$IODINED_LOCAL_DNS_PORT" ]; then |
147 |
ARGS="$ARGS -b $IODINED_LOCAL_DNS_PORT" |
148 |
fi |
149 |
if [ "$IODINED_LISTENIP" ]; then |
150 |
ARGS="$ARGS -l $IODINED_LISTENIP" |
151 |
fi |
152 |
if [ "$IODINED_PASSWD" ]; then |
153 |
ARGS="$ARGS -P $IODINED_PASSWD" |
154 |
else |
155 |
eerror "Please set a password (IODINED_PASSWD) in /etc/conf.d/iodined!" |
156 |
return 1 |
157 |
fi |
158 |
if [ "$IODINED_IP" ]; then |
159 |
ARGS="$ARGS $IODINED_IP" |
160 |
else |
161 |
eerror "Please set an IP (IODINED_IP) in /etc/conf.d/iodined!" |
162 |
return 1 |
163 |
fi |
164 |
if [ "$IODINED_DOMAIN" ]; then |
165 |
ARGS="$ARGS $IODINED_DOMAIN" |
166 |
else |
167 |
eerror "Please set a domain (IODINED_DOMAIN) in /etc/conf.d/iodined!" |
168 |
return 1 |
169 |
fi |
170 |
start-stop-daemon --start --exec /usr/bin/iodined -- $ARGS |
171 |
eend $? |
172 |
} |
173 |
|
174 |
stop() { |
175 |
ebegin "Stopping iodined" |
176 |
start-stop-daemon --stop --exec /usr/bin/iodined |
177 |
eend $? |
178 |
} |