diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-12-24 19:06:06 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-12-24 19:06:06 -0200 |
commit | 76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc (patch) | |
tree | 922d0e5c8d30a238f8ebbff6ceed6de68134f073 /pcr/lynis/PKGBUILD | |
parent | 9935897983aa8b3b6b3e59951bcd19663842d2dc (diff) | |
parent | a2fdccac85fa2126556b6dd0a052a9ddb9cb93ee (diff) | |
download | abslibre-76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc.tar.gz abslibre-76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc.tar.bz2 abslibre-76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc.zip |
Merge branch 'master' of ssh://projects.parabola.nu:1863/~git/abslibre/abslibre
Diffstat (limited to 'pcr/lynis/PKGBUILD')
-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: |