aboutsummaryrefslogblamecommitdiffstats
path: root/testing/lynis/APKBUILD
blob: 7e4f3ba2a2e63ab7dd096ac749fc53a363b9dd81 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                   
            







                                           
                                











                                                                                                 
                                                                                    




                                                                                   

                                                                             
 

 
 
                                                                                                                                                                
                                                                                                                                             
# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=lynis
pkgver=3.0.3
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
	"
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 -Dm755 "$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"

 	install -Dm644 "$builddir/extras/bash_completion.d/lynis" \
			"$pkgdir/usr/share/bash-completion/completions/lynis"

}


sha512sums="850f832fd45a2e440973c414f2c98caf3add1666573f60ea70bf36f57dbf3ac1b354632f09271b34f85eba25079e564d758e237dcded743a132da771c5bce151  lynis-3.0.3.tar.gz
1cdaaee433912c2ccdec8ad7c9b88be55fe3f1d68e2fca79cc6e0e10112d465a70cfbe0a049623437f604bfc9793e0d29b709e035cbf710d4d38ba48acc5355f  lynis.cron"