Explorar el Código

[trunk] -> [testing] 'logrotate-3.15.1-1' add

master
artoo hace 2 meses
padre
commit
5f85ab6afc
Se han modificado 3 ficheros con 89 adiciones y 2 borrados
  1. 49
    0
      repos/testing-x86_64/PKGBUILD
  2. 38
    0
      repos/testing-x86_64/logrotate.conf
  3. 2
    2
      trunk/PKGBUILD

+ 49
- 0
repos/testing-x86_64/PKGBUILD Ver fichero

@@ -0,0 +1,49 @@
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=logrotate
pkgver=3.15.1
pkgrel=1
pkgdesc="Rotates system logs automatically"
arch=('x86_64')
url="https://github.com/logrotate/logrotate"
license=('GPL')
groups=('base')
depends=('popt' 'gzip' 'acl' 'cron')
backup=('etc/logrotate.conf')
source=("https://github.com/logrotate/logrotate/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
'logrotate.conf')
md5sums=('afe109afea749c306ff489203fde6beb'
'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 -Dm755 examples/logrotate.cron "${pkgdir}"/etc/cron.daily/logrotate
}

+ 38
- 0
repos/testing-x86_64/logrotate.conf Ver fichero

@@ -0,0 +1,38 @@
# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# restrict maximum size of log files
#size 20M

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# Logs are moved into directory for rotation
# olddir /var/log/archive

# Ignore pacman saved files
tabooext + .pacorig .pacnew .pacsave

# Arch packages drop log rotation information into this directory
include /etc/logrotate.d

/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}

/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}

+ 2
- 2
trunk/PKGBUILD Ver fichero

@@ -1,7 +1,7 @@
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=logrotate
pkgver=3.15.0
pkgver=3.15.1
pkgrel=1
pkgdesc="Rotates system logs automatically"
arch=('x86_64')
@@ -12,7 +12,7 @@ depends=('popt' 'gzip' 'acl' 'cron')
backup=('etc/logrotate.conf')
source=("https://github.com/logrotate/logrotate/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
'logrotate.conf')
md5sums=('320046f0b9fc38337e8827d4c5a866a0'
md5sums=('afe109afea749c306ff489203fde6beb'
'SKIP'
'94dae4d3eded2fab9ae879533d3680db')
validpgpkeys=('992A96E075056E79CD8214F9873DB37572A37B36')

Cargando…
Cancelar
Guardar