diff options
Diffstat (limited to 'extra/chkrootkit/PKGBUILD')
-rw-r--r-- | extra/chkrootkit/PKGBUILD | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/extra/chkrootkit/PKGBUILD b/extra/chkrootkit/PKGBUILD index e47387bcc..8e00d17b6 100644 --- a/extra/chkrootkit/PKGBUILD +++ b/extra/chkrootkit/PKGBUILD @@ -1,24 +1,31 @@ -# $Id: PKGBUILD 52041 2009-09-14 15:18:27Z giovanni $ -# Maintainer: Hugo Doria <hugo@archlinux.org> -# Contributor: Gregor Ibic <gregor.ibic@intelicom.si> +# $Id: PKGBUILD 137609 2011-09-10 03:51:07Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> pkgname=chkrootkit pkgver=0.49 -pkgrel=1 -pkgdesc="Locally checks for signs of a rootkit." +pkgrel=2 +pkgdesc="Locally checks for signs of a rootkit" arch=('i686' 'x86_64') url="http://www.chkrootkit.org" -depends=('bash') +depends=('sh' 'net-tools') license=('BSD') source=(ftp://ftp.pangeia.com.br/pub/seg/pac/${pkgname}.tar.gz fix-tools-path.patch) -md5sums=('304d840d52840689e0ab0af56d6d3a18' '6a2f3038114b8b14e1ad74e30fe44eee') +md5sums=('304d840d52840689e0ab0af56d6d3a18' + '6a2f3038114b8b14e1ad74e30fe44eee') +sha1sums=('cec1a3c482b95b20d3a946b07fffb23290abc4a6' + 'f192cda177ec1920ce3313ed983ac44ee571ca6c') build() { - cd ${srcdir}/${pkgname}-${pkgver} - patch -p0 < ${srcdir}/fix-tools-path.patch - chown root:root * - make sense || return 1 - find ${srcdir}/${pkgname}-${pkgver} -perm /u+x -type f \ - -execdir install -D -m755 "{}" ${pkgdir}/usr/bin/"{}" ";" - install -D -m644 COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/LICENSE.txt + cd "${srcdir}/${pkgname}-${pkgver}" + patch -p0 -i "${srcdir}/fix-tools-path.patch" + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + for i in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkrootkit.orig \ + chkutmp chkwtmp ifpromisc strings-static ; do + install -D -m755 $i "${pkgdir}/usr/bin/$i" + done + install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |