From owner-svn-ports-head@FreeBSD.ORG Sun Jul 20 14:48:55 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E2031E8; Sun, 20 Jul 2014 14:48:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFA542A86; Sun, 20 Jul 2014 14:48:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6KEms1M088996; Sun, 20 Jul 2014 14:48:54 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6KEms7u088986; Sun, 20 Jul 2014 14:48:54 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201407201448.s6KEms7u088986@svn.freebsd.org> From: Chris Rees Date: Sun, 20 Jul 2014 14:48:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r362323 - in head/audio/musicpd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2014 14:48:55 -0000 Author: crees Date: Sun Jul 20 14:48:53 2014 New Revision: 362323 URL: http://svnweb.freebsd.org/changeset/ports/362323 QAT: https://qat.redports.org/buildarchive/r362323/ Log: Give up trying to make MPDDIR, and let pw useradd do it. Stop making it customisable via make.conf; pointless with package installations. Modernise slightly. Correct IGNORE message-- there is no real problem with using .error here, but since it was mysteriously changed without notice assume that there was an extremely good reason for it. Modified: head/audio/musicpd/Makefile head/audio/musicpd/files/musicpd.in head/audio/musicpd/files/pkg-message.in head/audio/musicpd/pkg-plist Modified: head/audio/musicpd/Makefile ============================================================================== --- head/audio/musicpd/Makefile Sun Jul 20 14:44:10 2014 (r362322) +++ head/audio/musicpd/Makefile Sun Jul 20 14:48:53 2014 (r362323) @@ -124,18 +124,12 @@ WAVPACK_LIB_DEPENDS=libwavpack.so:${PORT WILDMIDI_CONFIGURE_ENABLE=wildmidi WILDMIDI_LIB_DEPENDS=libWildMidi.so:${PORTSDIR}/audio/wildmidi -MPDDIR?= /var/mpd MPDUSER?= mpd MPDGROUP?= mpd USERS= ${MPDUSER} GROUPS= ${MPDGROUP} -PLIST_SUB= MPDUSER=${MPDUSER} \ - MPDDIR=${MPDDIR} \ - MPDGROUP=${MPDGROUP} -SUB_LIST+= MPDDIR=${MPDDIR} - .include .ifdef MPDCONF @@ -143,7 +137,7 @@ IGNORE=Please remove the MPDCONF line fr .endif .if exists(${PREFIX}/etc/mpd.conf) -MSG=You still have ${PREFIX}/etc/mpd.conf in existence-- this file is no longer used by musicpd. +MSG=does not expect ${PREFIX}/etc/mpd.conf to exist. .if !exists(${PREFIX}/etc/musicpd.conf) IGNORE=${MSG} Move it to ${PREFIX}/etc/musicpd.conf. .else @@ -191,8 +185,8 @@ CONFIGURE_ARGS+=--disable-shout .endif post-patch: -# Replace ~/ with MPDDIR and make musicpd run as mpd by default - @${REINPLACE_CMD} -e 's,^#\([^"]*"\)~/,\1${MPDDIR}/,g' \ +# Replace ~/ with /var/mpd and make musicpd run as mpd by default + @${REINPLACE_CMD} -e 's,^#\([^"]*"\)~/,\1/var/mpd,g' \ -e 's,^#\(user[^"]*"\)nobody,\1${MPDUSER},g' \ ${WRKSRC}/doc/mpdconf.example # Uncomment OSS audio output part from MPDCONF; dragons! @@ -227,16 +221,5 @@ do-install: ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}/${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example \ ${STAGEDIR}/${PREFIX}/etc/${PORTNAME}.conf.sample - ${PRINTF} "%s\n%s\n%s\n" "@cwd /" "@owner ${MPDUSER}" \ - "@group ${MPDGROUP}" >> ${TMPPLIST} - cd ${STAGEDIR} && ${MKDIR} -v ${MPDDIR:S,^/,,}/.mpd | ${SORT} -r | \ - ${SED} 's,^,@dirrmtry ,' >> ${TMPPLIST} -.ifndef WITH_PKGNG - # Cute, we can't use @dirrmtry with pkg_old... - # Remove once all using pkgng - ${REINPLACE_CMD} \ - 's,^@dirrmtry \(.*\),@unexec rmdir \1 > /dev/null || :,' \ - ${TMPPLIST} -.endif .include Modified: head/audio/musicpd/files/musicpd.in ============================================================================== --- head/audio/musicpd/files/musicpd.in Sun Jul 20 14:44:10 2014 (r362322) +++ head/audio/musicpd/files/musicpd.in Sun Jul 20 14:48:53 2014 (r362323) @@ -30,7 +30,7 @@ musicpd_getpidfile() if get_pidfile_from_conf pid_file %%PREFIX%%/etc/musicpd.conf ; then pidfile="$_pidfile_from_conf" else - pidfile="%%MPDDIR%%/.mpd/pid" + pidfile="/var/mpd/.mpd/pid" fi } Modified: head/audio/musicpd/files/pkg-message.in ============================================================================== --- head/audio/musicpd/files/pkg-message.in Sun Jul 20 14:44:10 2014 (r362322) +++ head/audio/musicpd/files/pkg-message.in Sun Jul 20 14:48:53 2014 (r362323) @@ -17,7 +17,7 @@ Then start the server with or reboot. The example configuration of MPD server requires music files to -be stored in the %%MPDDIR%%/music directory. +be stored in the /var/mpd/music directory. NOTE: The musicpd server is pretty useless without a client. You might want to install one of the following ports too: Modified: head/audio/musicpd/pkg-plist ============================================================================== --- head/audio/musicpd/pkg-plist Sun Jul 20 14:44:10 2014 (r362322) +++ head/audio/musicpd/pkg-plist Sun Jul 20 14:48:53 2014 (r362323) @@ -1,6 +1,4 @@ bin/musicpd -@unexec if cmp -s %D/etc/musicpd.conf.sample %D/etc/musicpd.conf; then rm -f %D/etc/musicpd.conf; fi -etc/musicpd.conf.sample -@exec if [ ! -f %B/musicpd.conf ] ; then cp -p %D/%F %B/musicpd.conf; fi +@sample etc/musicpd.conf.sample man/man1/musicpd.1.gz man/man5/musicpd.conf.5.gz