diff options
author | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2011-02-25 14:08:09 +0000 |
---|---|---|
committer | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2011-02-25 14:08:09 +0000 |
commit | 94017171933ebb85ada6cd1fc9d3b3a1aad8cda6 (patch) | |
tree | e76c43cf7362c20f235b81cd0b0a79c9d46b2638 /audio/murmur | |
parent | 8a43efc26630294d4946196400d2980f0aa94327 (diff) | |
download | ports-94017171933ebb85ada6cd1fc9d3b3a1aad8cda6.tar.gz ports-94017171933ebb85ada6cd1fc9d3b3a1aad8cda6.zip |
Notes
Diffstat (limited to 'audio/murmur')
-rw-r--r-- | audio/murmur/Makefile | 3 | ||||
-rw-r--r-- | audio/murmur/distinfo | 5 | ||||
-rw-r--r-- | audio/murmur/files/murmur.in | 8 | ||||
-rw-r--r-- | audio/murmur/pkg-deinstall | 21 | ||||
-rw-r--r-- | audio/murmur/pkg-install | 22 | ||||
-rw-r--r-- | audio/murmur/pkg-plist | 1 |
6 files changed, 30 insertions, 30 deletions
diff --git a/audio/murmur/Makefile b/audio/murmur/Makefile index 375bbe09f42f..6fe6058c87bd 100644 --- a/audio/murmur/Makefile +++ b/audio/murmur/Makefile @@ -6,8 +6,7 @@ # PORTNAME= murmur -PORTVERSION= 1.2.2 -PORTREVISION= 2 +PORTVERSION= 1.2.3 CATEGORIES= audio net MASTER_SITES= SF/mumble/Mumble/${PORTVERSION} DISTNAME= mumble-${PORTVERSION} diff --git a/audio/murmur/distinfo b/audio/murmur/distinfo index fbf6d7465a52..1d52c12026b9 100644 --- a/audio/murmur/distinfo +++ b/audio/murmur/distinfo @@ -1,3 +1,2 @@ -MD5 (mumble-1.2.2.tar.gz) = de30ee85170e183b66568b53b04c5727 -SHA256 (mumble-1.2.2.tar.gz) = 2c564e3d5b7481129482f2365375a2dc77e134c0c00012073cfdfbeadaa49be8 -SIZE (mumble-1.2.2.tar.gz) = 2920587 +SHA256 (mumble-1.2.3.tar.gz) = 05895122ae4abec3fb62ef24ed9d167ffd768e7080ed179c8bf3afca96d18a5c +SIZE (mumble-1.2.3.tar.gz) = 3448053 diff --git a/audio/murmur/files/murmur.in b/audio/murmur/files/murmur.in index 2c1881762bce..7b8b034e9147 100644 --- a/audio/murmur/files/murmur.in +++ b/audio/murmur/files/murmur.in @@ -11,12 +11,16 @@ # # murmur_enable (bool): Set to NO by default. # Set it to YES to enable murmur. +# murmur_flags (str): Set to "" by default. +# Extra flags passed to start command. # . /etc/rc.subr # Set some defaults -murmur_user=${murmur_user:-"murmur"} +: ${murmur_enable="NO"} +: ${murmur_user="murmur"} +: ${murmur_flags=""} name=murmur rcvar=${name}_enable @@ -27,6 +31,4 @@ pidfile="/var/run/murmur/murmur.pid" load_rc_config $name -: ${murmur_enable="NO"} - run_rc_command "$1" diff --git a/audio/murmur/pkg-deinstall b/audio/murmur/pkg-deinstall new file mode 100644 index 000000000000..4ee32a8205ad --- /dev/null +++ b/audio/murmur/pkg-deinstall @@ -0,0 +1,21 @@ +#!/bin/sh +# $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 badc0af8471c..67483e1112a9 100644 --- a/audio/murmur/pkg-install +++ b/audio/murmur/pkg-install @@ -37,26 +37,4 @@ case $2 in chown -R ${USER}:${GROUP} ${LOGDIR} ${DBDIR} ${RUNDIR} ;; - - POST-DEINSTALL) - if pw group show ${GROUP} 2> /dev/null; then - if pw group del ${GROUP}; then - echo "Removed group \"${GROUP}\"." - else - echo "Removing group \"${GROUP}\" failed..." - exit 1 - fi - fi - - if pw user show ${USER} 2> /dev/null; then - if pw userdel ${USER}; then - echo "Removed user \"${USER}\"." - else - echo "Removing user \"${USER}\" failed..." - exit 1 - fi - fi - - rm -Rf ${PIDDIR} - ;; esac diff --git a/audio/murmur/pkg-plist b/audio/murmur/pkg-plist index c956edab8ede..f963cdb8e169 100644 --- a/audio/murmur/pkg-plist +++ b/audio/murmur/pkg-plist @@ -1,3 +1,4 @@ +@stopdaemon murmur @unexec if cmp -s %D/etc/murmur.ini.sample %D/etc/murmur.ini; then rm -f %D/etc/murmur.ini; fi etc/murmur.ini.sample @exec if [ ! -f %D/etc/murmur.ini ] ; then cp -p %D/%F %B/murmur.ini; fi |