aboutsummaryrefslogtreecommitdiff
path: root/audio/musicpd/pkg-plist
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2013-04-30 20:48:02 +0000
committerChris Rees <crees@FreeBSD.org>2013-04-30 20:48:02 +0000
commiteae6035f80cdb6fe98517a4a1567385ec28747bc (patch)
treebb0df8070cb608f452d1a883afc91c67b22b3e80 /audio/musicpd/pkg-plist
parentcb28a2affcd36ee73f1c865974da3ff939c57da9 (diff)
downloadports-eae6035f80cdb6fe98517a4a1567385ec28747bc.tar.gz
ports-eae6035f80cdb6fe98517a4a1567385ec28747bc.zip
Notes
Diffstat (limited to 'audio/musicpd/pkg-plist')
-rw-r--r--audio/musicpd/pkg-plist7
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/musicpd/pkg-plist b/audio/musicpd/pkg-plist
index ab28f37be532..db2935a61945 100644
--- a/audio/musicpd/pkg-plist
+++ b/audio/musicpd/pkg-plist
@@ -1,5 +1,6 @@
bin/musicpd
-@unexec if cmp -s %D/etc/%%MPDCONF%%.sample %D/etc/%%MPDCONF%%; then rm -f %D/etc/%%MPDCONF%%; fi
-etc/%%MPDCONF%%.sample
-@exec if [ ! -f %D/etc/%%MPDCONF%% ] ; then cp -p %D/%F %B/%%MPDCONF%%; fi
+@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
@exec install -d -o %%MPDUSER%% -g %%MPDGROUP%% %%MPDDIR%% %%MPDDIR%%/.mpd
+@unexec rmdir -p %%MPDDIR%%/.mpd 2>/dev/null || true