1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../tcp_wrappers/weak_symbols.patch
5 # Copyright (C) 2006 - 2007 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
24 # the ones provided with this source distribution. The environ.c module
25 # implements setenv(), getenv(), and putenv().
28 +AUX_OBJ= weak_symbols.o
30 #AUX_OBJ= environ.o strcasecmp.o
36 +weak_symbols.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
43 + * @(#) weak_symbols.h 1.5 99/12/29 23:50
45 + * Author: Anthony Towns <ajt@debian.org>
48 +//#ifdef HAVE_WEAKSYMS
50 +int deny_severity = LOG_WARNING;
51 +int allow_severity = SEVERITY;
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
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 */