wok-next diff chkrootkit/receipt @ rev 21040
mariadb 10.3.10 (again)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 09 09:48:29 2018 +0200 (2018-11-09) |
parents | 42d9d6d83956 |
children | 75437d94c310 |
line diff
1.1 --- a/chkrootkit/receipt Sun Mar 04 04:56:40 2018 +0200 1.2 +++ b/chkrootkit/receipt Fri Nov 09 09:48:29 2018 +0200 1.3 @@ -1,31 +1,34 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="chkrootkit" 1.7 -VERSION="0.50" 1.8 +VERSION="0.52" 1.9 CATEGORY="security" 1.10 SHORT_DESC="Locally checks for signs of a rootkit" 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="BSD" 1.13 WEB_SITE="http://www.chkrootkit.org/" 1.14 1.15 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WGET_URL="ftp://ftp.pangeia.com.br/pub/seg/pac/$TARBALL" 1.17 +TARBALL="$PACKAGE-$VERSION.tar" 1.18 +WGET_URL="ftp://ftp.pangeia.com.br/pub/seg/pac/$PACKAGE-$VERSION.tar.gz" 1.19 +TARBALL_SHA1="80a133c0ebc96ce025e62e8e10897ec68968ae7b" 1.20 + 1.21 +PATCH_URL="https://dev.gentoo.org/~polynomial-c/chkrootkit-0.51-gentoo.diff.xz" 1.22 1.23 compile_rules() { 1.24 - sed -i 's/.*egrep} -c "\${GENERAL.*/&\n ls -l ${CMD} | grep -q busybox ||/' chkrootkit 1.25 + # use patch from Gentoo 1.26 + # https://gitweb.gentoo.org/repo/gentoo.git/tree/app-forensics/chkrootkit/chkrootkit-0.52.ebuild 1.27 + if [ ! -e "$SRC/$(basename $PATCH_URL)" ]; then 1.28 + wget -P $SRC $PATCH_URL 1.29 + fi 1.30 + unxz -c $SRC/$(basename $PATCH_URL) | patch -p1 1.31 + 1.32 make sense || return 1 1.33 + # install all executables 1.34 + for i in $(find $src -type f -perm +111); do 1.35 + install -Dm755 $i $install/usr/sbin/$(basename $i) 1.36 + done 1.37 1.38 - mkdir -p $install/usr/share/chkrootkit 1.39 - for i in $(cd $src; ls); do 1.40 - case "$i" in 1.41 - README*) 1.42 - cp $src/$i $install/usr/share/chkrootkit;; 1.43 - Makefile|*.*) 1.44 - ;; 1.45 - *) 1.46 - cp $src/$i $install/usr/share/chkrootkit;; 1.47 - esac 1.48 - done 1.49 + cook_pick_docs README* 1.50 } 1.51 1.52 genpkg_rules() {