freebsd-ports/audio/firefly/files/pkg-deinstall.in
Martin Wilke d19fd1a9a0 Firefly (mt-daapd) is an open-source media server for the Roku SoundBridge
and Apple iTunes. It runs on POSIX platforms as well as Win32. It supports
server-side transcoding and other advanced features.

WWW: http://www.fireflymediaserver.org/

PR:		ports/127701
Submitted by:	Mark Foster <mark at foster.cc>
2008-10-19 15:59:16 +00:00

28 lines
705 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 /usr/local/etc/mt-daapd.conf ]; then
echo '---> You seem to have made some custom daapd configuration.'
echo '---> The "daapd" user and "daapd" group were therefore not deleted.'
echo '---> You may delete them with "pw groupdel daapd; pw userdel daapd".'
else
echo '---> Removing group "daapd"'
/usr/sbin/pw groupdel -n daapd
echo '---> Removing user "daapd"'
echo 'y' | /usr/sbin/pw userdel -n daapd
fi
;;
esac