[arch-commits] Commit in chkrootkit/repos (3 files)
Hugo Doria
hugo at archlinux.org
Sat Jun 13 02:49:00 UTC 2009
Date: Friday, June 12, 2009 @ 22:49:00
Author: hugo
Revision: 42318
Merged revisions 356,42317 via svnmerge from
svn+ssh://archlinux.org/srv/svn-packages/chkrootkit/trunk
........
r356 | aaron | 2008-04-18 19:56:27 -0300 (Fri, 18 Apr 2008) | 1 line
Added svn:keywords to all PKGBUILDs
........
r42317 | hugo | 2009-06-12 23:48:36 -0300 (Fri, 12 Jun 2009) | 2 lines
upgpkg: chkrootkit 0.48-2
Patch added to make chrootkit find its own tools. This fixes FS#11962
........
Added:
chkrootkit/repos/extra-i686/fix-tools-path.patch
(from rev 42317, chkrootkit/trunk/fix-tools-path.patch)
Modified:
chkrootkit/repos/extra-i686/ (properties)
chkrootkit/repos/extra-i686/PKGBUILD
----------------------+
PKGBUILD | 13 ++-
fix-tools-path.patch | 161 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 168 insertions(+), 6 deletions(-)
Property changes on: chkrootkit/repos/extra-i686
___________________________________________________________________
Modified: svnmerge-integrated
- /chkrootkit/trunk:1
+ /chkrootkit/trunk:1-42317
Modified: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2009-06-13 02:48:36 UTC (rev 42317)
+++ extra-i686/PKGBUILD 2009-06-13 02:49:00 UTC (rev 42318)
@@ -4,19 +4,20 @@
pkgname=chkrootkit
pkgver=0.48
-pkgrel=1
+pkgrel=2
pkgdesc="Locally checks for signs of a rootkit."
arch=(i686 x86_64)
url="http://www.chkrootkit.org"
depends=('bash')
license=('BSD')
-source=(ftp://ftp.pangeia.com.br/pub/seg/pac/${pkgname}-${pkgver}.tar.gz)
-md5sums=('de8b8b5013e7faa2b66c0e33c59677e8')
+source=(ftp://ftp.pangeia.com.br/pub/seg/pac/${pkgname}-${pkgver}.tar.gz fix-tools-path.patch)
+md5sums=('de8b8b5013e7faa2b66c0e33c59677e8' '6a2f3038114b8b14e1ad74e30fe44eee')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -p0 < ${srcdir}/fix-tools-path.patch
chown root:root *
make sense || return 1
- find $startdir/src/$pkgname-$pkgver -perm /u+x -type f \
- -execdir install -D -m755 "{}" $startdir/pkg/usr/bin/"{}" ";"
+ find ${srcdir}/${pkgname}-${pkgver} -perm /u+x -type f \
+ -execdir install -D -m755 "{}" ${pkgdir}/usr/bin/"{}" ";"
}
Copied: chkrootkit/repos/extra-i686/fix-tools-path.patch (from rev 42317, chkrootkit/trunk/fix-tools-path.patch)
===================================================================
--- extra-i686/fix-tools-path.patch (rev 0)
+++ extra-i686/fix-tools-path.patch 2009-06-13 02:49:00 UTC (rev 42318)
@@ -0,0 +1,161 @@
+--- chkrootkit 2008-01-19 11:01:15.000000000 +0100
++++ chkrootkit 2008-11-01 13:11:14.000000000 +0100
+@@ -158,23 +158,23 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./ifpromisc" -v
++ expertmode_output "/usr/bin/ifpromisc" -v
+ return 5
+ fi
+- if [ ! -x ./ifpromisc ]; then
+- echo "not tested: can't exec ./ifpromisc"
++ if [ ! -x /usr/bin/ifpromisc ]; then
++ echo "not tested: can't exec /usr/bin/ifpromisc"
+ return ${NOT_TESTED}
+ else
+- [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q
++ [ "${QUIET}" != "t" ] && /usr/bin/ifpromisc -v || /usr/bin/ifpromisc -q
+ fi
+ }
+
+ chkutmp() {
+- if [ ! -x ./chkutmp ]; then
+- echo "not tested: can't exec ./chkutmp"
++ if [ ! -x /usr/bin/chkutmp ]; then
++ echo "not tested: can't exec /usr/bin/chkutmp"
+ return ${NOT_TESTED}
+ fi
+- if ./chkutmp
++ if /usr/bin/chkutmp
+ then
+ if [ "${QUIET}" != "t" ]; then echo "chkutmp: nothing deleted"; fi
+ fi
+@@ -182,8 +182,8 @@
+ }
+
+ z2 () {
+- if [ ! -x ./chklastlog ]; then
+- echo "not tested: can't exec ./chklastlog"
++ if [ ! -x /usr/bin/chklastlog ]; then
++ echo "not tested: can't exec /usr/bin/chklastlog"
+ return ${NOT_TESTED}
+ fi
+
+@@ -196,32 +196,32 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
++ expertmode_output "/usr/bin/chklastlog -f ${WTMP} -l ${LASTLOG}"
+ return 5
+ fi
+
+- if ./chklastlog -f ${WTMP} -l ${LASTLOG}
++ if /usr/bin/chklastlog -f ${WTMP} -l ${LASTLOG}
+ then
+ if [ "${QUIET}" != "t" ]; then echo "chklastlog: nothing deleted"; fi
+ fi
+ }
+
+ wted () {
+- if [ ! -x ./chkwtmp ]; then
+- echo "not tested: can't exec ./chkwtmp"
++ if [ ! -x /usr/bin/chkwtmp ]; then
++ echo "not tested: can't exec /usr/bin/chkwtmp"
+ return ${NOT_TESTED}
+ fi
+
+ if [ "$SYSTEM" = "SunOS" ]; then
+- if [ ! -x ./check_wtmpx ]; then
+- echo "not tested: can't exec ./check_wtmpx"
++ if [ ! -x /usr/bin/check_wtmpx ]; then
++ echo "not tested: can't exec /usr/bin/check_wtmpx"
+ else
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./check_wtmpx"
++ expertmode_output "/usr/bin/check_wtmpx"
+ return 5
+ fi
+ if [ -f ${ROOTDIR}var/adm/wtmp ]; then
+- if ./check_wtmpx
++ if /usr/bin/check_wtmpx
+ then
+ if [ "${QUIET}" != "t" ]; then \
+ echo "check_wtmpx: nothing deleted in /var/adm/wtmpx"; fi
+@@ -232,12 +232,12 @@
+ WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./chkwtmp -f ${WTMP}"
++ expertmode_output "/usr/bin/chkwtmp -f ${WTMP}"
+ return 5
+ fi
+ fi
+
+- if ./chkwtmp -f ${WTMP}
++ if /usr/bin/chkwtmp -f ${WTMP}
+ then
+ if [ "${QUIET}" != "t" ]; then echo "chkwtmp: nothing deleted"; fi
+ fi
+@@ -275,8 +275,8 @@
+ prog=""
+ if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
+ `echo ${V} | ${awk} '{ if ($1 > 4.3 || $1 < 6.0) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then
+- [ -x ./chkproc -a "`find /proc | wc -l`" -gt 1 ] && prog="./chkproc"
+- [ -x ./chkdirs ] && prog="$prog ./chkdirs"
++ [ -x /usr/bin/chkproc -a "`find /proc | wc -l`" -gt 1 ] && prog="/usr/bin/chkproc"
++ [ -x /usr/bin/chkdirs ] && prog="$prog /usr/bin/chkdirs"
+ if [ "$prog" = "" ]; then
+ echo "not tested: can't exec $prog"
+ return ${NOT_TESTED}
+@@ -288,7 +288,7 @@
+ PV=`$ps -V 2>/dev/null| $cut -d " " -f 3 |${awk} -F . '{ print $1 "." $2 $3 }' | ${awk} '{ if ($0 > 3.19) print 3; else if ($0 < 2.015) print 1; else print 2 }'`
+ [ "$PV" = "" ] && PV=2
+ [ "${SYSTEM}" = "SunOS" ] && PV=0
+- expertmode_output "./chkproc -v -v -p $PV"
++ expertmode_output "/usr/bin/chkproc -v -v -p $PV"
+ return 5
+ fi
+
+@@ -315,7 +315,7 @@
+ if [ "${DEBUG}" = "t" ]; then
+ ${echo} "*** PV=$PV ***"
+ fi
+- if ./chkproc -p ${PV}; then
++ if /usr/bin/chkproc -p ${PV}; then
+ if [ "${QUIET}" != "t" ]; then echo "chkproc: nothing detected"; fi
+ else
+ echo "chkproc: Warning: Possible LKM Trojan installed"
+@@ -324,7 +324,7 @@
+ for i in /usr/share /usr/bin /usr/sbin /lib; do
+ [ -d $i ] && dirs="$dirs $i"
+ done
+- if ./chkdirs $dirs; then
++ if /usr/bin/chkdirs $dirs; then
+ if [ "${QUIET}" != "t" ]; then echo "chkdirs: nothing detected"; fi
+ else
+ echo "chkdirs: Warning: Possible LKM Trojan installed"
+@@ -1690,18 +1690,18 @@
+
+ if [ "${SYSTEM}" = "Linux" ]
+ then
+- if [ ! -x ./strings-static ]; then
+- printn "can't exec ./strings-static, "
++ if [ ! -x /usr/bin/strings-static ]; then
++ printn "can't exec /usr/bin/strings-static, "
+ return ${NOT_TESTED}
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./strings-static -a ${CMD}"
++ expertmode_output "/usr/bin/strings-static -a ${CMD}"
+ return 5
+ fi
+
+ ### strings must be a statically linked binary.
+- if ./strings-static -a ${CMD} > /dev/null 2>&1
++ if /usr/bin/strings-static -a ${CMD} > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
More information about the arch-commits
mailing list