Commits

Anonymous committed d5ea4c5

tcp_wrappers include libwrap.so in built package

Comments (0)

Files changed (1)

var/vabs/tcp_wrappers/src/tcp_wrappers.SlackBuild

 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"1"}
+BUILDNUM=${BUILDNUM:-"2"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 ARCH=${ARCH:-"$(uname -m)"}
 #-----------------------------------------------------------------------
 
 echo "Configuring source..."
+
+install -dv $PKG/lib${LIBDIRSUFFIX}
+install -dv $PKG/usr/include
+install -dv $PKG/usr/lib${LIBDIRSUFFIX}
+install -dv $PKG/usr/sbin
+install -dv $PKG/usr/share/man/man{3,5,8}
+
 sh extract-and-patch.sh
 cd tcp_wrappers_$VERSION || exit 1
-make REAL_DAEMON_DIR=/usr/sbin linux
+make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux || exit 1
 strip tcpd safe_finger tcpdchk tcpdmatch try-from
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+
 cat libwrap.a > $PKG/usr/lib${LIBDIRSUFFIX}/libwrap.a
-mkdir -p $PKG/usr/include
+cat libwrap.so > $PKG/usr/lib${LIBDIRSUFFIX}/libwrap.so
 cat tcpd.h > $PKG/usr/include/tcpd.h
-mkdir -p $PKG/usr/sbin
 cat safe_finger > $PKG/usr/sbin/safe_finger
 cat tcpd > $PKG/usr/sbin/tcpd
 cat tcpdchk > $PKG/usr/sbin/tcpdchk
 cat tcpdmatch > $PKG/usr/sbin/tcpdmatch
 cat try-from > $PKG/usr/sbin/try-from
 chmod 755 $PKG/usr/sbin/*
-mkdir -p $PKG/usr/man/man{3,5,8}
 cat hosts_access.3 | gzip -9c > $PKG/usr/man/man3/hosts_access.3.gz
 cat hosts_access.5 | gzip -9c > $PKG/usr/man/man5/hosts_access.5.gz
 cat hosts_options.5 | gzip -9c > $PKG/usr/man/man5/hosts_options.5.gz