pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/audio/musicpd
Module Name: pkgsrc
Committed By: pho
Date: Fri Nov 26 15:14:41 UTC 2021
Modified Files:
pkgsrc/audio/musicpd: Makefile PLIST
Added Files:
pkgsrc/audio/musicpd/files: mpd.logrotate
Log Message:
Add an example logrotate configuration file
mpd creates its own log file but doesn't rotate it on its own. It will
get huge if you listen to music all day and night.
To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 pkgsrc/audio/musicpd/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/audio/musicpd/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/musicpd/files/mpd.logrotate
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/audio/musicpd/Makefile
diff -u pkgsrc/audio/musicpd/Makefile:1.253 pkgsrc/audio/musicpd/Makefile:1.254
--- pkgsrc/audio/musicpd/Makefile:1.253 Tue Nov 16 14:36:21 2021
+++ pkgsrc/audio/musicpd/Makefile Fri Nov 26 15:14:41 2021
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.253 2021/11/16 14:36:21 wiz Exp $
+# $NetBSD: Makefile,v 1.254 2021/11/26 15:14:41 pho Exp $
DISTNAME= mpd-0.23.4
+PKGREVISION= 1
PKGNAME= ${DISTNAME:S/mpd/musicpd/}
CATEGORIES= audio
MASTER_SITES= https://www.musicpd.org/download/mpd/${PKGVERSION_NOREV:R}/
@@ -68,7 +69,8 @@ SUBST_SED.oss+= -e "s,/dev/sound/dsp,${
.endif
EGDIR= ${PREFIX}/share/examples/mpd
-CONF_FILES= ${EGDIR}/mpd.conf ${PKG_SYSCONFDIR}/mpd.conf
+CONF_FILES+= ${EGDIR}/mpd.conf ${PKG_SYSCONFDIR}/mpd.conf
+CONF_FILES+= ${EGDIR}/logrotate.d/mpd ${PKG_SYSCONFDIR}/logrotate.d/mpd
RCD_SCRIPTS= mpd
FILES_SUBST+= MPD_USER=${MPD_USER:Q}
@@ -103,7 +105,7 @@ SUBST_FILES.sphinx= doc/meson.build
SUBST_MESSAGE.sphinx= Fixing sphinx binary name.
SUBST_SED.sphinx+= -e "s,sphinx-build,sphinx-build-${PYVERSSUFFIX},"
-INSTALLATION_DIRS= ${EGDIR}
+INSTALLATION_DIRS= ${EGDIR} ${EGDIR}/logrotate.d
PYTHON_FOR_BUILD_ONLY= tool
@@ -115,6 +117,7 @@ post-extract:
post-install:
${INSTALL_DATA} ${WRKSRC}/mpd.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${FILESDIR}/mpd.logrotate ${DESTDIR}${EGDIR}/logrotate.d/mpd
.include "../../devel/meson/build.mk"
BUILDLINK_API_DEPENDS.flac+= flac>=1.2
Index: pkgsrc/audio/musicpd/PLIST
diff -u pkgsrc/audio/musicpd/PLIST:1.17 pkgsrc/audio/musicpd/PLIST:1.18
--- pkgsrc/audio/musicpd/PLIST:1.17 Mon Nov 1 09:51:07 2021
+++ pkgsrc/audio/musicpd/PLIST Fri Nov 26 15:14:41 2021
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2021/11/01 09:51:07 wiz Exp $
+@comment $NetBSD: PLIST,v 1.18 2021/11/26 15:14:41 pho Exp $
bin/mpd
man/man1/mpd.1
man/man5/mpd.conf.5
@@ -42,6 +42,7 @@ share/doc/mpd/html/protocol.html
share/doc/mpd/html/search.html
share/doc/mpd/html/searchindex.js
share/doc/mpd/html/user.html
+share/examples/mpd/logrotate.d/mpd
share/examples/mpd/mpd.conf
share/examples/mpd/mpdconf.example
share/icons/hicolor/scalable/apps/mpd.svg
Added files:
Index: pkgsrc/audio/musicpd/files/mpd.logrotate
diff -u /dev/null pkgsrc/audio/musicpd/files/mpd.logrotate:1.1
--- /dev/null Fri Nov 26 15:14:41 2021
+++ pkgsrc/audio/musicpd/files/mpd.logrotate Fri Nov 26 15:14:41 2021
@@ -0,0 +1,8 @@
+# $NetBSD: mpd.logrotate,v 1.1 2021/11/26 15:14:41 pho Exp $
+
+/var/log/mpd.log {
+ missingok
+ notifempty
+ copytruncate
+ compress
+}
Home |
Main Index |
Thread Index |
Old Index