wok-6.x annotate lynis/receipt @ rev 23015
updated libcap, libcap-dev and libcap-pam (2.24 -> 2.33)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 03 11:11:03 2020 +0100 (2020-03-03) |
parents | d464571327ad |
children | 64ddc9ad867b |
rev | line source |
---|---|
pascal@14512 | 1 # SliTaz package receipt. |
pascal@14512 | 2 |
pascal@14512 | 3 PACKAGE="lynis" |
Hans-G?nter@21398 | 4 VERSION="2.7.4" |
pascal@14512 | 5 CATEGORY="security" |
pascal@14512 | 6 SHORT_DESC="Security and system auditing tool." |
pascal@14512 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14997 | 8 LICENSE="GPL3" |
pascal@20414 | 9 WEB_SITE="https://cisofy.com/lynis/" |
Hans-G?nter@21398 | 10 |
pascal@14512 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20414 | 12 WGET_URL="https://downloads.cisofy.com/lynis/$TARBALL" |
pascal@14512 | 13 |
Hans-G?nter@21398 | 14 SUGGESTED="wget procps perl findutils grep rpm4 groff" |
pascal@14512 | 15 DEPENDS="" |
pascal@14512 | 16 BUILD_DEPENDS="" |
pascal@14512 | 17 |
pascal@14512 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14512 | 19 genpkg_rules() |
pascal@14512 | 20 { |
Hans-G?nter@21398 | 21 mkdir -p $fs/usr/share |
Hans-G?nter@21398 | 22 mkdir -p $fs/usr/sbin |
Hans-G?nter@21398 | 23 mkdir -p $install/usr/share/man |
Hans-G?nter@21398 | 24 mkdir -p $install/usr/share/doc |
Hans-G?nter@21398 | 25 |
Hans-G?nter@21398 | 26 cp $src/[A-Z]* $install/usr/share/doc |
Hans-G?nter@21398 | 27 cp $src/lynis.8 $install/usr/share/man |
Hans-G?nter@21398 | 28 cp -a $src $fs/usr/share/lynis |
Hans-G?nter@21398 | 29 |
pascal@20416 | 30 sed -i "s!| grep \"\\^GNU Wget\" | awk '{ print \$3 !\ |
pascal@20416 | 31 2>\\&1 | awk '/^GNU Wget/{ print $3 }/^BusyBox/{ print \$1 \"/\" substr(\$2,2)!\ |
pascal@20416 | 32 " $fs/usr/share/lynis/include/binaries |
pascal@20417 | 33 sed -i '/Generic/a\ |
pascal@20417 | 34 [ -s /etc/slitaz-release ] && LINUX_VERSION="SliTaz GNU/Linux" &&\ |
pascal@20417 | 35 OS_VERSION="$(cat /etc/slitaz-release)" &&\ |
pascal@20417 | 36 OS_FULLNAME="$LINUX_VERSION $OS_VERSION"' \ |
pascal@20417 | 37 $fs/usr/share/lynis/include/osdetection |
pascal@20414 | 38 cat > $fs/usr/sbin/lynis <<EOT |
pascal@20414 | 39 #!/bin/sh |
pascal@20414 | 40 |
pascal@20414 | 41 cd /usr/share/lynis |
pascal@20416 | 42 exec ./lynis "\$@" |
pascal@20414 | 43 EOT |
Hans-G?nter@21398 | 44 |
pascal@20414 | 45 chown -R root.root $fs/usr/s*/lynis |
pascal@20416 | 46 chmod +x $fs/usr/sbin/lynis |
pascal@14512 | 47 } |