aboutsummaryrefslogtreecommitdiffstats
path: root/main/logcheck/APKBUILD
blob: f606e95b0e4e449ab21485b1e40e5538e1d9ecf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Duane Hughes <duanejevon@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=logcheck
pkgver=1.3.18
pkgrel=0
pkgdesc="Bash scripts used to monitor system log files for anomalies"
url="http://packages.debian.org/source/sid/logcheck"
arch="noarch"
license="GPL"
depends="lockfile-progs"
install="$pkgname.pre-install"
options="!check"
subpackages="$pkgname-doc"
pkgusers="logcheck"
source="http://ftp.debian.org/debian/pool/main/l/logcheck/${pkgname}_$pkgver.tar.xz
	logcheck.cron.d"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	return 0
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/var/lib/$pkgname
	mkdir -p "$pkgdir"/var/lock/$pkgname
	install -D -m 644 "$srcdir"/logcheck.cron.d "$pkgdir"/etc/logcheck/logcheck.cron.sample
	install -d "$pkgdir"/usr/share/man
	cp -a "$builddir"/docs/* "$pkgdir"/usr/share/man

	chown -R $pkgusers "$pkgdir"/etc/logcheck "$pkgdir"/var/lock/logcheck "$pkgdir"/var/lib/logcheck
}

sha512sums="3ab75969f732efa123d9df2c8b44557e4a7eddef8332a8357463930714148a13130c763c22e562bd60e106abf5e18cf39b3572e0c048727a117fbc67430b7e3f  logcheck_1.3.18.tar.xz
a177388f18c220323eea6f5413f76873e6ad2a2334f58a05727c7b94a793fcb98bd605cefc6fe44aca6afe5c50a9ef851abcc439aefe5b7545d5d6bb584c0a8b  logcheck.cron.d"