summaryrefslogtreecommitdiff
path: root/system/rkhunter/rkhunter.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/rkhunter/rkhunter.SlackBuild')
-rw-r--r--system/rkhunter/rkhunter.SlackBuild26
1 files changed, 10 insertions, 16 deletions
diff --git a/system/rkhunter/rkhunter.SlackBuild b/system/rkhunter/rkhunter.SlackBuild
index cb8bd46e9b..b29dc4820e 100644
--- a/system/rkhunter/rkhunter.SlackBuild
+++ b/system/rkhunter/rkhunter.SlackBuild
@@ -5,16 +5,14 @@
# Written by Michael Johnson (youngmug@animeneko.net)
PRGNAM=rkhunter
-VERSION=${VERSION:-1.3.4}
+VERSION=${VERSION:-1.3.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -53,28 +51,24 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Patch installer.sh to fix paths for Slackware
-patch -p1 < $CWD/install_path_fix.diff
-
# Set the installer to build in our package directory
# Yes, this isn't an RPM, but it was the easiest way to get pathing working correctly
-RPM_BUILD_ROOT=$PKG \
+TGZ_BUILD_ROOT=$PKG \
./installer.sh \
- --layout RPM \
+ --layout TGZ \
--install
-# Compress man pages
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
-
-# Copy SlackBuild script to documentation directory
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Put docs and manual pages in the correct place
+mv $PKG/usr/share/* $PKG/usr
+rmdir $PKG/usr/share
# Don't clobber existing config file.
mv $PKG/etc/rkhunter.conf $PKG/etc/rkhunter.conf.new
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+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