wok view lynis/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (8 months ago) |
parents | dec12284b033 |
children | 120dd6158093 |
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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }