#!/bin/bash ## src2pkg script for: tcp_wrappers ## Auto-generated by src2pkg-2.0 ## src2pkg - Copyright 2005-2009 Gilbert Ashley # adapted from AlienBob's tcp_wrappers.SlackBuild for Slackware64 # See the end of this file for the Copyright and License information SOURCE_NAME='tcp-wrappers_7.6.q.orig.tar.gz' NAME='tcp-wrappers' # Use ALT_NAME to override guessed value ALT_VERSION='7.6q' # Use ALT_VERSION to override guessed value # ARCH='' # BUILD='1' # PRE_FIX='usr' # Any extra options go here: # EXTRA_CONFIGS="" PATCHLIST='tcp-wrappers-patches/00_man_quoting.diff tcp-wrappers-patches/00_man_typos.diff tcp-wrappers-patches/01_man_portability.diff tcp-wrappers-patches/05_wildcard_matching.diff tcp-wrappers-patches/06_fix_gethostbyname.diff tcp-wrappers-patches/10_usagi-ipv6.diff tcp-wrappers-patches/11_tcpd_blacklist.diff tcp-wrappers-patches/11_usagi_fix.diff tcp-wrappers-patches/12_makefile_config.diff tcp-wrappers-patches/13_shlib_weaksym.diff tcp-wrappers-patches/14_cidr_support.diff tcp-wrappers-patches/15_match_clarify.diff tcp-wrappers-patches/16_aclexec.diff tcp-wrappers-patches/17_expand_remote_port.diff tcp-wrappers-patches/18_catch-sigchld.diff tcp-wrappers-patches/19_fix_warnings.diff tcp-wrappers-patches/20_have_strerror.diff tcp-wrappers-patches/21_man_fromhost.diff tcp-wrappers-patches/22_more_man_pages.diff tcp-wrappers-patches/23_match_port.diff tcp-wrappers-patches/24_restore_sigalarm.diff tcp-wrappers-patches/25_rfc931.diff tcp-wrappers-patches/26_safe_finger.diff tcp-wrappers-patches/27_sig_fix.diff tcp-wrappers-patches/28_siglongjmp.diff tcp-wrappers-patches/29_size_t.diff tcp-wrappers-patches/30_tcpdchk_libwrapped.diff tcp-wrappers-patches/31_fix_static.diff tcp-wrappers-patches/32_fix_parsing_long_lines.diff' MAKE_COMMAND='make REAL_DAEMON_DIR=/usr/sbin linux' # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source # compile_source # If used, the 'build' function replaces these 3 # fake_install # mkdir -p $PKG_DIR/usr/lib${LIBDIRSUFFIX} cat libwrap.a > $PKG_DIR/usr/lib${LIBDIRSUFFIX}/libwrap.a mkdir -p $PKG_DIR/usr/include cat tcpd.h > $PKG_DIR/usr/include/tcpd.h mkdir -p $PKG_DIR/usr/sbin cat safe_finger > $PKG_DIR/usr/sbin/safe_finger cat tcpd > $PKG_DIR/usr/sbin/tcpd cat tcpdchk > $PKG_DIR/usr/sbin/tcpdchk cat tcpdmatch > $PKG_DIR/usr/sbin/tcpdmatch cat try-from > $PKG_DIR/usr/sbin/try-from mkdir -p $MAN_DIR/man{3,5,8} cp -a hosts_access.3 $MAN_DIR/man3/hosts_access.3 cp -a hosts_access.5 $MAN_DIR/man5/hosts_access.5 cp -a hosts_options.5 $MAN_DIR/man5/hosts_options.5 cp -a tcpd.8 $MAN_DIR/man8/tcpd.8 cp -a tcpdchk.8 $MAN_DIR/man8/tcpdchk.8 cp -a tcpdmatch.8 $MAN_DIR/man8/tcpdmatch.8 fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process # Original Copyright and License: # Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 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 AUTHOR 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.