blob: 45e1564f5b339b68d5dca47644803080753e05f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net>
pkgname=lynis-git
_pkgname=lynis
pkgver=2.6.4.2108.5300475
pkgrel=1
pkgdesc='Security and system auditing tool to harden Unix/Linux systems'
url='https://cisofy.com/lynis/'
license=('GPL3')
arch=('any')
backup=('etc/lynis/default.prf')
depends=('sh' 'awk')
optdepends=('net-tools: networking tests'
'bind-tools: nameserver tests'
'iptables: firewall tests'
'bash-completion: completion for bash')
makedepends=('git')
provides=('lynis')
conflicts=('lynis')
source=(${pkgname}::git+https://github.com/CISOfy/${_pkgname})
sha512sums=('SKIP')
validpgpkeys=('73AC9FC55848E977024D1A61429A566FD5B79251') # CISOfy (Software Signing Key) <security@cisofy.com>
pkgver() {
cd ${pkgname}
printf "%s.%s.%s" "$(git describe --tags --abbrev=0)" \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd ${pkgname}
sed -e 's|/path/to/lynis|/usr/bin/lynis|g' -i extras/systemd/lynis.service
}
package() {
cd ${pkgname}
# binary
install -Dm 755 lynis "${pkgdir}/usr/bin/${_pkgname}"
# profile
install -Dm 644 default.prf "${pkgdir}/etc/${_pkgname}/default.prf"
# plugins, include, db
install -d "${pkgdir}/usr/share/${_pkgname}"
cp -ra db include plugins "${pkgdir}/usr/share/${_pkgname}"
# doc files
install -Dm 644 README INSTALL CHANGELOG.md FAQ \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 ${_pkgname}.8 -t "${pkgdir}/usr/share/man/man8"
# completion
install -Dm 644 extras/bash_completion.d/${_pkgname} \
-t "${pkgdir}/usr/share/bash-completion/completions"
# systemd
install -Dm 644 extras/systemd/{lynis.service,lynis.timer} \
-t "${pkgdir}/usr/lib/systemd/system"
}
# vim:set ts=2 sw=2 ft=sh et:
|