diff options
Diffstat (limited to 'system/samhain/samhain.SlackBuild')
-rw-r--r-- | system/samhain/samhain.SlackBuild | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/system/samhain/samhain.SlackBuild b/system/samhain/samhain.SlackBuild index f99e7fa9390a0..6e1481b687f05 100644 --- a/system/samhain/samhain.SlackBuild +++ b/system/samhain/samhain.SlackBuild @@ -22,25 +22,25 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220210 bkw: Modified by SlackBuilds.org: updated to latest version +# because the old version wouldn't build on 15.0. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=samhain -VERSION=${VERSION:-4.2.4} +VERSION=${VERSION:-4.4.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -50,8 +50,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -97,7 +97,7 @@ make install DESTDIR=$PKG mv $PKG/etc/samhainrc $PKG/etc/samhainrc.new # No need for /var/log and /var/run directories here -rmdir $PKG/var/log $PKG/var/run +rm -rf $PKG/var/log $PKG/var/run 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 |