aboutsummaryrefslogtreecommitdiff
path: root/network/valknut/valknut.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/valknut/valknut.SlackBuild')
-rw-r--r--network/valknut/valknut.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/network/valknut/valknut.SlackBuild b/network/valknut/valknut.SlackBuild
index 5f586c448e770..e9a39d993e02c 100644
--- a/network/valknut/valknut.SlackBuild
+++ b/network/valknut/valknut.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=valknut
VERSION=${VERSION:-0.4.9}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,7 +69,11 @@ 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 {} \;
-patch -p0 < "$CWD"/valknut-0.4.9.patch valknut/main.cpp
+# Main patch
+patch -p0 < "$CWD"/main.patch valknut/main.cpp
+
+# Dcoptions (myip) patch
+patch -p0 < "$CWD"/dcoptions.patch valknut/dcoptions.cpp
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -89,14 +93,14 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING* ChangeLog INSTALL NEWS README TODO "$PKG"/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING* ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Remove misplaced file - this one is already available in usr/doc/$PRGNAM-$VERSION
rm $PKG/usr/share/valknut/COPYING
cd $PKG