wok view lynis/receipt @ rev 25165

updated python-caldav (0.6.2 -> 0.8.2)
author Hans-G?nter Theisgen
date Fri Jul 01 11:05:59 2022 +0100 (2022-07-01)
parents 7cfc423aaa00
children 7364ffdaaa60
line source
1 # SliTaz package receipt.
3 PACKAGE="lynis"
4 VERSION="3.0.7"
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="findutils grep groff perl procps rpm4 wget"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/CISOfy/lynis/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share
29 mkdir -p $fs/usr/sbin
30 mkdir -p $install/usr/share/man
31 mkdir -p $install/usr/share/doc
33 cp $src/[A-Z]* $install/usr/share/doc
34 cp $src/lynis.8 $install/usr/share/man
35 cp -a $src $fs/usr/share/lynis
37 sed -i "s!| grep \"\\^GNU Wget\" | awk '{ print \$3 !\
38 2>\\&1 | awk '/^GNU Wget/{ print $3 }/^BusyBox/{ print \$1 \"/\" substr(\$2,2)!\
39 " $fs/usr/share/lynis/include/binaries
40 sed -i '/Generic/a\
41 [ -s /etc/slitaz-release ] && LINUX_VERSION="SliTaz GNU/Linux" &&\
42 OS_VERSION="$(cat /etc/slitaz-release)" &&\
43 OS_FULLNAME="$LINUX_VERSION $OS_VERSION"' \
44 $fs/usr/share/lynis/include/osdetection
45 cat > $fs/usr/sbin/lynis <<EOT
46 #!/bin/sh
48 cd /usr/share/lynis
49 exec ./lynis "\$@"
50 EOT
52 chown -R root.root $fs/usr/s*/lynis
53 chmod +x $fs/usr/sbin/lynis
54 }