aboutsummaryrefslogtreecommitdiffstats
path: root/main/sysklogd/APKBUILD
blob: e482fbca4a13093838fbec0d32afda9545645819 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# 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
	fix-includes.patch
	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
fee8beb8c17f8ff8bbf6523fbb1c627f  fix-includes.patch
16019757e6af519be8cf3398b97e0f1b  syslog.conf
7930f7ff5038e1318511624e348581cc  LICENSE"
sha256sums="6169b8e91d29288e90404f01462b69e7f2afb1161aa419826fe4736c7f9eb773  sysklogd-1.5.tar.gz
603fa42348264aba7bc6e3306582523248a7841a0b02f101af0028e8db14a22a  sysklogd.logrotate
bd72d336cf70903af1512e81180190de09b84f25b3dced5915869306a63841f2  sysklogd.daily
379fd137610ff0c3be23387e2b85e1163212c87952a410b3dfa38a24e0215880  sysklogd.initd
11a1eeb9edd09639d5143227bada137945822b23c5abb88fec5ebaef064b991d  sysklogd.confd
f316586561ec40eb185bb83b6e785185b9e33b8290767336cdab626767f88060  sysklogd-1.4.2-caen-owl-klogd-drop-root.diff
1818aee4cb0d501542721468199e376b73c71d8635b178b6a8d7bd6aff49aa9d  sysklogd-1.4.2-caen-owl-syslogd-bind.diff
0105d924d9451531645a9957ec7d40228cf2a1cb4ccdf3d89ff255dfec0841b9  sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff
29fbfc607580a8bed0dc1ae598ddd175fda46dca79f528bc5a5b92c155e1e99b  sysklogd-1.5-build.patch
7a34ec8ae1d396bb366f07c0375bb1e34cec565e01d7d8b8cc30e801c2df117e  ksym-fclose-fix.diff
fd235a445a2fb0100cd84e201b7a0a14e515517b74106cf4dcfd8d820af7bc21  fix-includes.patch
f438fd0f85eb6796289421aa0339d54d5c1cb0a5524df4c866c009a05223bf70  syslog.conf
5d15a27dc7c6183a61a0e44fa5559b6d53a9f1591767c2322dd797f717c5eb8d  LICENSE"
sha512sums="19ef104c03a8c87ea30c811fe54bb30e7c73a2834a83c8720841f0d553d41508dbf052d4e3dd9ea929eedff31e9fbb79f8c05546f48005b74f01ebf2a57e48f7  sysklogd-1.5.tar.gz
d82caedfa61bfefc0162e5c416ff75a5cd8f60abe1cf8a3c5c4e7775aeb7bb64e712c783031659d3793378c8753578adf73ef79aac6a0e7cfbc5bbba5a74bd81  sysklogd.logrotate
954f2f913e044b11b418aec3157f7757079b2e20b9a6fffd4b6eff94b5c74e62e804cdf870f84ea9412285d5024f3900c9a42cad8ff99534cc1d1a40ee120048  sysklogd.daily
1734ef2dc9cbfeb14528f08c9dece22e0a8f4b2488b630e462a3967205c01e1ba012376bbc3f2f5d90d6f201b3cbacd0e41b16ebe05b3d0a361a278a855fe5b9  sysklogd.initd
4553d85e93fb07e7d4a6ed0b47a3ea2044a5605adaac05223724c32a60bb8ae96d99ca95965c3931640beef234e976c1141b83f603aa8c6e8aca1dec20ca807c  sysklogd.confd
1a5cf4a5dec3ecaa8258110820b64d6a8e1e768e841a3f0ade8d7827b91e73c2d8a49a9d8b74566373133627af88dd46d14e83ae1940a0b2e6cd6fe8710a7e7a  sysklogd-1.4.2-caen-owl-klogd-drop-root.diff
995c240fc54681445f68f7681173e1e1860aaab309edc8ac3531881c63c8889f009a7fd622d37145e80fe187410b80c28554140d6a6660134ca87a1c8d13570d  sysklogd-1.4.2-caen-owl-syslogd-bind.diff
87865e069f9c78990660cf29a37ba1ded7cc078ea8f05af63fc6068c470d1881181387477dccb830d96af05f352959181619380d61afccf3a11d213372e68852  sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff
ab979b36f091c62ada916246723cd75a71319a6c3687c034167b9caafc53807e6d224e0d6c836bc4b81b61c1d02ec21a1cb19477396a416c62f097d4b9ccc678  sysklogd-1.5-build.patch
ceb1f7cb70f526dd285fc8bad5511cdef603fc1296f69cc0e7ec4901f11685fae083d028687765b233ca074dfbe0cdafa921de6c80a5cbced94de1059d9761ee  ksym-fclose-fix.diff
0208662a0158ecb6b0a387bd1bf467c866105dac02767209aeaaaeb02762d6c2b814a2707315f8f6cd40f46c4b7744b74653e30973c31354998c27cd7c966dbd  fix-includes.patch
49f73b8a16b92d0cda56db9cfc16d5322e797590dfc998282a62560d54205042af953837f5f94b45a3de403fdf5f63efe65d72e9908c7185a2cd5941275abf33  syslog.conf
7b3de1d38b50df14ceaada900f2e8f23b0d5035278c9eacb06d2578ccdcf64ffc44bbb76ed6a10d80f4b883bf36a3ecd2bf60897321e4eae7aed7d8a5a36d86c  LICENSE"