summaryrefslogtreecommitdiff
path: root/pcr/rootcheck/PKGBUILD
blob: 89ccefda79442c1bb6cb77f961c0445d6e9dc111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
# Contributor: solsTiCe d'Hiver <solstice.dhiver@gmail.com>

pkgname=rootcheck
pkgver=2.4
pkgrel=2
pkgdesc="an open source rootkit detection and system auditing software"
arch=(i686 x86_64)
url="http://www.ossec.net/main/rootcheck"
license=("GPL")
source=(http://www.ossec.net/rootcheck/files/rootcheck-$pkgver.tar.gz)

package() {
	cd $srcdir/$pkgname-$pkgver
	sed -i 's|./rootcheck.conf|/etc/rootcheck.conf|' src/rootcheck/rootcheck.c
	make all
	sed -i 's|./db/|/usr/share/rootcheck/db/|' rootcheck.conf
	mkdir -p $pkgdir/{etc,usr/share/rootcheck,usr/bin}
	install -m 755 ossec-rootcheck $pkgdir/usr/bin
	install -m 644 rootcheck.conf $pkgdir/etc
	cp -a db $pkgdir/usr/share/rootcheck
}