SHA256
1
0
forked from pool/tcpd

Accepting request 162800 from network:utilities

- Cleanup spec file
- Add Source URL, see https://en.opensuse.org/SourceUrls (forwarded request 162761 from namtrac)

OBS-URL: https://build.opensuse.org/request/show/162800
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tcpd?expand=0&rev=21
This commit is contained in:
Stephan Kulow 2013-04-05 15:09:40 +00:00 committed by Git OBS Bridge
commit 6d60641262
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

View File

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