Commit 345d0350 authored by Francesco Marinucci's avatar Francesco Marinucci

[skip-ci] chkrootkit: update to 0.52

parent fde76b4a
Pipeline #314 skipped
# Original Arch Linux Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=chkrootkit
pkgver=0.50
pkgver=0.52
pkgrel=1
pkgdesc="Locally checks for signs of a rootkit."
arch=('x86_64')
......@@ -9,37 +9,37 @@ url="http://www.chkrootkit.org"
depends=('sh' 'net-tools')
license=('BSD')
categories=('system')
source=("ftp://ftp.pangeia.com.br/pub/seg/pac/${pkgname}.tar.gz"
source=("ftp://ftp.pangeia.com.br/pub/seg/pac/$pkgname.tar.gz"
'chkrootkit.cron'
'fix-tools-path.patch'
'backslashes.patch'
'kallsyms.patch')
md5sums=('9e67dd56f835264d43aeb04944610b03'
md5sums=('0c864b41cae9ef9381292b51104b0a04'
'f4b6494270f708bf016e087104681739'
'858b9e4fe1c38ca712f24f0ca1535c1e'
'd6e43518968607682a7eed86123891ec'
'a1afdd938b09c11a5200aad0a8abed9d')
sha1sums=('0c3f40b2919d25421a90533c2fe6cca81321232c'
sha1sums=('80a133c0ebc96ce025e62e8e10897ec68968ae7b'
'6dda90abf779b6f5c3bacd638e1231f34635575d'
'8d488aa47d7a74755eee94158bbe66c84061592e'
'8a81ed7a109ad087685ad362ffe82e64d6997d83'
'295d729516d31fa7e810bd6e61296e1da827915d')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd $pkgname-$pkgver
sed -i 's|/var/adm|/var/log|' check_wtmpx.c chklastlog.c chkutmp.c chkwtmp.c
patch -p0 -i "${srcdir}/fix-tools-path.patch"
patch -p1 -i "${srcdir}/backslashes.patch"
# patch -p1 -i "${srcdir}/kallsyms.patch"
patch -p0 -i ../fix-tools-path.patch
patch -p1 -i ../backslashes.patch
# patch -p1 -i ../kallsyms.patch
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd $pkgname-$pkgver
for i in check_wtmpx chkdirs chklastlog chkproc chkrootkit \
chkutmp chkwtmp ifpromisc strings-static ; do
install -D -m755 "${i}" "${pkgdir}/usr/sbin/${i}"
done
install -D -m744 "${srcdir}/chkrootkit.cron" "${pkgdir}/etc/cron.weekly/chkrootkit"
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m744 ../chkrootkit.cron $pkgdir/etc/cron.weekly/chkrootkit
install -D -m644 COPYRIGHT ../usr/share/licenses/$pkgname/LICENSE
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment