APKBUILD 1.43 KB
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.8.3
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
Natanael Copa's avatar
Natanael Copa committed
14 15 16
	logrotate-3.7.9-atomic-create.patch
	logrotate-3.7.9-shred.patch
	logrotate-3.7.9-statefile.patch
17 18 19
	logrotate.cron
	logrotate.conf
	logrotate.confd"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
20 21 22 23

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make || return 1
24 25 26 27 28
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -d "$pkgdir"/etc/logrotate.d
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
29 30
	install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
	install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
31
	install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf
32 33 34 35
	install -Dm755 "$srcdir"/logrotate.cron \
		"$pkgdir"/etc/periodic/daily/logrotate || return 1
	install -Dm644 "$srcdir"/logrotate.confd  \
		"$pkgdir"/etc/conf.d/logrotate
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
36 37
}

38
md5sums="df67c8bda9139131d919931da443794d  logrotate-3.8.3.tar.gz
Natanael Copa's avatar
Natanael Copa committed
39 40 41
0273f868dc4208eed0a442759d86e77c  logrotate-3.7.9-atomic-create.patch
74216579397b03c44d1d85dd233306d8  logrotate-3.7.9-shred.patch
82ebd23da8a7f0650a4c80577dbdc739  logrotate-3.7.9-statefile.patch
42 43 44
7e9fad2c9b382a2370c11ef0c89f61c7  logrotate.cron
fef6415a79a6fede8cf9b9b6b8410090  logrotate.conf
e7e4b67d5c4bda49ff3c041834180c1e  logrotate.confd"