aboutsummaryrefslogtreecommitdiff
path: root/audio/murmur
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2011-06-25 19:55:42 +0000
committerChris Rees <crees@FreeBSD.org>2011-06-25 19:55:42 +0000
commit886d2d357a4a67eb6af3eadf40cc5e5dd0b3ae1e (patch)
tree56423bff20d50c1627b2caa49c29d5da553c65a9 /audio/murmur
parent45ab52dc7687200b9f4833fb9c72f699c50d0559 (diff)
downloadports-886d2d357a4a67eb6af3eadf40cc5e5dd0b3ae1e.tar.gz
ports-886d2d357a4a67eb6af3eadf40cc5e5dd0b3ae1e.zip
Notes
Diffstat (limited to 'audio/murmur')
-rw-r--r--audio/murmur/Makefile2
-rw-r--r--audio/murmur/pkg-deinstall10
-rw-r--r--audio/murmur/pkg-install24
3 files changed, 2 insertions, 34 deletions
diff --git a/audio/murmur/Makefile b/audio/murmur/Makefile
index 8b344c9b3a95..46f145558e55 100644
--- a/audio/murmur/Makefile
+++ b/audio/murmur/Makefile
@@ -18,6 +18,8 @@ COMMENT= Murmur is the server component of Mumble
BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS= protobuf.7:${PORTSDIR}/devel/protobuf
+USERS= ${PORTNAME}
+GROUPS= ${USERS}
USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build corelib network xml sql sql-sqlite3_run
diff --git a/audio/murmur/pkg-deinstall b/audio/murmur/pkg-deinstall
index 4ee32a8205ad..e6da8c4bb052 100644
--- a/audio/murmur/pkg-deinstall
+++ b/audio/murmur/pkg-deinstall
@@ -2,20 +2,10 @@
# $FreeBSD$
PATH=/bin:/usr/sbin
-USER=murmur
-GROUP=murmur
RUNDIR=/var/run/murmur
case $2 in
POST-DEINSTALL)
- if pw group show ${GROUP} 2>&1 > /dev/null; then
- echo "You should manually remove the \"${GROUP}\" group."
- fi
-
- if pw user show ${USER} 2>&1 > /dev/null; then
- echo "You should manually remove the \"${USER}\" user."
- fi
-
rm -Rf ${RUNDIR}
;;
esac
diff --git a/audio/murmur/pkg-install b/audio/murmur/pkg-install
index 67483e1112a9..93a652d7170a 100644
--- a/audio/murmur/pkg-install
+++ b/audio/murmur/pkg-install
@@ -2,36 +2,12 @@
# $FreeBSD$
PATH=/bin:/usr/sbin
-USER=murmur
-GROUP=murmur
-HOME=/nonexistent
LOGDIR=/var/log/murmur
RUNDIR=/var/run/murmur
DBDIR=/var/db/murmur
case $2 in
PRE-INSTALL)
- if pw group show ${GROUP} 2> /dev/null; then
- else
- if pw groupadd ${GROUP}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
- fi
-
- if pw user show ${USER} 2> /dev/null; then
- else
- if pw useradd ${USER} -g ${GROUP} -h - \
- -d ${HOME} -c "Murmur"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
mkdir -m 750 ${LOGDIR} ${DBDIR} ${RUNDIR} 2> /dev/null
chown -R ${USER}:${GROUP} ${LOGDIR} ${DBDIR} ${RUNDIR}