[arch-commits] Commit in logrotate/repos (12 files)

Pierre Schmitz pierre at archlinux.org
Fri Feb 13 17:00:42 UTC 2015


    Date: Friday, February 13, 2015 @ 18:00:41
  Author: pierre
Revision: 231380

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  logrotate/repos/testing-i686/
  logrotate/repos/testing-i686/PKGBUILD
    (from rev 231379, logrotate/trunk/PKGBUILD)
  logrotate/repos/testing-i686/logrotate.conf
    (from rev 231379, logrotate/trunk/logrotate.conf)
  logrotate/repos/testing-i686/logrotate.service
    (from rev 231379, logrotate/trunk/logrotate.service)
  logrotate/repos/testing-i686/logrotate.timer
    (from rev 231379, logrotate/trunk/logrotate.timer)
  logrotate/repos/testing-i686/paths.patch
    (from rev 231379, logrotate/trunk/paths.patch)
  logrotate/repos/testing-x86_64/
  logrotate/repos/testing-x86_64/PKGBUILD
    (from rev 231379, logrotate/trunk/PKGBUILD)
  logrotate/repos/testing-x86_64/logrotate.conf
    (from rev 231379, logrotate/trunk/logrotate.conf)
  logrotate/repos/testing-x86_64/logrotate.service
    (from rev 231379, logrotate/trunk/logrotate.service)
  logrotate/repos/testing-x86_64/logrotate.timer
    (from rev 231379, logrotate/trunk/logrotate.timer)
  logrotate/repos/testing-x86_64/paths.patch
    (from rev 231379, logrotate/trunk/paths.patch)

----------------------------------+
 testing-i686/PKGBUILD            |   56 +++++++++++++++++++++++++++++++++++++
 testing-i686/logrotate.conf      |   38 +++++++++++++++++++++++++
 testing-i686/logrotate.service   |    9 +++++
 testing-i686/logrotate.timer     |    7 ++++
 testing-i686/paths.patch         |   25 ++++++++++++++++
 testing-x86_64/PKGBUILD          |   56 +++++++++++++++++++++++++++++++++++++
 testing-x86_64/logrotate.conf    |   38 +++++++++++++++++++++++++
 testing-x86_64/logrotate.service |    9 +++++
 testing-x86_64/logrotate.timer   |    7 ++++
 testing-x86_64/paths.patch       |   25 ++++++++++++++++
 10 files changed, 270 insertions(+)

Copied: logrotate/repos/testing-i686/PKGBUILD (from rev 231379, logrotate/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=logrotate
+pkgver=3.8.9
+pkgrel=1
+pkgdesc="Rotates system logs automatically"
+arch=('i686' 'x86_64')
+url="https://fedorahosted.org/logrotate/"
+license=('GPL')
+groups=('base')
+depends=('popt' 'gzip' 'acl')
+backup=('etc/logrotate.conf')
+source=("https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz"
+        'paths.patch'
+        'logrotate.conf'
+        logrotate.{timer,service})
+md5sums=('2660f30742da79870d15d042b07829f6'
+         'e76526bcd6fc33c9d921e1cb1eff1ffb'
+         '94dae4d3eded2fab9ae879533d3680db'
+         '287c2ad9b074cb5478db7692f385827c'
+         '85560be5272ed68a88bb77a0a2293369')
+
+build() {
+	cd "$srcdir/${pkgname}-${pkgver}"
+
+	patch -p0 -i "$srcdir/paths.patch"
+
+	./autogen.sh
+	./configure \
+		--prefix=/usr \
+		--sbindir=/usr/bin \
+		--mandir=/usr/share/man \
+		--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 ${srcdir}/logrotate.timer ${pkgdir}/usr/lib/systemd/system/logrotate.timer
+	install -D -m644 ${srcdir}/logrotate.service ${pkgdir}/usr/lib/systemd/system/logrotate.service
+	install -d -m755 ${pkgdir}/usr/lib/systemd/system/multi-user.target.wants
+	ln -s ../logrotate.timer ${pkgdir}//usr/lib/systemd/system/multi-user.target.wants/logrotate.timer
+}

Copied: logrotate/repos/testing-i686/logrotate.conf (from rev 231379, logrotate/trunk/logrotate.conf)
===================================================================
--- testing-i686/logrotate.conf	                        (rev 0)
+++ testing-i686/logrotate.conf	2015-02-13 17:00:41 UTC (rev 231380)
@@ -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
+}

Copied: logrotate/repos/testing-i686/logrotate.service (from rev 231379, logrotate/trunk/logrotate.service)
===================================================================
--- testing-i686/logrotate.service	                        (rev 0)
+++ testing-i686/logrotate.service	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Rotate log files
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/logrotate /etc/logrotate.conf
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7

Copied: logrotate/repos/testing-i686/logrotate.timer (from rev 231379, logrotate/trunk/logrotate.timer)
===================================================================
--- testing-i686/logrotate.timer	                        (rev 0)
+++ testing-i686/logrotate.timer	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily rotation of log files
+
+[Timer]
+OnCalendar=daily
+AccuracySec=12h
+Persistent=true

Copied: logrotate/repos/testing-i686/paths.patch (from rev 231379, logrotate/trunk/paths.patch)
===================================================================
--- testing-i686/paths.patch	                        (rev 0)
+++ testing-i686/paths.patch	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,25 @@
+--- config.h	2012-08-01 12:56:47.000000000 +0200
++++ config.h	2012-08-03 09:53:05.025039199 +0200
+@@ -27,11 +27,11 @@
+  * Default settings for Linux - leave these last.
+  */
+ #ifndef DEFAULT_MAIL_COMMAND
+-#define DEFAULT_MAIL_COMMAND "/bin/mail"
++#define DEFAULT_MAIL_COMMAND "/usr/bin/mail"
+ #endif
+ 
+ #ifndef COMPRESS_COMMAND
+-#define COMPRESS_COMMAND "/bin/gzip"
++#define COMPRESS_COMMAND "/usr/bin/gzip"
+ #endif
+ 
+ #ifndef COMPRESS_EXT
+@@ -39,7 +39,7 @@
+ #endif
+ 
+ #ifndef UNCOMPRESS_COMMAND
+-#define UNCOMPRESS_COMMAND "/bin/gunzip"
++#define UNCOMPRESS_COMMAND "/usr/bin/gunzip"
+ #endif
+ 
+ #ifndef STATEFILE

Copied: logrotate/repos/testing-x86_64/PKGBUILD (from rev 231379, logrotate/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=logrotate
+pkgver=3.8.9
+pkgrel=1
+pkgdesc="Rotates system logs automatically"
+arch=('i686' 'x86_64')
+url="https://fedorahosted.org/logrotate/"
+license=('GPL')
+groups=('base')
+depends=('popt' 'gzip' 'acl')
+backup=('etc/logrotate.conf')
+source=("https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz"
+        'paths.patch'
+        'logrotate.conf'
+        logrotate.{timer,service})
+md5sums=('2660f30742da79870d15d042b07829f6'
+         'e76526bcd6fc33c9d921e1cb1eff1ffb'
+         '94dae4d3eded2fab9ae879533d3680db'
+         '287c2ad9b074cb5478db7692f385827c'
+         '85560be5272ed68a88bb77a0a2293369')
+
+build() {
+	cd "$srcdir/${pkgname}-${pkgver}"
+
+	patch -p0 -i "$srcdir/paths.patch"
+
+	./autogen.sh
+	./configure \
+		--prefix=/usr \
+		--sbindir=/usr/bin \
+		--mandir=/usr/share/man \
+		--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 ${srcdir}/logrotate.timer ${pkgdir}/usr/lib/systemd/system/logrotate.timer
+	install -D -m644 ${srcdir}/logrotate.service ${pkgdir}/usr/lib/systemd/system/logrotate.service
+	install -d -m755 ${pkgdir}/usr/lib/systemd/system/multi-user.target.wants
+	ln -s ../logrotate.timer ${pkgdir}//usr/lib/systemd/system/multi-user.target.wants/logrotate.timer
+}

Copied: logrotate/repos/testing-x86_64/logrotate.conf (from rev 231379, logrotate/trunk/logrotate.conf)
===================================================================
--- testing-x86_64/logrotate.conf	                        (rev 0)
+++ testing-x86_64/logrotate.conf	2015-02-13 17:00:41 UTC (rev 231380)
@@ -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
+}

Copied: logrotate/repos/testing-x86_64/logrotate.service (from rev 231379, logrotate/trunk/logrotate.service)
===================================================================
--- testing-x86_64/logrotate.service	                        (rev 0)
+++ testing-x86_64/logrotate.service	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Rotate log files
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/logrotate /etc/logrotate.conf
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7

Copied: logrotate/repos/testing-x86_64/logrotate.timer (from rev 231379, logrotate/trunk/logrotate.timer)
===================================================================
--- testing-x86_64/logrotate.timer	                        (rev 0)
+++ testing-x86_64/logrotate.timer	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily rotation of log files
+
+[Timer]
+OnCalendar=daily
+AccuracySec=12h
+Persistent=true

Copied: logrotate/repos/testing-x86_64/paths.patch (from rev 231379, logrotate/trunk/paths.patch)
===================================================================
--- testing-x86_64/paths.patch	                        (rev 0)
+++ testing-x86_64/paths.patch	2015-02-13 17:00:41 UTC (rev 231380)
@@ -0,0 +1,25 @@
+--- config.h	2012-08-01 12:56:47.000000000 +0200
++++ config.h	2012-08-03 09:53:05.025039199 +0200
+@@ -27,11 +27,11 @@
+  * Default settings for Linux - leave these last.
+  */
+ #ifndef DEFAULT_MAIL_COMMAND
+-#define DEFAULT_MAIL_COMMAND "/bin/mail"
++#define DEFAULT_MAIL_COMMAND "/usr/bin/mail"
+ #endif
+ 
+ #ifndef COMPRESS_COMMAND
+-#define COMPRESS_COMMAND "/bin/gzip"
++#define COMPRESS_COMMAND "/usr/bin/gzip"
+ #endif
+ 
+ #ifndef COMPRESS_EXT
+@@ -39,7 +39,7 @@
+ #endif
+ 
+ #ifndef UNCOMPRESS_COMMAND
+-#define UNCOMPRESS_COMMAND "/bin/gunzip"
++#define UNCOMPRESS_COMMAND "/usr/bin/gunzip"
+ #endif
+ 
+ #ifndef STATEFILE



More information about the arch-commits mailing list