[PC-BSD Commits] r11993 - pbi/modules/audio/musicpd/scripts

svn at pcbsd.org svn at pcbsd.org
Mon Aug 8 11:51:04 PDT 2011


Author: kenmoore
Date: 2011-08-08 11:51:04 -0700 (Mon, 08 Aug 2011)
New Revision: 11993

Modified:
   pbi/modules/audio/musicpd/scripts/post-install.sh
   pbi/modules/audio/musicpd/scripts/post-portmake.sh
Log:
Fix the install scripts for musicpd to account for new directory locations


Modified: pbi/modules/audio/musicpd/scripts/post-install.sh
===================================================================
--- pbi/modules/audio/musicpd/scripts/post-install.sh	2011-08-08 18:38:38 UTC (rev 11992)
+++ pbi/modules/audio/musicpd/scripts/post-install.sh	2011-08-08 18:51:04 UTC (rev 11993)
@@ -38,12 +38,12 @@
 fi
 
 
-mkdir -p /home/mpd/Music >/dev/null 2>/dev/null
-mkdir -p /home/mpd/playlists >/dev/null 2>/dev/null
-chmod 777 /home/mpd/Music
-chown -R mpd:mpd /home/mpd
+mkdir -p /var/mpd/music >/dev/null 2>/dev/null
+mkdir -p /var/mpd/.mpd/playlists >/dev/null 2>/dev/null
+#chmod 777 /var/mpd/music
+chown -R mpd:mpd /var/mpd
 
-ln -s /home/mpd/Music ${PBI_PROGDIRPATH}/Music
+#ln -s /var/mpd/Music ${PBI_PROGDIRPATH}/Music
 
 
 echo "musicpd_enable=\"YES\"" >>/etc/rc.conf

Modified: pbi/modules/audio/musicpd/scripts/post-portmake.sh
===================================================================
--- pbi/modules/audio/musicpd/scripts/post-portmake.sh	2011-08-08 18:38:38 UTC (rev 11992)
+++ pbi/modules/audio/musicpd/scripts/post-portmake.sh	2011-08-08 18:51:04 UTC (rev 11993)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-sed -i.bak "s,/bin/mpd,/${PBI_FAKEBINDIR}/mpd,g" ${PBI_PROGDIRPATH}/etc/rc.d/musicpd
+sed -i.bak "s,/bin/musicpd,/${PBI_FAKEBINDIR}/musicpd,g"${PBI_PROGDIRPATH}/etc/rc.d/musicpd
 chmod 755 ${PBI_PROGDIRPATH}/bin/musicpd
 
 sed -i.bak "s,LOGIN,LOGIN DAEMON snddetect,g" ${PBI_PROGDIRPATH}/etc/rc.d/musicpd



More information about the Commits mailing list