diff options
author | Michael Johnson <youngmug@animeneko.net> | 2010-07-02 19:17:35 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-07-03 02:31:43 -0500 |
commit | a2bc7e58e4796a6105bea0b5fba35c247cb25b6b (patch) | |
tree | 74fbb6de7d5b1536d08fd3922f4b1964ac5b5eab /system/rkhunter/rkhunter.SlackBuild | |
parent | fd8389b8b492d5378092f09e9e880732ac466440 (diff) | |
download | slackbuilds-a2bc7e58e4796a6105bea0b5fba35c247cb25b6b.tar.gz |
system/rkhunter: Updated for version 1.3.6.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/rkhunter/rkhunter.SlackBuild')
-rw-r--r-- | system/rkhunter/rkhunter.SlackBuild | 26 |
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 |