SHA256
3
0
forked from pool/tcpd

Accepting request 162761 from home:namtrac:bugfix

- Cleanup spec file
- Add Source URL, see https://en.opensuse.org/SourceUrls

OBS-URL: https://build.opensuse.org/request/show/162761
OBS-URL: https://build.opensuse.org/package/show/network:utilities/tcpd?expand=0&rev=15
This commit is contained in:
Marcus Meissner 2013-04-05 11:28:13 +00:00 committed by Git OBS Bridge
parent af97781704
commit 670ab4375f
4 changed files with 29 additions and 31 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77a52687b1919bd4b10a0893becec1935e23a5355e85a786e29fb84a13953a2c
size 78615

BIN
tcp_wrappers_7.6.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 5 10:39:36 UTC 2013 - idonmez@suse.com
- Cleanup spec file
- Add Source URL, see https://en.opensuse.org/SourceUrls
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jan 20 01:29:11 UTC 2013 - jengelh@inai.de Sun Jan 20 01:29:11 UTC 2013 - jengelh@inai.de

View File

@ -19,8 +19,8 @@
Name: tcpd Name: tcpd
%define lname libwrap0 %define lname libwrap0
Url: ftp://ftp.porcupine.org/pub/security/index.html Url: ftp://ftp.porcupine.org/pub/security/index.html
Provides: nkitb:/usr/sbin/tcpd
BuildRequires: linux-kernel-headers BuildRequires: linux-kernel-headers
Provides: nkitb:/usr/sbin/tcpd
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
Obsoletes: tcpd-64bit Obsoletes: tcpd-64bit
@ -31,7 +31,7 @@ Release: 0
Summary: A security wrapper for TCP daemons Summary: A security wrapper for TCP daemons
License: BSD-3-Clause License: BSD-3-Clause
Group: Productivity/Networking/System Group: Productivity/Networking/System
Source: tcp_wrappers_%{version}.tar.bz2 Source: ftp://ftp.porcupine.org/pub/security/tcp_wrappers_%{version}.tar.gz
Source2: baselibs.conf 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
@ -69,12 +69,6 @@ This package contains a small daemon program that can monitor and
filter incoming requests for finger, ftp, telnet, rlogin, rsh, exec, filter incoming requests for finger, ftp, telnet, rlogin, rsh, exec,
tftp, talk, and other network services. tftp, talk, and other network services.
Authors:
--------
Wietse Venema <wietse@wzv.win.tue.nl>
%package -n %lname %package -n %lname
Summary: The TCP wrapper library Summary: The TCP wrapper library
Group: System/Libraries Group: System/Libraries
@ -86,7 +80,7 @@ requests (connections) based upon rule exclusion files (/etc/hosts.*).
%package devel %package devel
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: %lname = %version Requires: %lname = %{version}
Requires: glibc-devel Requires: glibc-devel
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
@ -98,8 +92,6 @@ Obsoletes: tcpd-devel-64bit
This package contains the library and header files, which are necessary This package contains the library and header files, which are necessary
to compile and link programs against the TCP wrapper library. to compile and link programs against the TCP wrapper library.
%prep %prep
%setup -q -n tcp_wrappers_%{version} %setup -q -n tcp_wrappers_%{version}
%patch0 %patch0
@ -133,25 +125,25 @@ to compile and link programs against the TCP wrapper library.
%patch28 %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="%{optflags} -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux
make %{?_smp_mflags} linux CC="%{__cc}" make %{?_smp_mflags} linux CC="gcc"
%install %install
install -d -m 755 $RPM_BUILD_ROOT%{_includedir} install -d -m 755 %{buildroot}%{_includedir}
install -d -m 755 $RPM_BUILD_ROOT%{_libdir} install -d -m 755 %{buildroot}%{_libdir}
install -d -m 755 $RPM_BUILD_ROOT%{_sbindir} install -d -m 755 %{buildroot}%{_sbindir}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8} install -d -m 755 %{buildroot}%{_mandir}/man{1,3,5,8}
install -d -m 755 $RPM_BUILD_ROOT/%{_lib} install -d -m 755 %{buildroot}/%{_lib}
install -m 644 ip6utils.h tcpd.h $RPM_BUILD_ROOT%{_includedir} install -m 644 ip6utils.h tcpd.h %{buildroot}%{_includedir}
install -m 644 libwrap.a $RPM_BUILD_ROOT/%{_libdir} install -m 644 libwrap.a %{buildroot}/%{_libdir}
install -m 755 safe_finger tcpd tcpdchk tcpdmatch try-from $RPM_BUILD_ROOT%{_sbindir} install -m 755 safe_finger tcpd tcpdchk tcpdmatch try-from %{buildroot}%{_sbindir}
install -m 644 hosts_access.3 $RPM_BUILD_ROOT%{_mandir}/man3 install -m 644 hosts_access.3 %{buildroot}%{_mandir}/man3
install -m 644 hosts_access.5 hosts_options.5 $RPM_BUILD_ROOT%{_mandir}/man5 install -m 644 hosts_access.5 hosts_options.5 %{buildroot}%{_mandir}/man5
install -m 644 tcpd.8 tcpdchk.8 tcpdmatch.8 $RPM_BUILD_ROOT%{_mandir}/man8 install -m 644 tcpd.8 tcpdchk.8 tcpdmatch.8 %{buildroot}%{_mandir}/man8
install -m 644 shared/libwrap.so.0.%{version} $RPM_BUILD_ROOT/%{_lib} install -m 644 shared/libwrap.so.0.%{version} %{buildroot}/%{_lib}
cd $RPM_BUILD_ROOT/%{_lib} cd %{buildroot}/%{_lib}
ln -sf libwrap.so.0.%{version} libwrap.so.0 ln -sf libwrap.so.0.%{version} libwrap.so.0
cd $RPM_BUILD_ROOT%{_libdir} cd %{buildroot}%{_libdir}
ln -sf /%{_lib}/libwrap.so.0.%{version} libwrap.so ln -sf /%{_lib}/libwrap.so.0.%{version} libwrap.so
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
@ -167,7 +159,7 @@ ln -sf /%{_lib}/libwrap.so.0.%{version} libwrap.so
%files -n %lname %files -n %lname
%defattr(-,root,root) %defattr(-,root,root)
%doc DISCLAIMER %doc DISCLAIMER
%attr(755,root,root) /%_lib/libwrap.so.0* %attr(755,root,root) /%{_lib}/libwrap.so.0*
%files devel %files devel
%defattr(644,root,root,755) %defattr(644,root,root,755)