* updated kmbox (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / network / tcp_wrappers / weak_symbols.patch
blob173f19604ac24cb9330345757c2b690902f81111
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../tcp_wrappers/weak_symbols.patch
5 # Copyright (C) 2006 - 2007 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Inspired from the Fedora Core shared patch without pulling all the shared bits.
19 - Rene Rebe <rene@exactcode.de>
21 --- tcp_wrappers_7.6/Makefile.shared 2003-02-10 20:12:26.000000000 +0100
22 +++ tcp_wrappers_7.6/Makefile 2003-02-10 20:14:05.000000000 +0100
23 @@ -391,7 +391,7 @@
24 # the ones provided with this source distribution. The environ.c module
25 # implements setenv(), getenv(), and putenv().
27 -AUX_OBJ= setenv.o
28 +AUX_OBJ= weak_symbols.o
29 #AUX_OBJ= environ.o
30 #AUX_OBJ= environ.o strcasecmp.o
32 @@ -906,5 +913,6 @@
33 update.o: mystdarg.h
34 update.o: tcpd.h
35 vfprintf.o: cflags
36 +weak_symbols.o: tcpd.h
37 workarounds.o: cflags
38 workarounds.o: tcpd.h
39 --- /dev/null 2003-01-30 11:24:37.000000000 +0100
40 +++ tcp_wrappers_7.6/weak_symbols.c 2003-02-10 20:12:26.000000000 +0100
41 @@ -0,0 +1,11 @@
42 + /*
43 + * @(#) weak_symbols.h 1.5 99/12/29 23:50
44 + *
45 + * Author: Anthony Towns <ajt@debian.org>
46 + */
48 +//#ifdef HAVE_WEAKSYMS
49 +#include <syslog.h>
50 +int deny_severity = LOG_WARNING;
51 +int allow_severity = SEVERITY;
52 +//#endif
53 --- tcp_wrappers_7.6/tcpd.h 1996-03-19 16:22:25.000000000 +0100
54 +++ ./tcpd.h 2006-10-11 13:10:49.000000000 +0200
55 @@ -78,8 +78,8 @@
57 /* Global variables. */
59 -extern int allow_severity; /* for connection logging */
60 -extern int deny_severity; /* for connection logging */
61 +extern int allow_severity __attribute__ ((weak)); /* for connection logging */
62 +extern int deny_severity __attribute__ ((weak)); /* for connection logging */
63 extern char *hosts_allow_table; /* for verification mode redirection */
64 extern char *hosts_deny_table; /* for verification mode redirection */
65 extern int hosts_access_verbose; /* for verbose matching mode */