diff options
author | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-01 01:51:03 +0200 |
---|---|---|
committer | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-01 01:51:03 +0200 |
commit | 56f955aca6231693fe797de4793f77ed58ab116e (patch) | |
tree | 17daeabce98174f288bab94b47961dc9e9931e66 /libre-testing/logrotate/PKGBUILD | |
parent | 75ff40baa049bae7e9270d20ef86a88b733006ab (diff) | |
download | abslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.gz abslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.bz2 abslibre-56f955aca6231693fe797de4793f77ed58ab116e.zip |
Add some base packages for ppc64le
Diffstat (limited to 'libre-testing/logrotate/PKGBUILD')
-rw-r--r-- | libre-testing/logrotate/PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libre-testing/logrotate/PKGBUILD b/libre-testing/logrotate/PKGBUILD new file mode 100644 index 000000000..15b86d1c9 --- /dev/null +++ b/libre-testing/logrotate/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Pierre Schmitz <pierre@archlinux.de> + +pkgname=logrotate +pkgver=3.14.0 +pkgrel=1 +pkgdesc="Rotates system logs automatically" +arch=(x86_64 ppc64le) +url="https://github.com/logrotate/logrotate" +license=('GPL') +groups=('base') +depends=('popt' 'gzip' 'acl') +backup=('etc/logrotate.conf') +source=("https://github.com/logrotate/logrotate/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc} + 'logrotate.conf') +md5sums=('1c0f6e6e490c4bcac0a1e77ad1310683' + 'SKIP' + '94dae4d3eded2fab9ae879533d3680db') +validpgpkeys=('992A96E075056E79CD8214F9873DB37572A37B36') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --mandir=/usr/share/man \ + --with-compress-command=/usr/bin/gzip \ + --with-uncompress-command=/usr/bin/gunzip \ + --with-default-mail-command=/usr/bin/mail \ + --with-acl + make +} + +check() { + cd "$srcdir/${pkgname}-${pkgver}" + + make test +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + + make DESTDIR="$pkgdir" install + + install -dm755 "$pkgdir/etc/logrotate.d" + install -Dm644 "$srcdir/logrotate.conf" "$pkgdir/etc/logrotate.conf" + + install -D -m644 examples/logrotate.timer ${pkgdir}/usr/lib/systemd/system/logrotate.timer + install -D -m644 examples/logrotate.service ${pkgdir}/usr/lib/systemd/system/logrotate.service + install -d -m755 $pkgdir/usr/lib/systemd/system/timers.target.wants + ln -s ../logrotate.timer $pkgdir/usr/lib/systemd/system/timers.target.wants/logrotate.timer +} |