wok-current annotate lynis/receipt @ rev 23288

updated perl-apache-dbi (1.07 -> 1.12)
author Hans-G?nter Theisgen
date Sun Mar 29 15:03:00 2020 +0100 (2020-03-29)
parents fdfad9b9a4ea
children 4ad45787855e
rev   line source
pascal@14512 1 # SliTaz package receipt.
pascal@14512 2
pascal@14512 3 PACKAGE="lynis"
Hans-G?nter@23154 4 VERSION="2.7.5"
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
Hans-G?nter@23154 45 chown -R root.root $fs/usr/s*/lynis
Hans-G?nter@23154 46 chmod +x $fs/usr/sbin/lynis
pascal@14512 47 }