SHA256
3
0
forked from pool/tcpd

Accepting request 26747 from network:utilities

Copy from network:utilities/tcpd based on submit request 26747 from user coolo

OBS-URL: https://build.opensuse.org/request/show/26747
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tcpd?expand=0&rev=8
This commit is contained in:
OBS User autobuild 2009-12-16 15:43:43 +00:00 committed by Git OBS Bridge
parent ddb00fca0c
commit c2ea1d234c
4 changed files with 95 additions and 82 deletions

View File

@ -1,2 +1,3 @@
tcpd tcpd
arch ppc package tcpd-devel arch ppc package tcpd-devel
arch sparcv9 package tcpd-devel

View File

@ -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 <setjmp.h>
#include <signal.h>
#include <string.h>
-
+#include <unistd.h>
/* 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 <stdlib.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include <signal.h>
#include <stdio.h>
#include <ctype.h>
#include <pwd.h>
+#include <fcntl.h>
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 <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef INET6
@@ -33,6 +34,7 @@ static char sccsid[] = "@(#) tcpdchk.c 1
#include <errno.h>
#include <netdb.h>
#include <string.h>
+#include <unistd.h>
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 <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
@@ -29,6 +30,7 @@ static char sccsid[] = "@(#) tcpdmatch.c
#include <syslog.h>
#include <setjmp.h>
#include <string.h>
+#include <unistd.h>
extern void exit();
extern int optind;

View File

@ -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 Wed Jan 7 12:34:56 CET 2009 - olh@suse.de

View File

@ -20,7 +20,7 @@
Name: tcpd Name: tcpd
Url: ftp://ftp.porcupine.org/pub/security/index.html Url: ftp://ftp.porcupine.org/pub/security/index.html
License: BSD 3-Clause License: BSD3c
Group: Productivity/Networking/System Group: Productivity/Networking/System
Provides: nkitb:/usr/sbin/tcpd Provides: nkitb:/usr/sbin/tcpd
BuildRequires: linux-kernel-headers BuildRequires: linux-kernel-headers
@ -31,9 +31,10 @@ Obsoletes: tcpd-64bit
%endif %endif
# #
Version: 7.6 Version: 7.6
Release: 856 Release: 858
Summary: A security wrapper for TCP daemons Summary: A security wrapper for TCP daemons
Source: tcp_wrappers_%{version}.tar.bz2 Source: tcp_wrappers_%{version}.tar.bz2
Source2: baselibs.conf
Patch0: tcp_wrappers_%{version}.diff Patch0: tcp_wrappers_%{version}.diff
Patch1: tcp_wrappers_%{version}-ipv6-1.6.diff Patch1: tcp_wrappers_%{version}-ipv6-1.6.diff
Patch2: tcp_wrappers_%{version}-ipv6-fix.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 Patch25: tcp_wrappers_%{version}-shared-lib2.diff
Patch26: tcp_wrappers_%{version}-fedora-bug17795.diff Patch26: tcp_wrappers_%{version}-fedora-bug17795.diff
Patch27: tcp_wrappers_%{version}-fedora-bug17847.diff Patch27: tcp_wrappers_%{version}-fedora-bug17847.diff
Patch28: tcp_wrappers_7.6-implicit-decl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -76,7 +78,7 @@ Authors:
Wietse Venema <wietse@wzv.win.tue.nl> Wietse Venema <wietse@wzv.win.tue.nl>
%package devel %package devel
License: BSD 3-Clause License: BSD3c
Summary: Include Files and Libraries for the TCP wrapper library Summary: Include Files and Libraries for the TCP wrapper library
Group: Productivity/Networking/System Group: Productivity/Networking/System
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -123,10 +125,11 @@ to compile and link programs against the TCP wrapper library.
%patch25 %patch25
%patch26 %patch26
%patch27 %patch27
%patch28
%build %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 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
install -d -m 755 $RPM_BUILD_ROOT%{_includedir} install -d -m 755 $RPM_BUILD_ROOT%{_includedir}
@ -168,81 +171,3 @@ ln -sf /%{_lib}/libwrap.so.0.%{version} libwrap.so
%{_libdir}/libwrap.so %{_libdir}/libwrap.so
%changelog %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