diff options
Diffstat (limited to 'network/ipvsadm/ipvsadm.SlackBuild')
-rw-r--r-- | network/ipvsadm/ipvsadm.SlackBuild | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/network/ipvsadm/ipvsadm.SlackBuild b/network/ipvsadm/ipvsadm.SlackBuild index 6dfcb5dbd4bc3..859dc91841356 100644 --- a/network/ipvsadm/ipvsadm.SlackBuild +++ b/network/ipvsadm/ipvsadm.SlackBuild @@ -1,12 +1,12 @@ #!/bin/sh -# Slackware build script for source-highlight -# Written by luoyi (luoyi.ly@gmail.com) - -# Modified by the slackbuilds.org project +# Slackware build script for ipvsadm +# 2010 - Written by luoyi (luoyi.ly@gmail.com) +# 2010-2016 - Modified by the slackbuilds.org project +# 2020 - Modified by Marek Wodzinski <majek@w7i.pl> PRGNAM=ipvsadm -VERSION=${VERSION:-1.25} +VERSION=${VERSION:-1.31} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -43,7 +43,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -52,9 +52,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# fix not detecting popt by default -patch -p1 -i $CWD/ipvsadm-1.25-popt.patch - # use SLKCFLAGS sed -i "s/-Wall/-Wall $SLKCFLAGS/" Makefile sed -i "s/-Wall/-Wall $SLKCFLAGS/" libipvs/Makefile @@ -72,8 +69,14 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + MAINTAINERS README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/etc/rc.d/init.d/ipvsadm $PKG/etc/rc.d/rc.ipvsadm +rmdir $PKG/etc/rc.d/init.d + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |