1 |
flameeyes 11/05/02 20:43:45 |
2 |
|
3 |
Added: ultimate-3.0.2-system-zlib.patch |
4 |
ultimate-3.0.2-entropy-path.patch |
5 |
ultimate-3.0.2-make-failfast.patch |
6 |
ultimateircd.rc.2 ultimate-3.0.2-open-mode.patch |
7 |
ultimate-3.0.2-config.patch.in ultimateircd.conf.2 |
8 |
Log: |
9 |
Revision bump by Nathan Phillip Brink, who's the new proxied maintainer for the package. Fixes bugs #251434 and 364957. |
10 |
|
11 |
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.1 net-irc/ultimate/files/ultimate-3.0.2-system-zlib.patch |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-system-zlib.patch?rev=1.1&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-system-zlib.patch?rev=1.1&content-type=text/plain |
18 |
|
19 |
Index: ultimate-3.0.2-system-zlib.patch |
20 |
=================================================================== |
21 |
From: Nathan Phillip Brink <ohnobinki@××××××××××××××.net> |
22 |
Subject: Don't compile against internal zlib. Missing ./configure.ac |
23 |
changes because ./configure.ac wasn't shipped with the dist |
24 |
tarball. |
25 |
Date: 2011/04/27 |
26 |
|
27 |
--- a/autoconf/configure.in |
28 |
+++ b/autoconf/configure.in |
29 |
@@ -702,6 +702,8 @@ |
30 |
wi_ARG_DISABLE_CCDV |
31 |
wi_PROG_CCDV |
32 |
|
33 |
+PKG_CHECK_MODULES([ZLIB], [zlib]) |
34 |
+ |
35 |
AC_SUBST(SSL_INCLUDES) |
36 |
AC_SUBST(SSL_LIBS) |
37 |
AC_SUBST(ENCRYPT_SRC) |
38 |
@@ -716,7 +718,7 @@ |
39 |
AC_SUBST(SEDOBJ) |
40 |
AC_SUBST(CCDV) |
41 |
|
42 |
-AC_OUTPUT(Makefile data/Makefile data/networks/Makefile src/Makefile tools/Makefile tools/ircdcron/Makefile tools/ssl-cert/Makefile zlib/Makefile) |
43 |
+AC_OUTPUT(Makefile data/Makefile data/networks/Makefile src/Makefile tools/Makefile tools/ircdcron/Makefile tools/ssl-cert/Makefile) |
44 |
|
45 |
echo |
46 |
echo ================================================================= |
47 |
--- a/Makefile.in |
48 |
+++ b/Makefile.in |
49 |
@@ -28,3 +28,3 @@ |
50 |
SHELL=/bin/sh |
51 |
-SUBDIRS=zlib src tools data @SUBDIR_MESSAGES@ |
52 |
+SUBDIRS = src tools data @SUBDIR_MESSAGES@ |
53 |
SUBDIRS2=data/networks tools/ircdcron tools/ssl-cert |
54 |
|
55 |
--- a/src/Makefile.in |
56 |
+++ b/src/Makefile.in |
57 |
@@ -53,9 +53,9 @@ |
58 |
SSL_LIBS = @SSL_LIBS@ |
59 |
SSL_INCLUDES = @SSL_INCLUDES@ |
60 |
|
61 |
-IRCDLIBS = ../zlib/libz.a @LIBS@ $(SSL_LIBS) |
62 |
+IRCDLIBS = $(ZLIB_LIBS) @LIBS@ $(SSL_LIBS) |
63 |
|
64 |
-INCLUDES = -I../include -I../zlib $(SSL_INCLUDES) |
65 |
+INCLUDES = -I../include $(ZLIB_CFLAGS) $(SSL_INCLUDES) |
66 |
CPPFLAGS = ${INCLUDES} @CPPFLAGS@ |
67 |
|
68 |
default: all |
69 |
|
70 |
|
71 |
|
72 |
|
73 |
1.1 net-irc/ultimate/files/ultimate-3.0.2-entropy-path.patch |
74 |
|
75 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-entropy-path.patch?rev=1.1&view=markup |
76 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-entropy-path.patch?rev=1.1&content-type=text/plain |
77 |
|
78 |
Index: ultimate-3.0.2-entropy-path.patch |
79 |
=================================================================== |
80 |
From: Nathan Phillip Brink <ohnobinki@××××××××××××××.net> |
81 |
Subject: Store and retrieve entropy from a file in a directory |
82 |
writable/readable by ultimateircd. |
83 |
Date: 2011/04/28 |
84 |
|
85 |
--- a/src/Makefile.in |
86 |
+++ b/src/Makefile.in |
87 |
@@ -32,7 +32,7 @@ |
88 |
LEX = @LEX@ |
89 |
LEXLIB = @LEXLIB@ |
90 |
CCDV = @CCDV@ |
91 |
-CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\" |
92 |
+CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\" -DLOCALSTATEDIR='"$(localstatedir)"' |
93 |
LDFLAGS = @LDFLAGS@ |
94 |
MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\" |
95 |
MV = @MV@ |
96 |
--- a/src/dh.c |
97 |
+++ b/src/dh.c |
98 |
@@ -214,10 +214,10 @@ |
99 |
printf ("Done.\n"); |
100 |
fclose (fp); |
101 |
|
102 |
- fp = fopen (".ircd.entropy", "w"); |
103 |
+ fp = fopen (LOCALSTATEDIR "/.ircd.entropy", "w"); |
104 |
if (!fp) |
105 |
{ |
106 |
- printf ("Could not open .ircd.entropy for writing: %s\n", |
107 |
+ printf ("Could not open " LOCALSTATEDIR "/.ircd.entropy for writing: %s\n", |
108 |
strerror (errno)); |
109 |
return 0; |
110 |
} |
111 |
@@ -225,7 +225,7 @@ |
112 |
fwrite (randbuf, RAND_BYTES * 4, 1, fp); |
113 |
fclose (fp); |
114 |
|
115 |
- RAND_load_file (".ircd.entropy", -1); |
116 |
+ RAND_load_file (LOCALSTATEDIR "/.ircd.entropy", -1); |
117 |
|
118 |
return 1; |
119 |
} |
120 |
@@ -236,7 +236,7 @@ |
121 |
int ret; |
122 |
time_t now; |
123 |
|
124 |
- ret = RAND_load_file (".ircd.entropy", -1); |
125 |
+ ret = RAND_load_file (LOCALSTATEDIR "/.ircd.entropy", -1); |
126 |
if (ret <= 0) |
127 |
{ |
128 |
if (!make_entropy ()) |
129 |
@@ -250,7 +250,7 @@ |
130 |
/* this is probably not too good, but it saves just writing |
131 |
the whole state back to disk with no changes. */ |
132 |
RAND_seed (&now, 4); |
133 |
- RAND_write_file (".ircd.entropy"); |
134 |
+ RAND_write_file (LOCALSTATEDIR "/.ircd.entropy"); |
135 |
|
136 |
return 0; |
137 |
} |
138 |
|
139 |
|
140 |
|
141 |
1.1 net-irc/ultimate/files/ultimate-3.0.2-make-failfast.patch |
142 |
|
143 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-make-failfast.patch?rev=1.1&view=markup |
144 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-make-failfast.patch?rev=1.1&content-type=text/plain |
145 |
|
146 |
Index: ultimate-3.0.2-make-failfast.patch |
147 |
=================================================================== |
148 |
From: Nathan Phillip Brink <ohnobinki@××××××××××××××.net> |
149 |
Subject: Cause build failures to be fail-fast instead of going undetected. |
150 |
Date: 2011/04/27 |
151 |
|
152 |
--- a/Makefile.in |
153 |
+++ b/Makefile.in |
154 |
@@ -43,7 +43,7 @@ |
155 |
@for i in $(SUBDIRS); do \ |
156 |
echo "Building $$i";\ |
157 |
cd $$i;\ |
158 |
- ${MAKE} build; cd ..;\ |
159 |
+ ${MAKE} build || exit 1; cd ..;\ |
160 |
done |
161 |
@echo ' ' |
162 |
@echo '=================================================================' |
163 |
@@ -62,7 +62,7 @@ |
164 |
@for i in $(SUBDIRS); do \ |
165 |
echo "Building $$i [profile]";\ |
166 |
cd $$i;\ |
167 |
- ${MAKEPROFILE} build; cd ..;\ |
168 |
+ ${MAKEPROFILE} build || exit 1; cd ..;\ |
169 |
done |
170 |
|
171 |
clean: |
172 |
@@ -70,7 +70,7 @@ |
173 |
@for i in $(SUBDIRS); do \ |
174 |
echo "Cleaning $$i";\ |
175 |
cd $$i;\ |
176 |
- ${MAKE} clean; cd ..;\ |
177 |
+ ${MAKE} clean || exit 1; cd ..;\ |
178 |
done |
179 |
-@if [ -f include/setup.h ] ; then \ |
180 |
echo "To really restart installation, make distclean" ; \ |
181 |
@@ -83,28 +83,28 @@ |
182 |
@for i in $(SUBDIRS); do \ |
183 |
echo "Cleaning $$i";\ |
184 |
cd $$i;\ |
185 |
- ${MAKE} distclean; cd ..;\ |
186 |
+ ${MAKE} distclean || exit 1; cd ..;\ |
187 |
done |
188 |
|
189 |
depend: |
190 |
@for i in $(SUBDIRS); do \ |
191 |
echo "depend ==> $$i";\ |
192 |
cd $$i;\ |
193 |
- ${MAKE} depend; cd ..;\ |
194 |
+ ${MAKE} depend || exit 1; cd ..;\ |
195 |
done |
196 |
|
197 |
install: all |
198 |
@for i in $(SUBDIRS); do \ |
199 |
echo "install ==> $$i";\ |
200 |
cd $$i;\ |
201 |
- ${MAKE} install; \ |
202 |
+ ${MAKE} install || exit 1; \ |
203 |
cd ..; \ |
204 |
done |
205 |
|
206 |
@for i in $(SUBDIRS2); do \ |
207 |
echo "install ==> $$i";\ |
208 |
cd $$i;\ |
209 |
- ${MAKE} install; \ |
210 |
+ ${MAKE} install || exit 1; \ |
211 |
cd ../../; \ |
212 |
done |
213 |
|
214 |
--- a/tools/Makefile.in |
215 |
+++ b/tools/Makefile.in |
216 |
@@ -68,6 +68,7 @@ |
217 |
|
218 |
build: all |
219 |
|
220 |
+depend: |
221 |
|
222 |
mkpasswd: $(mkpasswd_OBJECTS) |
223 |
$(CCDV)$(CC) ${CFLAGS} ${LDFLAGS} -o mkpasswd $(mkpasswd_OBJECTS) $(IRCDLIBS) |
224 |
|
225 |
|
226 |
|
227 |
1.1 net-irc/ultimate/files/ultimateircd.rc.2 |
228 |
|
229 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimateircd.rc.2?rev=1.1&view=markup |
230 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimateircd.rc.2?rev=1.1&content-type=text/plain |
231 |
|
232 |
Index: ultimateircd.rc.2 |
233 |
=================================================================== |
234 |
#!/sbin/runscript |
235 |
# Copyright 1999-2011 Gentoo Foundation |
236 |
# Distributed under the terms of the GNU General Public License v2 |
237 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/ultimate/files/ultimateircd.rc.2,v 1.1 2011/05/02 20:43:45 flameeyes Exp $ |
238 |
|
239 |
depend() { |
240 |
use dns net |
241 |
} |
242 |
|
243 |
start() { |
244 |
ebegin "Starting ${SVCNAME}" |
245 |
start-stop-daemon --start --quiet --exec /usr/bin/ultimateircd \ |
246 |
--chuid ${ULTIMATEIRCD_USER} |
247 |
eend $? |
248 |
} |
249 |
|
250 |
stop() { |
251 |
ebegin "Shutting down ${SVCNAME}" |
252 |
start-stop-daemon --stop --pidfile /var/run/ultimateircd/ircd.pid |
253 |
eend $? |
254 |
} |
255 |
|
256 |
|
257 |
|
258 |
1.1 net-irc/ultimate/files/ultimate-3.0.2-open-mode.patch |
259 |
|
260 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-open-mode.patch?rev=1.1&view=markup |
261 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-open-mode.patch?rev=1.1&content-type=text/plain |
262 |
|
263 |
Index: ultimate-3.0.2-open-mode.patch |
264 |
=================================================================== |
265 |
From: Nathan Phillip Brink <ohnobinki@××××××××××××××.net> |
266 |
Subject: Provide the required third argument to open() when O_CREAT is |
267 |
in the second argument. |
268 |
Date: 2011/04/28 |
269 |
|
270 |
--- a/src/s_serv.c |
271 |
+++ b/src/s_serv.c |
272 |
@@ -4603,7 +4603,7 @@ |
273 |
|
274 |
#else /* LOCKFILE - MDP */ |
275 |
|
276 |
- if ((out = open (filename, O_RDWR | O_APPEND | O_CREAT)) == -1) |
277 |
+ if ((out = open (filename, O_RDWR | O_APPEND | O_CREAT, 0600)) == -1) |
278 |
{ |
279 |
sendto_one (source_p, ":%s NOTICE %s :Problem opening %s ", |
280 |
me.name, parv[0], filename); |
281 |
@@ -7397,7 +7397,7 @@ |
282 |
syslog (LOG_INFO, "ADDCNLINE from %s for [%s] - Opening %s\n", |
283 |
get_client_name (source_p, FALSE), parv[3], configfile); |
284 |
#endif |
285 |
- if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT)) == -1) |
286 |
+ if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT, 0600)) == -1) |
287 |
{ |
288 |
sendto_one (source_p, ":%s NOTICE %s :Problem opening %s ", |
289 |
me.name, parv[0], configfile); |
290 |
@@ -7770,7 +7770,7 @@ |
291 |
syslog (LOG_INFO, "ADDOPER from %s for [%s] - Opening %s\n", |
292 |
get_client_name (source_p, FALSE), parv[3], configfile); |
293 |
#endif |
294 |
- if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT)) == -1) |
295 |
+ if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT, 0600)) == -1) |
296 |
{ |
297 |
sendto_one (source_p, ":%s NOTICE %s :Problem opening %s ", |
298 |
me.name, parv[0], configfile); |
299 |
@@ -8090,7 +8090,7 @@ |
300 |
syslog (LOG_INFO, "ADDQLINE from %s for [%s] - Opening %s\n", |
301 |
get_client_name (source_p, FALSE), parv[1], configfile); |
302 |
#endif |
303 |
- if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT)) == -1) |
304 |
+ if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT, 0600)) == -1) |
305 |
{ |
306 |
sendto_one (source_p, ":%s NOTICE %s :Problem opening %s ", |
307 |
me.name, parv[0], configfile); |
308 |
@@ -8379,7 +8379,7 @@ |
309 |
syslog (LOG_INFO, "ADDHLINE from %s for [%s] - Opening %s\n", |
310 |
get_client_name (source_p, FALSE), parv[1], configfile); |
311 |
#endif |
312 |
- if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT)) == -1) |
313 |
+ if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT, 0600)) == -1) |
314 |
{ |
315 |
sendto_one (source_p, ":%s NOTICE %s :Problem opening %s ", |
316 |
me.name, parv[0], configfile); |
317 |
@@ -8663,7 +8663,7 @@ |
318 |
syslog (LOG_INFO, "ADDULINE from %s for [%s] - Opening %s\n", |
319 |
get_client_name (source_p, FALSE), parv[1], configfile); |
320 |
#endif |
321 |
- if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT)) == -1) |
322 |
+ if ((out = open (configfile, O_RDWR | O_APPEND | O_CREAT, 0600)) == -1) |
323 |
{ |
324 |
sendto_one (source_p, ":%s NOTICE %s :Problem opening %s ", |
325 |
me.name, parv[0], configfile); |
326 |
|
327 |
Diff finished. Thu Apr 28 00:15:19 2011 |
328 |
|
329 |
|
330 |
|
331 |
1.1 net-irc/ultimate/files/ultimate-3.0.2-config.patch.in |
332 |
|
333 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-config.patch.in?rev=1.1&view=markup |
334 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimate-3.0.2-config.patch.in?rev=1.1&content-type=text/plain |
335 |
|
336 |
Index: ultimate-3.0.2-config.patch.in |
337 |
=================================================================== |
338 |
diff -Nur Ultimate3.0.0.rc2.orig/include/config.h Ultimate3.0.0.rc2/include/config.h |
339 |
--- Ultimate3.0.0.rc2.orig/include/config.h 2005-01-30 15:01:45.677952244 +0100 |
340 |
+++ Ultimate3.0.0.rc2/include/config.h 2005-01-30 15:02:43.353895511 +0100 |
341 |
@@ -127,13 +127,13 @@ |
342 |
#endif |
343 |
|
344 |
/* dirs */ |
345 |
-#define DPATH IRCD_PREFIX |
346 |
+#define DPATH IRCD_PREFIX |
347 |
#define BINPATH IRCD_PREFIX "/bin/" |
348 |
-#define ETCPATH IRCD_PREFIX "/etc" |
349 |
-#define LOGPATH IRCD_PREFIX "/logs" |
350 |
+#define ETCPATH "@GENTOO_PORTAGE_EPREFIX@/etc/ultimateircd" |
351 |
+#define LOGPATH "@GENTOO_PORTAGE_EPREFIX@/var/log/ultimateircd" |
352 |
|
353 |
/* files */ |
354 |
-#define SPATH BINPATH "/ircd" /* ircd executable */ |
355 |
+#define SPATH BINPATH "/ultimateircd" /* ircd executable */ |
356 |
|
357 |
#define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */ |
358 |
#define DCONF ETCPATH "/ircd.ini" /* Dynamic Configuration File */ |
359 |
@@ -144,7 +144,7 @@ |
360 |
#define SMPATH ETCPATH "/ircd.smotd" /* Short Message Of The Day */ |
361 |
#define OMPATH ETCPATH "/ircd.opermotd" /* Operator Message Of The Day */ |
362 |
#define RPATH ETCPATH "/ircd.rules" /* Rules File */ |
363 |
-#define PPATH ETCPATH "/ircd.pid" /* IRCd PID */ |
364 |
+#define PPATH "@GENTOO_PORTAGE_EPREFIX@/var/run/ultimateircd/ircd.pid" /* IRCd PID */ |
365 |
#define IRCDSSL_CPATH ETCPATH "/ircd.crt" /* Client SSL */ |
366 |
#define IRCDSSL_KPATH ETCPATH "/ircd.key" /* Client SSL */ |
367 |
|
368 |
|
369 |
|
370 |
|
371 |
1.1 net-irc/ultimate/files/ultimateircd.conf.2 |
372 |
|
373 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimateircd.conf.2?rev=1.1&view=markup |
374 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/ultimate/files/ultimateircd.conf.2?rev=1.1&content-type=text/plain |
375 |
|
376 |
Index: ultimateircd.conf.2 |
377 |
=================================================================== |
378 |
# Copyright 1999-2011 Gentoo Foundation |
379 |
# Distributed under the terms of the GNU General Public License v2 |
380 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/ultimate/files/ultimateircd.conf.2,v 1.1 2011/05/02 20:43:45 flameeyes Exp $ |
381 |
|
382 |
# user to run ultimateircd as |
383 |
ULTIMATEIRCD_USER="ultimateircd" |