mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
New package: rkhunter-1.4.2
This commit is contained in:
parent
3df87d8016
commit
aa520467ca
1 changed files with 32 additions and 0 deletions
32
srcpkgs/rkhunter/template
Normal file
32
srcpkgs/rkhunter/template
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# Template file for 'rkhunter'
|
||||||
|
pkgname=rkhunter
|
||||||
|
version=1.4.2
|
||||||
|
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="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||||
|
license="GPL-2"
|
||||||
|
homepage="http://rkhunter.sourceforge.net/"
|
||||||
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
|
checksum=789cc84a21faf669da81e648eead2e62654cfbe0b2d927119d8b1e55b22b65c3
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue