mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/lynis: new aport
This commit is contained in:
parent
3ca3814a17
commit
084c083ad2
44
testing/lynis/APKBUILD
Normal file
44
testing/lynis/APKBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
|
||||
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
|
||||
pkgname=lynis
|
||||
pkgver=2.7.5
|
||||
pkgrel=0
|
||||
pkgdesc="Security and system auditing tool"
|
||||
url="https://cisofy.com/lynis/"
|
||||
arch="noarch"
|
||||
license="GPL-3.0-or-later"
|
||||
depends="bash"
|
||||
options="!check" # no testsuit
|
||||
subpackages="$pkgname-doc
|
||||
$pkgname-bash-completion:bashcomp:noarch
|
||||
"
|
||||
source="$pkgname-$pkgver.tar.gz::https://cisofy.com/files/lynis-$pkgver.tar.gz
|
||||
$pkgname.cron"
|
||||
builddir=$srcdir/$pkgname
|
||||
|
||||
package() {
|
||||
# stricter default perms - bug 507436
|
||||
mkdir -p -m 0700 "$pkgdir/usr/share/$pkgname" "$pkgdir/etc/$pkgname"
|
||||
cp -r "$builddir/db" "$builddir/include" "$builddir/plugins" "$pkgdir/usr/share/$pkgname"
|
||||
|
||||
install -Dm755 "$builddir/$pkgname" "$pkgdir/usr/sbin/$pkgname"
|
||||
install -Dm600 "$builddir/default.prf" "$pkgdir/etc/$pkgname/default.prf"
|
||||
install -Dm600 "$srcdir/$pkgname.cron" "$pkgdir"/etc/periodic/daily/$pkgname
|
||||
|
||||
# lynis-doc
|
||||
install -Dm644 CHANGELOG.md FAQ README -t "$pkgdir/usr/share/doc/$pkgname/"
|
||||
install -Dm644 "$builddir/lynis.8" "$pkgdir/usr/share/man/man8/lynis.8"
|
||||
|
||||
}
|
||||
|
||||
bashcomp() {
|
||||
pkgdesc="Bash completions for $pkgname"
|
||||
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
||||
|
||||
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/
|
||||
install -Dm644 "$builddir/extras/bash_completion.d/lynis" \
|
||||
"$subpkgdir/usr/share/bash-completion/completions/lynis"
|
||||
}
|
||||
|
||||
sha512sums="0ec814cb65252e3e8a44013ad0902e188a4825c521d47280586c0dd9924dfb7b79cce9797055ab7b7be59dacc111607d114175e0a793844227eadda76f68980b lynis-2.7.5.tar.gz
|
||||
1cdaaee433912c2ccdec8ad7c9b88be55fe3f1d68e2fca79cc6e0e10112d465a70cfbe0a049623437f604bfc9793e0d29b709e035cbf710d4d38ba48acc5355f lynis.cron"
|
||||
3
testing/lynis/lynis.cron
Normal file
3
testing/lynis/lynis.cron
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/sbin/lynis audit system --auditor "automated" --cronjob
|
||||
Loading…
x
Reference in New Issue
Block a user