wok-current view lynis/receipt @ rev 20416
xl2tpd: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 02 22:31:30 2018 +0200 (2018-08-02) |
parents | a8bc6ffe9dde |
children | d464571327ad |
line source
1 # SliTaz package receipt.
3 PACKAGE="lynis"
4 VERSION="2.6.6"
5 CATEGORY="security"
6 SHORT_DESC="Security and system auditing tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://cisofy.com/lynis/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://downloads.cisofy.com/lynis/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
15 SUGGESTED="wget procps perl findutils rpm4"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 mkdir -p $fs/usr/share $fs/usr/sbin
21 mkdir -p $install/usr/share/man $install/usr/share/doc
22 cp $src/[A-Z]* $install/usr/share/doc
23 cp $src/lynis.8 $install/usr/share/man
24 cp -a $src $fs/usr/share/lynis
25 sed -i "s!| grep \"\\^GNU Wget\" | awk '{ print \$3 !\
26 2>\\&1 | awk '/^GNU Wget/{ print $3 }/^BusyBox/{ print \$1 \"/\" substr(\$2,2)!\
27 " $fs/usr/share/lynis/include/binaries
28 cat > $fs/usr/sbin/lynis <<EOT
29 #!/bin/sh
31 cd /usr/share/lynis
32 exec ./lynis "\$@"
33 EOT
34 chown -R root.root $fs/usr/s*/lynis
35 chmod +x $fs/usr/sbin/lynis
36 }