APKBUILD 938 Bytes
Newer Older
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
3
pkgname=logrotate
4
pkgver=3.7.9
5
pkgrel=1
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
6 7
pkgdesc="Tool to rotate logfiles"
url="https://fedorahosted.org/logrotate/"
8
arch="all"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
9
license="GPL"
10
depends=
11
makedepends="popt-dev wget"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
12
subpackages="$pkgname-doc"
13
source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-$pkgver.tar.gz
14
	logrotate.conf"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
15 16 17 18

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make || return 1
19 20 21 22 23
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -d "$pkgdir"/etc/logrotate.d
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
24 25
	install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
	install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
26 27
	install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf
	install -Dm755 examples/logrotate.cron "$pkgdir"/etc/periodic/daily/logrotate
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
28 29
}

30
md5sums="eeba9dbca62a9210236f4b83195e4ea5  logrotate-3.7.9.tar.gz
31
fef6415a79a6fede8cf9b9b6b8410090  logrotate.conf"