summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/lynis/PKGBUILD22
1 files changed, 16 insertions, 6 deletions
diff --git a/pcr/lynis/PKGBUILD b/pcr/lynis/PKGBUILD
index c6b6cca03..9221aae5d 100644
--- a/pcr/lynis/PKGBUILD
+++ b/pcr/lynis/PKGBUILD
@@ -1,10 +1,11 @@
-# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net>
# Contributor: Sébastien Luttringer <seblu@aur.archlinux.org>
pkgname=lynis
-pkgver=1.6.2
-pkgrel=2
+_pkgname=Lynis
+pkgver=1.6.4
+pkgrel=1
pkgdesc='Security and system auditing tool to harden Unix/Linux systems'
url='http://cisofy.com/lynis/'
license=('GPL3')
@@ -14,10 +15,15 @@ depends=('sh')
optdepends=('net-tools: networking tests'
'bash-completion: completion for bash')
install=lynis.install
-source=(http://cisofy.com/files/${pkgname}-${pkgver}.tar.gz)
+source=(https://github.com/CISOfy/${_pkgname}/archive/${pkgver}.tar.gz)
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ sed -e 's|/path/to/lynis|/usr/bin/lynis|g' -i extras/systemd/lynis.service
+}
package() {
- cd ${pkgname}
+ cd ${_pkgname}-${pkgver}
# profile
install -Dm 644 default.prf "${pkgdir}/etc/${pkgname}/default.prf"
@@ -37,7 +43,11 @@ package() {
install -Dm 644 "${pkgname}.8" "${pkgdir}/usr/share/man/man8/${pkgname}.8"
# completion
- install -Dm 644 dev/bash_completion.d/${pkgname} "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+ install -Dm 644 extras/bash_completion.d/${pkgname} "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+
+ # systemd
+ install -d "${pkgdir}/usr/lib/systemd/system/"
+ install -m 644 extras/systemd/{lynis.service,lynis.timer} "${pkgdir}/usr/lib/systemd/system/"
}
# vim:set ts=2 sw=2 ft=sh et: