From a1cbb9d55171f9913d5c1ebdb957075122937b1f Mon Sep 17 00:00:00 2001 From: Marek Wodzinski Date: Thu, 23 Jan 2020 21:52:18 +0100 Subject: network/ipvsadm: Updated for version 1.31. Signed-off-by: Willy Sudiarto Raharjo --- network/ipvsadm/ipvsadm.SlackBuild | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'network/ipvsadm/ipvsadm.SlackBuild') 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 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 -- cgit v1.2.3