b817e22842
- convert to USE_RC_SUBR - make sure thread libs are detected/used correctly on all OSVERSIONs - change default database directory to /var/db/mt-daapd. - change default mp3 dir to ${PREFIX}/share/mt-daap - tell users whatvariables to they can set to customize their installation - move pkg-deinstall, pkg-install and files/mt-daapd.conf in FILESDIR to be able to respect user choices. - portlint PR: ports/95190 reworked extensively by me Submitted by: Alexander Botero-Lowry <alex@foxybanana.com> (now maintianer)
28 lines
733 B
Bash
28 lines
733 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
# formerly $ FreeBSD: ports/audio/mt-daapd/pkg-deinstall,v 1.1 2004/08/05 23:00:09 edwin Exp $
|
|
#
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin
|
|
|
|
case $2 in
|
|
|
|
POST-DEINSTALL)
|
|
echo '---> Starting post-deinstall script:'
|
|
|
|
if [ -f %%PREFIX%%/etc/mt-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
|