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 ==> forked-daapd.service has been added to your /etc/avahi/services
14 ==> Please edit /etc/forked-daapd.conf to suit your needs
15 ==> (point it to your music library)
20 #stop forked-daapd if running (ignoring errors)
21 /etc/rc.d/forked-daapd stop || true
23 #should I delete /var/lib/forked-daapd ?
27 getent passwd forked-daapd &>/dev/null && userdel forked-daapd >/dev/null
28 getent group forked-daapd &>/dev/null && groupdel forked-daapd >/dev/null