wok view lynis/receipt @ rev 23514
updated python-nose (0.11.3 -> 1.3.7)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 06 10:58:44 2020 +0100 (2020-04-06) |
parents | fdfad9b9a4ea |
children | 4ad45787855e |
line source
1 # SliTaz package receipt.
3 PACKAGE="lynis"
4 VERSION="2.7.5"
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://downloads.cisofy.com/lynis/$TARBALL"
14 SUGGESTED="wget procps perl findutils grep rpm4 groff"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/usr/share
22 mkdir -p $fs/usr/sbin
23 mkdir -p $install/usr/share/man
24 mkdir -p $install/usr/share/doc
26 cp $src/[A-Z]* $install/usr/share/doc
27 cp $src/lynis.8 $install/usr/share/man
28 cp -a $src $fs/usr/share/lynis
30 sed -i "s!| grep \"\\^GNU Wget\" | awk '{ print \$3 !\
31 2>\\&1 | awk '/^GNU Wget/{ print $3 }/^BusyBox/{ print \$1 \"/\" substr(\$2,2)!\
32 " $fs/usr/share/lynis/include/binaries
33 sed -i '/Generic/a\
34 [ -s /etc/slitaz-release ] && LINUX_VERSION="SliTaz GNU/Linux" &&\
35 OS_VERSION="$(cat /etc/slitaz-release)" &&\
36 OS_FULLNAME="$LINUX_VERSION $OS_VERSION"' \
37 $fs/usr/share/lynis/include/osdetection
38 cat > $fs/usr/sbin/lynis <<EOT
39 #!/bin/sh
41 cd /usr/share/lynis
42 exec ./lynis "\$@"
43 EOT
45 chown -R root.root $fs/usr/s*/lynis
46 chmod +x $fs/usr/sbin/lynis
47 }