[arch-commits] Commit in logrotate/repos (10 files)
Pierre Schmitz
pierre at nymeria.archlinux.org
Thu Oct 10 12:58:20 UTC 2013
Date: Thursday, October 10, 2013 @ 14:58:19
Author: pierre
Revision: 196275
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
logrotate/repos/testing-i686/
logrotate/repos/testing-i686/PKGBUILD
(from rev 196274, logrotate/trunk/PKGBUILD)
logrotate/repos/testing-i686/logrotate.conf
(from rev 196274, logrotate/trunk/logrotate.conf)
logrotate/repos/testing-i686/logrotate.cron.daily
(from rev 196274, logrotate/trunk/logrotate.cron.daily)
logrotate/repos/testing-i686/paths.patch
(from rev 196274, logrotate/trunk/paths.patch)
logrotate/repos/testing-x86_64/
logrotate/repos/testing-x86_64/PKGBUILD
(from rev 196274, logrotate/trunk/PKGBUILD)
logrotate/repos/testing-x86_64/logrotate.conf
(from rev 196274, logrotate/trunk/logrotate.conf)
logrotate/repos/testing-x86_64/logrotate.cron.daily
(from rev 196274, logrotate/trunk/logrotate.cron.daily)
logrotate/repos/testing-x86_64/paths.patch
(from rev 196274, logrotate/trunk/paths.patch)
-------------------------------------+
testing-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++
testing-i686/logrotate.conf | 38 ++++++++++++++++++++++++++++
testing-i686/logrotate.cron.daily | 28 +++++++++++++++++++++
testing-i686/paths.patch | 25 ++++++++++++++++++
testing-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++
testing-x86_64/logrotate.conf | 38 ++++++++++++++++++++++++++++
testing-x86_64/logrotate.cron.daily | 28 +++++++++++++++++++++
testing-x86_64/paths.patch | 25 ++++++++++++++++++
8 files changed, 272 insertions(+)
Copied: logrotate/repos/testing-i686/PKGBUILD (from rev 196274, logrotate/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2013-10-10 12:58:19 UTC (rev 196275)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=logrotate
+pkgver=3.8.7
+pkgrel=1
+pkgdesc="Rotates system logs automatically"
+arch=('i686' 'x86_64')
+url="https://fedorahosted.org/logrotate/"
+license=('GPL')
+groups=('base')
+depends=('popt' 'gzip' 'acl')
+optdepends=('cron: scheduled log rotation')
+backup=('etc/logrotate.conf')
+source=("https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz"
+ 'paths.patch'
+ 'logrotate.conf'
+ 'logrotate.cron.daily')
+md5sums=('99e08503ef24c3e2e3ff74cc5f3be213'
+ 'e76526bcd6fc33c9d921e1cb1eff1ffb'
+ '86209d257c8b8bc0ae34d6f6ef057c0f'
+ 'dd5fd26724274fd9c827eadad60ff4c5')
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+
+ patch -p0 -i "$srcdir/paths.patch"
+
+ make WITH_ACL=yes RPM_OPT_FLAGS="$CFLAGS" EXTRA_LDFLAGS="$LDFLAGS"
+}
+
+check() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ make test
+}
+
+package() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ make PREFIX="$pkgdir" MANDIR="/usr/share/man" install
+ mv ${pkgdir}/usr/sbin ${pkgdir}/usr/bin
+
+ install -dm755 "$pkgdir/etc/logrotate.d"
+ install -Dm644 "$srcdir/logrotate.conf" "$pkgdir/etc/logrotate.conf"
+ install -Dm744 "$srcdir/logrotate.cron.daily" "$pkgdir/etc/cron.daily/logrotate"
+}
Copied: logrotate/repos/testing-i686/logrotate.conf (from rev 196274, logrotate/trunk/logrotate.conf)
===================================================================
--- testing-i686/logrotate.conf (rev 0)
+++ testing-i686/logrotate.conf 2013-10-10 12:58:19 UTC (rev 196275)
@@ -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.cron.daily (from rev 196274, logrotate/trunk/logrotate.cron.daily)
===================================================================
--- testing-i686/logrotate.cron.daily (rev 0)
+++ testing-i686/logrotate.cron.daily 2013-10-10 12:58:19 UTC (rev 196275)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable)
+NICE=19
+
+# 0 for none, 1 for real time, 2 for best-effort, 3 for idle
+IONICE_CLASS=2
+
+# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest
+IONICE_PRIORITY=7
+
+CMD_LOGROTATE="/usr/bin/logrotate /etc/logrotate.conf"
+
+if [ -x /usr/bin/nice ]; then
+ CMD_LOGROTATE="/usr/bin/nice -n ${NICE:-19} ${CMD_LOGROTATE}"
+fi
+
+if [ -x /usr/bin/ionice ]; then
+ IONICE_CMD="/usr/bin/ionice -c ${IONICE_CLASS:-2}"
+ if [ $IONICE_CLASS -ne 3 ]; then
+ IONICE_CMD="${IONICE_CMD} -n ${IONICE_PRIORITY:-7}"
+ fi
+ CMD_LOGROTATE="${IONICE_CMD} ${CMD_LOGROTATE}"
+fi
+
+${CMD_LOGROTATE}
+
+exit 0
Copied: logrotate/repos/testing-i686/paths.patch (from rev 196274, logrotate/trunk/paths.patch)
===================================================================
--- testing-i686/paths.patch (rev 0)
+++ testing-i686/paths.patch 2013-10-10 12:58:19 UTC (rev 196275)
@@ -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 196274, logrotate/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2013-10-10 12:58:19 UTC (rev 196275)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=logrotate
+pkgver=3.8.7
+pkgrel=1
+pkgdesc="Rotates system logs automatically"
+arch=('i686' 'x86_64')
+url="https://fedorahosted.org/logrotate/"
+license=('GPL')
+groups=('base')
+depends=('popt' 'gzip' 'acl')
+optdepends=('cron: scheduled log rotation')
+backup=('etc/logrotate.conf')
+source=("https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz"
+ 'paths.patch'
+ 'logrotate.conf'
+ 'logrotate.cron.daily')
+md5sums=('99e08503ef24c3e2e3ff74cc5f3be213'
+ 'e76526bcd6fc33c9d921e1cb1eff1ffb'
+ '86209d257c8b8bc0ae34d6f6ef057c0f'
+ 'dd5fd26724274fd9c827eadad60ff4c5')
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+
+ patch -p0 -i "$srcdir/paths.patch"
+
+ make WITH_ACL=yes RPM_OPT_FLAGS="$CFLAGS" EXTRA_LDFLAGS="$LDFLAGS"
+}
+
+check() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ make test
+}
+
+package() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ make PREFIX="$pkgdir" MANDIR="/usr/share/man" install
+ mv ${pkgdir}/usr/sbin ${pkgdir}/usr/bin
+
+ install -dm755 "$pkgdir/etc/logrotate.d"
+ install -Dm644 "$srcdir/logrotate.conf" "$pkgdir/etc/logrotate.conf"
+ install -Dm744 "$srcdir/logrotate.cron.daily" "$pkgdir/etc/cron.daily/logrotate"
+}
Copied: logrotate/repos/testing-x86_64/logrotate.conf (from rev 196274, logrotate/trunk/logrotate.conf)
===================================================================
--- testing-x86_64/logrotate.conf (rev 0)
+++ testing-x86_64/logrotate.conf 2013-10-10 12:58:19 UTC (rev 196275)
@@ -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.cron.daily (from rev 196274, logrotate/trunk/logrotate.cron.daily)
===================================================================
--- testing-x86_64/logrotate.cron.daily (rev 0)
+++ testing-x86_64/logrotate.cron.daily 2013-10-10 12:58:19 UTC (rev 196275)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable)
+NICE=19
+
+# 0 for none, 1 for real time, 2 for best-effort, 3 for idle
+IONICE_CLASS=2
+
+# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest
+IONICE_PRIORITY=7
+
+CMD_LOGROTATE="/usr/bin/logrotate /etc/logrotate.conf"
+
+if [ -x /usr/bin/nice ]; then
+ CMD_LOGROTATE="/usr/bin/nice -n ${NICE:-19} ${CMD_LOGROTATE}"
+fi
+
+if [ -x /usr/bin/ionice ]; then
+ IONICE_CMD="/usr/bin/ionice -c ${IONICE_CLASS:-2}"
+ if [ $IONICE_CLASS -ne 3 ]; then
+ IONICE_CMD="${IONICE_CMD} -n ${IONICE_PRIORITY:-7}"
+ fi
+ CMD_LOGROTATE="${IONICE_CMD} ${CMD_LOGROTATE}"
+fi
+
+${CMD_LOGROTATE}
+
+exit 0
Copied: logrotate/repos/testing-x86_64/paths.patch (from rev 196274, logrotate/trunk/paths.patch)
===================================================================
--- testing-x86_64/paths.patch (rev 0)
+++ testing-x86_64/paths.patch 2013-10-10 12:58:19 UTC (rev 196275)
@@ -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