APKBUILD 2.33 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.9.1
Sören Tempel's avatar
Sören Tempel committed
5
_relver="r${pkgver//./-}"
6
pkgrel=3
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
7
pkgdesc="Tool to rotate logfiles"
Sören Tempel's avatar
Sören Tempel committed
8
url="https://github.com/logrotate/logrotate"
9
arch="all"
10 11
license="GPL2"
depends=""
12
makedepends="popt-dev autoconf automake libtool"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
13
subpackages="$pkgname-doc"
Sören Tempel's avatar
Sören Tempel committed
14
source="$pkgname-$_relver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${_relver}.tar.gz
15 16 17
	logrotate.cron
	logrotate.conf
	logrotate.confd"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
18

Sören Tempel's avatar
Sören Tempel committed
19
_builddir="$srcdir"/$pkgname-$_relver
20 21
prepare() {
	cd "$_builddir"
Sören Tempel's avatar
Sören Tempel committed
22
	./autogen.sh || return 1
23 24
}

Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
25
build() {
26
	cd "$_builddir"
27 28 29 30 31 32 33
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		|| return 1
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
34
	make || return 1
35 36 37
}

package() {
38
	cd "$_builddir"
39
	install -d "$pkgdir"/etc/logrotate.d
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
40 41
	install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
	install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
42
	install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf
43 44 45 46
	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
47 48
}

Sören Tempel's avatar
Sören Tempel committed
49
md5sums="8572b7c2cf9ade09a8a8e10098500fb3  logrotate-r3-9-1.tar.gz
50
7e9fad2c9b382a2370c11ef0c89f61c7  logrotate.cron
51
f86dfc4c8aa6f0a34c87d17bfba95f6e  logrotate.conf
52
e7e4b67d5c4bda49ff3c041834180c1e  logrotate.confd"
Sören Tempel's avatar
Sören Tempel committed
53
sha256sums="5bf8e478c428e7744fefa465118f8296e7e771c981fb6dffb7527856a0ea3617  logrotate-r3-9-1.tar.gz
54
ccbcf1785c754ce07a55b81223ae5b0c2caec1ccf9cdf865debb140052f9b363  logrotate.cron
55
1dd222e9ce65f15c161c535d5422793e39641410200fd51462152fcca4c87e07  logrotate.conf
56
814bea9082cfa3a9446e25f4f4fe4fe205130cea6ba15dc8286409c3d01a3973  logrotate.confd"
Sören Tempel's avatar
Sören Tempel committed
57
sha512sums="f97fbbff69e0ec711a1a3d66d75823feb7db0356a019b365d1a1e872297c7792f3b4f4d8cb4e0a069aac7dcd0809e3da2d4fc0eef0c4e5bd2180a7a4c67dc19b  logrotate-r3-9-1.tar.gz
58
f4d708594fb2b240cfc2928f38a180d27c2cecb9867e048dc29a32c0147244db4d2f6d92e7bff27e1f2623537587db87b2f8fc9bb988f98eff0c98f79f5a5bf2  logrotate.cron
59
9e6a1d024b1cf1ddb8b631fdc1379bfecbfeb1af873930d2a19d32313b26881926df5c21b47b55ada2b6012be981ec2d6d8fa2f249a68b61fd2c97c32f52a957  logrotate.conf
60
be9f0043b594d26b4f64e07a2188d19c3c43af75ef726305e4d98f744fc16cee9f280227116858e2f5b781c0a7b58e0209d7e9ab1285dfa7ba55a9dfda700229  logrotate.confd"