APKBUILD 842 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 4
pkgname=logrotate
pkgver=3.7.8
5
pkgrel=1
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
6 7 8
pkgdesc="Tool to rotate logfiles"
url="https://fedorahosted.org/logrotate/"
license="GPL"
9
depends=
10
makedepends="popt-dev wget"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
11
subpackages="$pkgname-doc"
12 13
source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz
	logrotate.conf"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
14 15 16 17 18 19 20

build() {
	cd "$srcdir/$pkgname-$pkgver"

	make || return 1
	install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
	install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
21 22
	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
23 24
}

25 26
md5sums="b3589bea6d8d5afc8a84134fddaae973  logrotate-3.7.8.tar.gz
fef6415a79a6fede8cf9b9b6b8410090  logrotate.conf"