summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2013-04-10 12:11:44 +0000
committerChristoph Mende <angelos@gentoo.org>2013-04-10 12:11:44 +0000
commit5bd1df87dfbd62af3dfbe538c60f4d35edc6cd76 (patch)
treeac60858524991321cb00d2a6325b01601ccca8f0 /media-sound
parentmigration to distutils-r1, exclusion of rogue tests from testsuite (diff)
downloadgentoo-2-5bd1df87dfbd62af3dfbe538c60f4d35edc6cd76.tar.gz
gentoo-2-5bd1df87dfbd62af3dfbe538c60f4d35edc6cd76.tar.bz2
gentoo-2-5bd1df87dfbd62af3dfbe538c60f4d35edc6cd76.zip
Add logrotate file (bug #337511)
(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 84F20B43)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/mpd/ChangeLog8
-rw-r--r--media-sound/mpd/files/mpd.logrotate6
-rw-r--r--media-sound/mpd/mpd-0.17.4-r2.ebuild (renamed from media-sound/mpd/mpd-0.17.4-r1.ebuild)5
3 files changed, 17 insertions, 2 deletions
diff --git a/media-sound/mpd/ChangeLog b/media-sound/mpd/ChangeLog
index af69157e057a..047108a8081d 100644
--- a/media-sound/mpd/ChangeLog
+++ b/media-sound/mpd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/mpd
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.306 2013/04/10 11:10:45 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.307 2013/04/10 12:11:44 angelos Exp $
+
+*mpd-0.17.4-r2 (10 Apr 2013)
+
+ 10 Apr 2013; Christoph Mende <angelos@gentoo.org> +files/mpd.logrotate,
+ +mpd-0.17.4-r2.ebuild, -mpd-0.17.4-r1.ebuild, mpd-0.17.4.ebuild:
+ Add logrotate file (bug #337511)
*mpd-0.17.4-r1 (10 Apr 2013)
diff --git a/media-sound/mpd/files/mpd.logrotate b/media-sound/mpd/files/mpd.logrotate
new file mode 100644
index 000000000000..94933dfb1f80
--- /dev/null
+++ b/media-sound/mpd/files/mpd.logrotate
@@ -0,0 +1,6 @@
+/var/lib/mpd/log {
+ missingok
+ postrotate
+ [ -f /var/run/mpd.pid ] && /bin/kill -HUP `cat /var/run/mpd.pid`
+ endscript
+}
diff --git a/media-sound/mpd/mpd-0.17.4-r1.ebuild b/media-sound/mpd/mpd-0.17.4-r2.ebuild
index e8ff58d0d8a8..5b4dede3c62a 100644
--- a/media-sound/mpd/mpd-0.17.4-r1.ebuild
+++ b/media-sound/mpd/mpd-0.17.4-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/mpd-0.17.4-r1.ebuild,v 1.1 2013/04/10 11:10:45 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/mpd-0.17.4-r2.ebuild,v 1.1 2013/04/10 12:11:44 angelos Exp $
EAPI=4
inherit eutils flag-o-matic linux-info multilib readme.gentoo systemd user
@@ -182,6 +182,9 @@ src_install() {
"${ED}"/etc/mpd.conf || die "sed failed"
fi
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotate ${PN}
+
use prefix || diropts -m0755 -o mpd -g audio
dodir /var/lib/mpd
keepdir /var/lib/mpd