wok-6.x annotate lynis/receipt @ rev 20859
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 22 10:45:05 2019 +0100 (2019-02-22) |
parents | 24d5b43beece |
children | fdfad9b9a4ea |
rev | line source |
---|---|
pascal@14512 | 1 # SliTaz package receipt. |
pascal@14512 | 2 |
pascal@14512 | 3 PACKAGE="lynis" |
pascal@20414 | 4 VERSION="2.6.6" |
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/" |
pascal@14512 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20414 | 11 WGET_URL="https://downloads.cisofy.com/lynis/$TARBALL" |
pascal@14512 | 12 |
pascal@14512 | 13 DEPENDS="" |
pascal@14512 | 14 BUILD_DEPENDS="" |
pascal@20417 | 15 SUGGESTED="wget procps perl findutils grep rpm4 groff" |
pascal@14512 | 16 |
pascal@14512 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14512 | 18 genpkg_rules() |
pascal@14512 | 19 { |
pascal@20414 | 20 mkdir -p $fs/usr/share $fs/usr/sbin |
pascal@20414 | 21 mkdir -p $install/usr/share/man $install/usr/share/doc |
pascal@20414 | 22 cp $src/[A-Z]* $install/usr/share/doc |
pascal@20414 | 23 cp $src/lynis.8 $install/usr/share/man |
erkan@18726 | 24 cp -a $src $fs/usr/share/lynis |
pascal@20416 | 25 sed -i "s!| grep \"\\^GNU Wget\" | awk '{ print \$3 !\ |
pascal@20416 | 26 2>\\&1 | awk '/^GNU Wget/{ print $3 }/^BusyBox/{ print \$1 \"/\" substr(\$2,2)!\ |
pascal@20416 | 27 " $fs/usr/share/lynis/include/binaries |
pascal@20417 | 28 sed -i '/Generic/a\ |
pascal@20417 | 29 [ -s /etc/slitaz-release ] && LINUX_VERSION="SliTaz GNU/Linux" &&\ |
pascal@20417 | 30 OS_VERSION="$(cat /etc/slitaz-release)" &&\ |
pascal@20417 | 31 OS_FULLNAME="$LINUX_VERSION $OS_VERSION"' \ |
pascal@20417 | 32 $fs/usr/share/lynis/include/osdetection |
pascal@20414 | 33 cat > $fs/usr/sbin/lynis <<EOT |
pascal@20414 | 34 #!/bin/sh |
pascal@20414 | 35 |
pascal@20414 | 36 cd /usr/share/lynis |
pascal@20416 | 37 exec ./lynis "\$@" |
pascal@20414 | 38 EOT |
pascal@20414 | 39 chown -R root.root $fs/usr/s*/lynis |
pascal@20416 | 40 chmod +x $fs/usr/sbin/lynis |
pascal@14512 | 41 } |