wok-next annotate libwrap/receipt @ rev 21087

Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 28 05:11:49 2018 +0200 (2018-12-28)
parents ca0d3fe02f15
children
rev   line source
pascal@20181 1 # SliTaz package receipt v2.
erjo@286 2
erjo@286 3 PACKAGE="libwrap"
al@20878 4 VERSION="7.6.24"
erjo@286 5 CATEGORY="system-tools"
al@20878 6 SHORT_DESC="Monitors and Controls incoming TCP connections"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15600 8 LICENSE="BSD"
erjo@286 9 WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
al@20878 10
al@20878 11 TARBALL="tcp_wrappers_${VERSION%.*}.tar.gz"
erjo@286 12 WGET_URL="ftp://ftp.porcupine.org/pub/security/$TARBALL"
erjo@286 13
al@20878 14 TARBALL2="tcp-wrappers_${VERSION%.*}.q-${VERSION##*.}.debian.tar.xz"
al@20878 15 WGET_URL2="http://http.debian.net/debian/pool/main/t/tcp-wrappers/$TARBALL2"
al@20878 16
al@21020 17 SPLIT="$PACKAGE-dev tcpd"
pascal@20181 18
al@20878 19 compile_rules() {
al@20878 20 [ -e "$SRC/$TARBALL2" ] || wget -P $SRC $WGET_URL2
al@20878 21 tar -xf $SRC/$TARBALL2
al@20878 22
al@20878 23 for patch in $(cat debian/patches/series); do
al@20878 24 echo "Applying patch $patch"
al@20878 25 patch -Np1 -i debian/patches/$patch | sed 's|^| |'
al@20878 26 done
al@20878 27 for patch in tcp-wrappers-headers.patch tcp-wrappers-redhat-bug11881.patch \
al@20878 28 slitaz.patch; do
al@20878 29 echo "Applying patch $patch"
al@20878 30 patch -Np1 -i $stuff/$patch | sed 's|^| |'
al@20878 31 done
al@20878 32 echo
al@20878 33
al@20878 34 make \
al@20878 35 COPTS="$CFLAGS" \
al@20878 36 LDOPTS="$LDFLAGS" \
al@20878 37 REAL_DAEMON_DIR='/usr/bin' \
al@20878 38 STYLE='-DPROCESS_OPTIONS' \
al@20878 39 linux || return 1
al@20878 40
al@20878 41 # === install ===
al@20878 42 # dirs
al@20878 43 install -d $install/etc/ $install/usr/include/ $install/usr/bin/ $install/usr/lib/
al@20878 44 # bins
al@20878 45 install -m755 safe_finger tcpd tcpdchk tcpdmatch try-from -t $install/usr/bin/
al@20878 46 # libs
al@20878 47 install -m755 shared/libwrap.so.0.${VERSION%.*} -t $install/usr/lib/
al@20878 48 ln -s libwrap.so.0.${VERSION%.*} $install/usr/lib/libwrap.so.0
al@20878 49 ln -s libwrap.so.0 $install/usr/lib/libwrap.so
al@20878 50 # headers
al@20878 51 install -m644 tcpd.h -t $install/usr/include/
al@20878 52 # configs
al@20878 53 install -m644 $stuff/hosts.* -t $install/etc/
al@20878 54 # mans & docs
al@20878 55 cook_pick_manpages *.3 *.5 *.8
al@20878 56 cook_pick_docs README
erjo@286 57 }
erjo@286 58
al@20878 59 genpkg_rules() {
pascal@20181 60 case $PACKAGE in
al@20878 61 libwrap)
al@20878 62 copy *.so*
al@20878 63 ;;
al@20878 64 *-dev)
al@20878 65 copy @dev
al@20878 66 ;;
al@20878 67 tcpd)
al@20878 68 copy @std @rm
al@20878 69 CAT="development|network encapsulation files"
al@20878 70 CONFIG_FILES="/etc/hosts.allow /etc/hosts.deny"
al@20878 71 DEPENDS="libwrap"
al@20878 72 ;;
pascal@20181 73 esac
erjo@286 74 }