wok-6.x annotate chkrootkit/receipt @ rev 25547

Up utftpd (0.2.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 23 12:22:34 2023 +0000 (19 months ago)
parents 41a539cfe5f8
children
rev   line source
pascal@1343 1 # SliTaz package receipt.
pascal@1343 2
pascal@1343 3 PACKAGE="chkrootkit"
pascal@25441 4 VERSION="0.55"
pascal@18139 5 CATEGORY="security"
pascal@1343 6 SHORT_DESC="Locally checks for signs of a rootkit."
pascal@1343 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="BSD"
pascal@5787 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25547 10 WEB_SITE="https://www.chkrootkit.org/"
pascal@25441 11 WGET_URL="http://ftp4.de.freesbie.org/pub/cert.dfn/tools/audit/chkrootkit/$TARBALL"
pascal@1343 12
pascal@24491 13 # What is the latest version available today?
pascal@24491 14 current_version()
pascal@24491 15 {
pascal@25547 16 wget -O - https://www.chkrootkit.org/README 2>/dev/null | \
pascal@24614 17 sed '/- Version/!d; s|.*Version ||;s|[ ,].*||' | tail -n1
pascal@24491 18 }
pascal@24491 19
pascal@1343 20 # Rules to configure and make the package.
pascal@1343 21 compile_rules()
pascal@1343 22 {
pankso@9699 23 [ -f done.chkrootkit.u ] || patch -p1 < $stuff/chkrootkit.u
pascal@1454 24 touch done.chkrootkit.u
pascal@18184 25 sed -i 's/.*egrep} -c "\${GENERAL.*/&\n ls -l ${CMD} | grep -q busybox ||/' chkrootkit
pascal@1343 26 make sense
pascal@1343 27 }
pascal@1343 28
pascal@1343 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1343 30 genpkg_rules()
pascal@1343 31 {
pascal@1343 32 mkdir -p $fs/usr/share/chkrootkit
pascal@22229 33 cp $stuff/spectre-meltdown-checker.sh $fs/usr/share/chkrootkit
pascal@1343 34 for i in $(cd $src ; ls); do
pascal@1343 35 case "$i" in
pascal@1343 36 README*) cp $src/$i $fs/usr/share/chkrootkit;;
pascal@1343 37 Makefile|*.*);;
pascal@1343 38 *) cp $src/$i $fs/usr/share/chkrootkit;;
pascal@1343 39 esac
pascal@1343 40 done
pascal@1343 41 }