void-packages/srcpkgs/rkhunter/template
2018-02-20 10:20:20 +01:00

32 lines
909 B
Bash

# Template file for 'rkhunter'
pkgname=rkhunter
version=1.4.6
revision=1
noarch=yes
conf_files="/etc/rkhunter.conf"
make_dirs="/var/lib/rkhunter/tmp 0750 root root"
makedepends="curl"
depends="bash perl curl"
short_desc="RootKit Hunter"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="http://rkhunter.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=9c0f310583ff0dd8168010acd45c7d2e3a37e176300ac642269bce3d759ebda0
do_install() {
DESTDIR="${DESTDIR/\/\//\/}" # must not contain //
sed -i 's/lib64/lib/g' installer.sh
vmkdir usr
./installer.sh --layout custom "${DESTDIR}/usr" \
--striproot "$DESTDIR" --install
mv "$DESTDIR/usr/etc" "$DESTDIR"
mv "$DESTDIR/usr/var" "$DESTDIR"
sed -i -e 's,/usr/etc,/etc,g' -e 's,/usr/var,/var,g' \
"$DESTDIR/usr/bin/rkhunter" "$DESTDIR"/etc/*
rm -r "$DESTDIR/var/lib/rkhunter/tmp"
}