diff options
author | Aurelien Desbrieres <aurelien@hackers.camp> | 2014-12-24 09:17:04 +0100 |
---|---|---|
committer | Aurelien Desbrieres <aurelien@hackers.camp> | 2014-12-24 09:17:04 +0100 |
commit | 68067f895ea2d4eef4e15eb7b1ceb918bf8eb6a3 (patch) | |
tree | af39d43c6e2d11830aa9e7d7419f4be6e6d25e70 | |
parent | c91c5e5ebf2206fc48072184652671fc52b7c828 (diff) | |
download | abslibre-68067f895ea2d4eef4e15eb7b1ceb918bf8eb6a3.tar.gz abslibre-68067f895ea2d4eef4e15eb7b1ceb918bf8eb6a3.tar.bz2 abslibre-68067f895ea2d4eef4e15eb7b1ceb918bf8eb6a3.zip |
lynis updated
-rw-r--r-- | pcr/lynis/PKGBUILD | 22 |
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: |