summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/lynis/PKGBUILD13
-rw-r--r--pcr/lynis/lynis.install10
2 files changed, 7 insertions, 16 deletions
diff --git a/pcr/lynis/PKGBUILD b/pcr/lynis/PKGBUILD
index 9221aae5d..ae1445106 100644
--- a/pcr/lynis/PKGBUILD
+++ b/pcr/lynis/PKGBUILD
@@ -3,8 +3,7 @@
# Contributor: Sébastien Luttringer <seblu@aur.archlinux.org>
pkgname=lynis
-_pkgname=Lynis
-pkgver=1.6.4
+pkgver=2.1.0
pkgrel=1
pkgdesc='Security and system auditing tool to harden Unix/Linux systems'
url='http://cisofy.com/lynis/'
@@ -14,16 +13,18 @@ backup=('etc/lynis/default.prf')
depends=('sh')
optdepends=('net-tools: networking tests'
'bash-completion: completion for bash')
-install=lynis.install
-source=(https://github.com/CISOfy/${_pkgname}/archive/${pkgver}.tar.gz)
+source=(https://cisofy.com/files/lynis-2.1.0-88394c1affb9e23bd7390098947b3fd4b04e35e8.tar.gz{,.asc})
+sha256sums=('16ed596c8c283b8e4c635ada25ceb042371384ae09b3238a658ca60801a73c24'
+ 'SKIP')
+validpgpkeys=('73AC9FC55848E977024D1A61429A566FD5B79251')
prepare() {
- cd ${_pkgname}-${pkgver}
+ cd ${pkgname}
sed -e 's|/path/to/lynis|/usr/bin/lynis|g' -i extras/systemd/lynis.service
}
package() {
- cd ${_pkgname}-${pkgver}
+ cd ${pkgname}
# profile
install -Dm 644 default.prf "${pkgdir}/etc/${pkgname}/default.prf"
diff --git a/pcr/lynis/lynis.install b/pcr/lynis/lynis.install
deleted file mode 100644
index 1b104f01e..000000000
--- a/pcr/lynis/lynis.install
+++ /dev/null
@@ -1,10 +0,0 @@
-pre_upgrade() {
- # fix local old umask
- chmod o+rx,g+rx /usr/share/lynis/{include,db,plugins}
-}
-
-post_upgrade() {
- chmod o+r,g+r /usr/share/lynis/include/*
- chmod o+r,g+r /usr/share/lynis/db/*
- chmod o+r,g+r /usr/share/lynis/plugins/*
-}