|
|
@@ -0,0 +1,121 @@
|
|
|
+##
|
|
|
+## tcpwrappers.spec -- OpenPKG RPM Specification
|
|
|
+## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
|
|
|
+## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
|
|
|
+## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
|
|
|
+##
|
|
|
+## Permission to use, copy, modify, and distribute this software for
|
|
|
+## any purpose with or without fee is hereby granted, provided that
|
|
|
+## the above copyright notice and this permission notice appear in all
|
|
|
+## copies.
|
|
|
+##
|
|
|
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
|
|
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
|
|
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
|
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
+## SUCH DAMAGE.
|
|
|
+##
|
|
|
+
|
|
|
+# package information
|
|
|
+Name: tcpwrappers
|
|
|
+Summary: TCP Wrappers Toolkit
|
|
|
+URL: http://www.web-insights.net/socket_wrappers/
|
|
|
+Vendor: Wietse Venema, Steve Grubb
|
|
|
+Packager: The OpenPKG Project
|
|
|
+Distribution: OpenPKG [EVAL]
|
|
|
+Group: Network
|
|
|
+License: BSD
|
|
|
+Version: 7.6k
|
|
|
+Release: 20031021
|
|
|
+
|
|
|
+# list of sources
|
|
|
+Source0: http://www.web-insights.net/socket_wrappers/socket_wrappers-%{version}.tar.gz
|
|
|
+Source1: hosts.allow
|
|
|
+Patch0: tcpwrappers.patch
|
|
|
+
|
|
|
+# build information
|
|
|
+Prefix: %{l_prefix}
|
|
|
+BuildRoot: %{l_buildroot}
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20030103
|
|
|
+PreReq: OpenPKG, openpkg >= 20030103
|
|
|
+AutoReq: no
|
|
|
+AutoReqProv: no
|
|
|
+
|
|
|
+%description
|
|
|
+ The TCP Wrappers package allows you to monitor and filter incoming
|
|
|
+ requests for various network services. It provides tiny daemon
|
|
|
+ wrapper programs that can be installed without any changes to
|
|
|
+ existing software or to existing configuration files. The wrappers
|
|
|
+ report the name of the client host and of the requested service.
|
|
|
+ The wrappers do not exchange information with the client or server
|
|
|
+ applications, and impose no overhead on the actual conversation
|
|
|
+ between the client and server applications.
|
|
|
+
|
|
|
+ Additionally, the wrapper functionality is available as a C API
|
|
|
+ for use in other networking applications, too.
|
|
|
+
|
|
|
+ This package actually is based on Steve Grubb's revised version
|
|
|
+ (Socket Wrappers) of Wietse Venema's original TCP Wrappers.
|
|
|
+
|
|
|
+%prep
|
|
|
+ %setup -q -n socket_wrappers-%{version}
|
|
|
+ %patch -p0
|
|
|
+ chmod a+w Makefile.orig
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;/etc/hosts\.deny;%{l_prefix}/etc/tcpwrappers/hosts.deny;g' \
|
|
|
+ -e 's;/etc/hosts\.allow;%{l_prefix}/etc/tcpwrappers/hosts.allow;g' \
|
|
|
+ Makefile
|
|
|
+
|
|
|
+%build
|
|
|
+ case "%{l_platform -t}" in
|
|
|
+ *-freebsd* ) platform="freebsd" ;;
|
|
|
+ *-linux* ) platform="linux" ;;
|
|
|
+ *-sunos* ) platform="sunos5" ;;
|
|
|
+ * ) platform="other" ;;
|
|
|
+ esac
|
|
|
+ %{l_make} %{l_mflags} \
|
|
|
+ $platform \
|
|
|
+ CC="%{l_cc} %{l_cflags -O}"
|
|
|
+
|
|
|
+%install
|
|
|
+ rm -rf $RPM_BUILD_ROOT
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/tcpwrappers \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/sbin \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/lib \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/include \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/man/man3 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/man/man8
|
|
|
+ %{l_shtool} install -c -s -m 755 \
|
|
|
+ tcpd tcpdchk tcpdmatch try-from safe_finger \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/sbin/
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ tcpd.h $RPM_BUILD_ROOT%{l_prefix}/include/
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ libwrap.a $RPM_BUILD_ROOT%{l_prefix}/lib/
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ *.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ *.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ *.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ %{SOURCE hosts.allow} \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/tcpwrappers/
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
+ %{l_files_std} \
|
|
|
+ '%config %{l_prefix}/etc/tcpwrappers/*'
|
|
|
+
|
|
|
+%files -f files
|
|
|
+
|
|
|
+%clean
|
|
|
+ rm -rf $RPM_BUILD_ROOT
|
|
|
+
|