1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/audio/mt-daapd/pkg-deinstall
Edwin Groothuis ab42fbb1c7 Fwd: mt-daapd patch
harti suggest that you will be able to commit this port
	update to ports colllection?

Submtited by:	Meno Abels <meno.abels@adviser.com>
2004-08-05 23:00:10 +00:00

28 lines
727 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/audio/mt-daapd/Attic/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