diff options
Diffstat (limited to 'network/xinetd/xinetd.SlackBuild')
-rw-r--r-- | network/xinetd/xinetd.SlackBuild | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/network/xinetd/xinetd.SlackBuild b/network/xinetd/xinetd.SlackBuild index 4d447a4de4..cd3713d13a 100644 --- a/network/xinetd/xinetd.SlackBuild +++ b/network/xinetd/xinetd.SlackBuild @@ -4,7 +4,7 @@ # Copyright 2012 Chris Abela, Malta # Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org -# Copyright 2017 Aaditya Bagga <aaditya_gnulinux@zoho.com> +# Copyright 2017-2019 Aaditya Bagga <aaditya_gnulinux@zoho.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,13 +25,10 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xinetd -VERSION=${VERSION:-2.3.15} -BUILD=${BUILD:-3} +VERSION=${VERSION:-2.3.15.4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -DL_PRGNAM=$PRGNAM-$PRGNAM -DL_VERSION=${DL_VERSION:-2-3-15} - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -64,9 +61,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $DL_PRGNAM-$DL_VERSION -tar xvf $CWD/$PRGNAM-$DL_VERSION.tar.gz || tar xvf $CWD/$DL_PRGNAM-$DL_VERSION.tar.gz -cd $DL_PRGNAM-$DL_VERSION +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -75,8 +72,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Add DESTDIR support -patch -p1 < $CWD/xinetd-add_destdir.patch +./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -93,18 +89,17 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -# Install config files -mkdir -p $PKG/etc/xinetd.d/ -cat contrib/xinetd.conf > $PKG/etc/xinetd.conf.new -for file in contrib/xinetd.d/* ; do - cat $file > $PKG/etc/xinetd.d/$(basename $file).new ; -done - # Install the Slackware init script mkdir -p $PKG/etc/rc.d cat $CWD/rc.xinetd > $PKG/etc/rc.d/rc.xinetd.new chmod 0755 $PKG/etc/rc.d/rc.xinetd.new +# Backup config files +mv "$PKG/etc/xinetd.conf" "$PKG/etc/xinetd.conf.new" +for file in "$PKG"/etc/xinetd.d/*; do + mv "${file}" "${file}.new" +done + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -113,7 +108,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUDIT CHANGELOG COPYRIGHT INSTALL README TODO contrib \ + CHANGELOG COPYRIGHT README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -123,4 +118,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} - |