APKBUILD 737 Bytes
Newer Older
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
1 2 3 4 5 6 7 8
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
pkgname=logrotate
pkgver=3.7.8
pkgrel=0
pkgdesc="Tool to rotate logfiles"
url="https://fedorahosted.org/logrotate/"
license="GPL"
depends="uclibc popt"
9
makedepends="popt-dev wget"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
10
subpackages="$pkgname-doc"
11
source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
12 13 14 15 16 17 18 19 20 21 22 23

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
	install -Dm644 examples/logrotate-default "$pkgdir"/etc/logrotate.conf
	install -Dm644 examples/logrotate.cron "$pkgdir"/etc/logrotate.cron
}

md5sums="b3589bea6d8d5afc8a84134fddaae973  logrotate-3.7.8.tar.gz"