mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
d19fd1a9a0
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>
34 lines
779 B
Bash
34 lines
779 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/audio/firefly/files/Attic/pkg-install.in,v 1.1 2008-10-19 15:59:16 miwi Exp $
|
|
# formerly $ FreeBSD: ports/audio/mt-daapd/pkg-install,v 1.1 2004/08/05 23:00:09 edwin Exp $
|
|
#
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin
|
|
|
|
case $2 in
|
|
|
|
PRE-INSTALL)
|
|
echo "---> Starting pre-install script:"
|
|
|
|
if pw showgroup "daapd" 2>/dev/null; then
|
|
echo "---> Using existing group \"daapd\""
|
|
else
|
|
echo "---> Adding group \"daapd\""
|
|
pw addgroup daapd -h - || exit 1
|
|
fi
|
|
|
|
|
|
# Create user if required
|
|
if pw showuser "daapd" 2>/dev/null; then
|
|
echo "---> Using existing user \"daapd\""
|
|
else
|
|
echo "---> Adding user \"daapd\""
|
|
pw adduser daapd -g daapd -h - \
|
|
-d "/nonexistent" -s "/sbin/nologin" -c "daapd User" || exit 1
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|