aboutsummaryrefslogtreecommitdiffstats
path: root/main/logrotate/APKBUILD
blob: 08612808dc50acd7dd1835e5b2cae56a6d4a8b65 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=logrotate
pkgver=3.8.1
pkgrel=0
pkgdesc="Tool to rotate logfiles"
url="https://fedorahosted.org/logrotate/"
arch="all"
license="GPL"
depends=
makedepends="popt-dev wget"
subpackages="$pkgname-doc"
source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-$pkgver.tar.gz
	logrotate-3.7.9-atomic-create.patch
	logrotate-3.7.9-shred.patch
	logrotate-3.7.9-statefile.patch
	logrotate.conf"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -d "$pkgdir"/etc/logrotate.d
	install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
	install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
	install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf
	install -Dm755 examples/logrotate.cron "$pkgdir"/etc/periodic/daily/logrotate
}

md5sums="bd2e20d8dc644291b08f9215397d28a5  logrotate-3.8.1.tar.gz
0273f868dc4208eed0a442759d86e77c  logrotate-3.7.9-atomic-create.patch
74216579397b03c44d1d85dd233306d8  logrotate-3.7.9-shred.patch
82ebd23da8a7f0650a4c80577dbdc739  logrotate-3.7.9-statefile.patch
fef6415a79a6fede8cf9b9b6b8410090  logrotate.conf"