2 mkdir -p /var/lib/forked-daapd
3 getent group daapd &>/dev/null || groupadd -r daapd >/dev/null
4 getent passwd daapd &>/dev/null || useradd -r -g daapd -d /var/lib/forked-daapd -s /bin/false -c forked-daapd daapd >/dev/null
5 mkdir -p $pkgdir/var/cache/forked-daapd
6 chown daapd:daapd $pkgdir/var/cache/forked-daapd
9 ==> The following daemons may be added to DAEMONS in /etc/rc.conf:
10 ==> forked-daapd: daapd server for iTunes and SoundBridge
12 ==> A daapd user has been created, if you want to use local audio
13 ==> output (with DACP) you should add daapd user to audio group:
14 ==> gpasswd -a daapd audio
16 ==> Please edit /etc/forked-daapd.conf to suit your needs
17 ==> (point it to your music library)
22 #stop forked-daapd if running (ignoring errors)
23 /etc/rc.d/forked-daapd stop || true
25 #should I delete /var/lib/forked-daapd ?
29 echo -n "==>> Removing daapd system user..."
30 getent passwd daapd &>/dev/null && userdel daapd >/dev/null
31 getent group daapd &>/dev/null && groupdel daapd >/dev/null