Commit dabc3501 authored by prspkt's avatar prspkt Committed by Sören Tempel

main/logrotate: upgrade to 3.14.0, clarify license, modernize

parent 8d184ff8
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=logrotate
pkgver=3.13.0
pkgver=3.14.0
pkgrel=0
pkgdesc="Tool to rotate logfiles"
url="https://github.com/logrotate/logrotate"
arch="all"
license="GPL-2.0"
license="GPL-2.0-or-later"
depends=""
makedepends="popt-dev autoconf automake libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz
source="$url/releases/download/$pkgver/$pkgname-$pkgver.tar.xz
logrotate.cron
logrotate.conf
logrotate.confd"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
./autogen.sh || return 1
./autogen.sh
}
build() {
......@@ -31,26 +31,25 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make || return 1
--localstatedir=/var
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -dm755 "$pkgdir"/etc/logrotate.d/ || return 1
install -dm755 "$pkgdir"/etc/logrotate.d/
install -Dm644 ../logrotate.conf \
"$pkgdir"/etc/logrotate.conf || return 1
"$pkgdir"/etc/logrotate.conf
install -Dm755 "$srcdir"/logrotate.cron \
"$pkgdir"/etc/periodic/daily/logrotate || return 1
"$pkgdir"/etc/periodic/daily/logrotate
install -Dm644 "$srcdir"/logrotate.confd \
"$pkgdir"/etc/conf.d/logrotate || return 1
"$pkgdir"/etc/conf.d/logrotate
}
sha512sums="25dda30fe9512e7f94cc9b0f7109912ba7a02ba6164a3b4e0259340c12c33048b225e93a3fb8286c8da12a5164e45e435614fba542b59b115ebbc27a01509f9d logrotate-3.13.0.tar.gz
sha512sums="f6de24b4d9eba958a95487fd397302db32334e8e1cb7b503ceb187546fa9cefa4bdac63c0ac906a73fb7f98bf874ff6a7e6db76637cbc42bc8a22be60bec8c58 logrotate-3.14.0.tar.xz
f4d708594fb2b240cfc2928f38a180d27c2cecb9867e048dc29a32c0147244db4d2f6d92e7bff27e1f2623537587db87b2f8fc9bb988f98eff0c98f79f5a5bf2 logrotate.cron
9e6a1d024b1cf1ddb8b631fdc1379bfecbfeb1af873930d2a19d32313b26881926df5c21b47b55ada2b6012be981ec2d6d8fa2f249a68b61fd2c97c32f52a957 logrotate.conf
be9f0043b594d26b4f64e07a2188d19c3c43af75ef726305e4d98f744fc16cee9f280227116858e2f5b781c0a7b58e0209d7e9ab1285dfa7ba55a9dfda700229 logrotate.confd"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment