mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
50642a2603
daapd scans a directory for music files and makes them available via the Apple proprietary protocol DAAP. DAAP clients can browse the directory and retrieve individual files, either by streaming or by downloading them. PR: 58352 Submitted by: Lars Thegler <lars@thegler.dk> Approved by: krion (implicit)
28 lines
620 B
Bash
28 lines
620 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin
|
|
|
|
case $2 in
|
|
|
|
POST-DEINSTALL)
|
|
echo '---> Starting post-deinstall script:'
|
|
|
|
if [ -f %%PREFIX%%/etc/daapd.conf ]; then
|
|
echo '---> You seem to have made some custom daapd configuration.'
|
|
echo '---> The "%%USER%%" user and "%%GROUP%%" group were therefore not deleted.'
|
|
echo '---> You may delete them with "pw groupdel %%GROUP%%; pw userdel %%USER%%".'
|
|
|
|
else
|
|
echo '---> Removing group "%%GROUP%%"'
|
|
/usr/sbin/pw groupdel -n %%GROUP%%
|
|
echo '---> Removing user "%%USER%%"'
|
|
echo 'y' | /usr/sbin/pw userdel -n %%USER%%
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|