mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Original Arch Linux Maintainer: Eric Bélanger <eric@archlinux.org>
|
|
|
|
pkgname=chkrootkit
|
|
pkgver=0.52
|
|
pkgrel=1
|
|
pkgdesc="Locally checks for signs of a rootkit."
|
|
arch=('x86_64')
|
|
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"
|
|
'chkrootkit.cron'
|
|
'fix-tools-path.patch'
|
|
'backslashes.patch'
|
|
'kallsyms.patch')
|
|
md5sums=('0c864b41cae9ef9381292b51104b0a04'
|
|
'f4b6494270f708bf016e087104681739'
|
|
'858b9e4fe1c38ca712f24f0ca1535c1e'
|
|
'd6e43518968607682a7eed86123891ec'
|
|
'a1afdd938b09c11a5200aad0a8abed9d')
|
|
sha1sums=('80a133c0ebc96ce025e62e8e10897ec68968ae7b'
|
|
'6dda90abf779b6f5c3bacd638e1231f34635575d'
|
|
'8d488aa47d7a74755eee94158bbe66c84061592e'
|
|
'8a81ed7a109ad087685ad362ffe82e64d6997d83'
|
|
'295d729516d31fa7e810bd6e61296e1da827915d')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
sed -i 's|/var/adm|/var/log|' check_wtmpx.c chklastlog.c chkutmp.c chkwtmp.c
|
|
patch -p0 -i ../fix-tools-path.patch
|
|
patch -p1 -i ../backslashes.patch
|
|
# patch -p1 -i ../kallsyms.patch
|
|
make
|
|
}
|
|
|
|
package() {
|
|
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 ../chkrootkit.cron $pkgdir/etc/cron.weekly/chkrootkit
|
|
install -D -m644 COPYRIGHT ../usr/share/licenses/$pkgname/LICENSE
|
|
}
|