aboutsummaryrefslogtreecommitdiffstats
path: root/main/sysklogd/APKBUILD
blob: 13863564b485881b60e40348e1e8d99bed2075a1 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sysklogd
pkgver=1.5
pkgrel=14
pkgdesc="System and kernel log daemons"
url="http://www.infodrom.org/projects/sysklogd/"
arch="all"
license="GPL BSD"
subpackages="$pkgname-doc"
depends=
makedepends=
install=
source="http://www.infodrom.org/projects/$pkgname/download/$pkgname-$pkgver.tar.gz
	sysklogd.logrotate
	sysklogd.daily
	sysklogd.initd
	sysklogd.confd
	sysklogd-1.4.2-caen-owl-klogd-drop-root.diff
	sysklogd-1.4.2-caen-owl-syslogd-bind.diff
	sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff
	sysklogd-1.5-build.patch
	ksym-fclose-fix.diff
	syslog.conf
	LICENSE"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in $source; do
		case "$i" in
		*.patch|*.diff)
			msg "Applying $i..."
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	make CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
		|| return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make INSTALL="install -D" prefix="$pkgdir" install || return 1

	install -D -m644 "$srcdir"/sysklogd.logrotate \
		"$pkgdir"/etc/logrotate.d/sysklogd
	install -D -m755 "$srcdir"/sysklogd.daily \
		"$pkgdir"/etc/periodic/daily/sysklogd
	install -D -m755 "$srcdir"/sysklogd.initd "$pkgdir"/etc/init.d/sysklogd
	install -D -m644 "$srcdir"/sysklogd.confd "$pkgdir"/etc/conf.d/sysklogd
	install -D -m644 "$srcdir"/syslog.conf "$pkgdir"/etc/syslog.conf
	install -D -m644 "$srcdir"/LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="e053094e8103165f98ddafe828f6ae4b  sysklogd-1.5.tar.gz
6bc1d1c65076b104a8f78d0fb4f21db7  sysklogd.logrotate
dcda8ba997e79a90fdf4ab61f6e5a42b  sysklogd.daily
1b75dea0bac3d35c3d3e9854ab70c057  sysklogd.initd
e25d7b583b7e4bd8be503b89e1771e90  sysklogd.confd
3b7ba3aa6519f96f11165a7d5900a8b1  sysklogd-1.4.2-caen-owl-klogd-drop-root.diff
4715e1dd2deb7a9ac137e004210e3154  sysklogd-1.4.2-caen-owl-syslogd-bind.diff
6c0a416e40a678cf99c454b0e98185c9  sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff
c71826d1a4f3f7e8ffa57adbfc24f1ce  sysklogd-1.5-build.patch
8e70cdf98cce9defae0c28a3d2db4410  ksym-fclose-fix.diff
16019757e6af519be8cf3398b97e0f1b  syslog.conf
7930f7ff5038e1318511624e348581cc  LICENSE"