wok view lynis/receipt @ rev 21207

Up pure-ftpd (1.0.48)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 08 19:08:56 2019 +0200 (2019-04-08)
parents 24d5b43beece
children fdfad9b9a4ea
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 grep rpm4 groff"
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 sed -i '/Generic/a\
29 [ -s /etc/slitaz-release ] && LINUX_VERSION="SliTaz GNU/Linux" &&\
30 OS_VERSION="$(cat /etc/slitaz-release)" &&\
31 OS_FULLNAME="$LINUX_VERSION $OS_VERSION"' \
32 $fs/usr/share/lynis/include/osdetection
33 cat > $fs/usr/sbin/lynis <<EOT
34 #!/bin/sh
36 cd /usr/share/lynis
37 exec ./lynis "\$@"
38 EOT
39 chown -R root.root $fs/usr/s*/lynis
40 chmod +x $fs/usr/sbin/lynis
41 }