diff --git a/baselibs.conf b/baselibs.conf index ede1a37..fb22993 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,2 +1,3 @@ tcpd arch ppc package tcpd-devel +arch sparcv9 package tcpd-devel diff --git a/tcp_wrappers_7.6-implicit-decl.patch b/tcp_wrappers_7.6-implicit-decl.patch new file mode 100644 index 0000000..0415dc4 --- /dev/null +++ b/tcp_wrappers_7.6-implicit-decl.patch @@ -0,0 +1,75 @@ +Index: rfc931.c +=================================================================== +--- rfc931.c.orig 2009-10-30 20:14:38.000000000 +0100 ++++ rfc931.c 2009-10-30 20:17:34.000000000 +0100 +@@ -23,7 +23,7 @@ static char sccsid[] = "@(#) rfc931.c 1. + #include + #include + #include +- ++#include + /* Local stuff. */ + + #include "tcpd.h" +Index: safe_finger.c +=================================================================== +--- safe_finger.c.orig 2009-10-30 20:14:36.000000000 +0100 ++++ safe_finger.c 2009-10-30 20:32:39.000000000 +0100 +@@ -19,13 +19,16 @@ static char sccsid[] = "@(#) safe_finger + #endif + + /* System libraries */ +- ++#include ++#include + #include + #include ++#include + #include + #include + #include + #include ++#include + + extern void exit(); + +Index: tcpdchk.c +=================================================================== +--- tcpdchk.c.orig 2009-10-30 20:14:36.000000000 +0100 ++++ tcpdchk.c 2009-10-30 20:28:19.000000000 +0100 +@@ -20,6 +20,7 @@ static char sccsid[] = "@(#) tcpdchk.c 1 + + /* System libraries. */ + ++#include + #include + #include + #ifdef INET6 +@@ -33,6 +34,7 @@ static char sccsid[] = "@(#) tcpdchk.c 1 + #include + #include + #include ++#include + + extern int errno; + extern void exit(); +Index: tcpdmatch.c +=================================================================== +--- tcpdmatch.c.orig 2009-10-30 20:14:36.000000000 +0100 ++++ tcpdmatch.c 2009-10-30 20:29:17.000000000 +0100 +@@ -19,6 +19,7 @@ static char sccsid[] = "@(#) tcpdmatch.c + + /* System libraries. */ + ++#include + #include + #include + #include +@@ -29,6 +30,7 @@ static char sccsid[] = "@(#) tcpdmatch.c + #include + #include + #include ++#include + + extern void exit(); + extern int optind; diff --git a/tcpd.changes b/tcpd.changes index 706fa61..f6fa878 100644 --- a/tcpd.changes +++ b/tcpd.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sun Dec 13 15:48:21 CET 2009 - jengelh@medozas.de + +- add baselibs.conf as a source +- add baselibs for SPARC +- enable parallel building + +------------------------------------------------------------------- +Fri Oct 30 19:40:28 UTC 2009 - crrodriguez@opensuse.org + +- fix build + ------------------------------------------------------------------- Wed Jan 7 12:34:56 CET 2009 - olh@suse.de diff --git a/tcpd.spec b/tcpd.spec index 9e228d0..14e7723 100644 --- a/tcpd.spec +++ b/tcpd.spec @@ -20,7 +20,7 @@ Name: tcpd Url: ftp://ftp.porcupine.org/pub/security/index.html -License: BSD 3-Clause +License: BSD3c Group: Productivity/Networking/System Provides: nkitb:/usr/sbin/tcpd BuildRequires: linux-kernel-headers @@ -31,9 +31,10 @@ Obsoletes: tcpd-64bit %endif # Version: 7.6 -Release: 856 +Release: 858 Summary: A security wrapper for TCP daemons Source: tcp_wrappers_%{version}.tar.bz2 +Source2: baselibs.conf Patch0: tcp_wrappers_%{version}.diff Patch1: tcp_wrappers_%{version}-ipv6-1.6.diff Patch2: tcp_wrappers_%{version}-ipv6-fix.diff @@ -62,6 +63,7 @@ Patch24: tcp_wrappers_%{version}-fedora-bug220015.diff Patch25: tcp_wrappers_%{version}-shared-lib2.diff Patch26: tcp_wrappers_%{version}-fedora-bug17795.diff Patch27: tcp_wrappers_%{version}-fedora-bug17847.diff +Patch28: tcp_wrappers_7.6-implicit-decl.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -76,7 +78,7 @@ Authors: Wietse Venema %package devel -License: BSD 3-Clause +License: BSD3c Summary: Include Files and Libraries for the TCP wrapper library Group: Productivity/Networking/System Requires: %{name} = %{version} @@ -123,10 +125,11 @@ to compile and link programs against the TCP wrapper library. %patch25 %patch26 %patch27 +%patch28 %build # make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux -make linux +make %{?jobs:-j%jobs} linux %install install -d -m 755 $RPM_BUILD_ROOT%{_includedir} @@ -168,81 +171,3 @@ ln -sf /%{_lib}/libwrap.so.0.%{version} libwrap.so %{_libdir}/libwrap.so %changelog -* Wed Jan 07 2009 olh@suse.de -- obsolete old -XXbit packages (bnc#437293) -* Tue Nov 11 2008 ro@suse.de -- SLE-11 uses PPC64 instead of PPC, adapt baselibs.conf -* Mon Oct 13 2008 prusnak@suse.cz -- applied patches from Fedora package - * fedora-bug11881.diff - replace sprintf with snprintf - * fedora-bug17795.diff - add hostfile matching - * fedora-bug17847.diff - add wildcard matching - * fedora-bug141110.diff - fix table_match usage - * fedora-bug220015.diff - add sock_hostnofd function - * fedora-docu.diff - fix manpage - * fedora-fixgethostbyname.diff - fix gethostbyname usage - * fedora-sig.diff - fix signal usage - * fedora-sigalarm.diff - fix signal usage - * fedora-sigchld.diff - fix signal usage - * fedora-sigjmp.diff - fix signal usage - * fedora-strerror.diff - fix strerror usage -* Thu Apr 10 2008 ro@suse.de -- added baselibs.conf file to build xxbit packages - for multilib support -* Tue May 30 2006 lmichnovic@suse.cz -- fixed uninitilized filepointer (uninitialized.diff) [#178636] -* Fri Mar 31 2006 lmichnovic@suse.cz -- fixed missing definition of hosts_ctl() in tcpd.h (hosts_ctl.diff) - [#162303] -* Wed Jan 25 2006 mls@suse.de -- converted neededforbuild to BuildRequires -* Sun Jan 15 2006 schwab@suse.de -- Don't strip binaries. -* Fri Sep 16 2005 meissner@suse.de -- fixed all implicit warnings. -* Fri Jun 24 2005 ro@suse.de -- build with fPIE/pie -- really use RPM_OPT_FLAGS -- fix some non-void-return warnings -* Thu Jan 13 2005 postadal@suse.cz -- fixed crashing on system with more than one network interface [#49368] -* Wed Sep 15 2004 aj@suse.de -- Fix warnings about implicit functions to compile with GCC 4.0. -* Mon Mar 22 2004 ro@suse.de -- installed shared lib to /%%_lib, not /usr/%%_lib - and add symlinks (fix for part of #36514) -* Thu Feb 12 2004 kukuk@suse.de -- Create subpackage "tcpd-devel" -* Mon Feb 09 2004 postadal@suse.cz -- added support for compiling as shared library with soname of libwrap0 (version 7.6) -* Sun Jan 11 2004 adrian@suse.de -- build as user -* Fri Oct 31 2003 postadal@suse.cz -- fixed invalid warning about "host name mismatch" [#26519, #32772] -* Wed Sep 10 2003 postadal@suse.cz -- fixed handling patterns ending with period [#27322] -* Sat Mar 15 2003 kukuk@suse.de -- Don't handle IPv4 netmask as Prefix length [#25409] -* Mon Dec 16 2002 postadal@suse.cz -- added ip6utils.h to filelist [#22487] -* Fri Dec 13 2002 postadal@suse.cz -- fixed fix_options function in libwrap.a [#22000] -- included patch ipv6-fix.diff of mludvig@suse.cz to make tcpd work - with IPv4 and mapped IPv4 addresses. [#16162] -- turned off remote username lookups (allways_rfc931) [#22013] -* Thu Jan 10 2002 cihlar@suse.cz -- use %%{_libdir} -* Tue Nov 20 2001 cihlar@suse.cz -- fixed SEGFAULT in tcpdchk [#12135] -* Thu Sep 06 2001 schwab@suse.de -- Compile with -fPIC so that it can be included in a shared library. -* Wed Sep 05 2001 schwab@suse.de -- Add prototypes for C++. -* Thu Mar 22 2001 ro@suse.de -- added split-aliases as provides -* Tue Feb 27 2001 cihlar@suse.cz -- fixed %%files -- clean up spec file -- bzipped sources -* Tue Apr 11 2000 kukuk@suse.de -- Split from nkitb