[arch-commits] Commit in lynis/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jul 7 19:12:00 UTC 2020
Date: Tuesday, July 7, 2020 @ 19:12:00
Author: foutrelis
Revision: 660136
archrelease: copy trunk to community-staging-any
Added:
lynis/repos/community-staging-any/
lynis/repos/community-staging-any/PKGBUILD
(from rev 660135, lynis/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: lynis/repos/community-staging-any/PKGBUILD (from rev 660135, lynis/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 19:12:00 UTC (rev 660136)
@@ -0,0 +1,50 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sébastien Luttringer <seblu at aur.archlinux.org>
+
+pkgname=lynis
+pkgver=2.7.5
+pkgrel=2
+pkgdesc='Security and system auditing tool to harden Unix/Linux systems'
+url='https://cisofy.com/lynis/'
+arch=('any')
+license=('GPL3')
+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')
+source=(https://downloads.cisofy.com/lynis/lynis-${pkgver}.tar.gz{,.asc})
+sha512sums=('0ec814cb65252e3e8a44013ad0902e188a4825c521d47280586c0dd9924dfb7b79cce9797055ab7b7be59dacc111607d114175e0a793844227eadda76f68980b'
+ 'SKIP')
+validpgpkeys=('73AC9FC55848E977024D1A61429A566FD5B79251') # CISOfy (Software Signing Key) <security at cisofy.com>
+
+prepare() {
+ cd ${pkgname}
+ sed -e 's|/path/to/lynis|/usr/bin/lynis|g' -i extras/systemd/lynis.service
+}
+
+package() {
+ cd ${pkgname}
+
+ # application
+ install -Dm 755 lynis -t "${pkgdir}/usr/bin"
+ install -Dm 644 default.prf -t "${pkgdir}/etc/${pkgname}"
+ 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: ts=2 sw=2 et:
More information about the arch-commits
mailing list