Ticket #24042: mpd.diff
File mpd.diff, 1.2 KB (added by milosh@…, 15 years ago) |
---|
-
Portfile
old new 56 56 platform darwin 10 { 57 57 patchfiles patch-src-output-osx_plugin.c 58 58 } 59 60 if {"darwin" == ${os.platform} && ${os.major} > 8} { 61 set mpduser _mpd 62 } else { 63 set mpduser mpd 64 } 65 59 66 startupitem.create yes 60 startupitem.start " ${prefix}/bin/mpd --no-daemon ${prefix}/etc/mpd.conf"61 startupitem.stop " ${prefix}/bin/mpd --kill"67 startupitem.start "su ${mpduser} -c \"${prefix}/bin/mpd --no-daemon ${prefix}/etc/mpd.conf\"" 68 startupitem.stop "su ${mpduser} -c \"${prefix}/bin/mpd --kill\"" 62 69 destroot.keepdirs ${destroot}${prefix}/var/lib/mpd/music \ 63 70 ${destroot}${prefix}/var/lib/mpd/playlists \ 64 71 ${destroot}${prefix}/var/log/mpd 65 72 post-destroot { 73 # Create new user for mpd: 74 addgroup ${mpduser} 75 set gid [existsgroup ${mpduser}] 76 adduser ${mpduser} gid=${gid} realname=Music\ Player\ Daemon 77 66 78 # ensure ${prefix}/var/[lib/mpd/[music,playlists],log/mpd] exist 67 xinstall -m 755 - d \79 xinstall -m 755 -o ${mpduser} -g ${mpduser} -d \ 68 80 ${destroot}${prefix}/var/lib/mpd/music \ 69 81 ${destroot}${prefix}/var/lib/mpd/playlists \ 70 82 ${destroot}${prefix}/var/log/mpd