ports/157100: New port: audio/umurmur - Newest version of the minimalistic mumble compatible VoIP daemon

Aaron Hurt ahurt at anbcs.com
Tue Jun 21 05:30:12 UTC 2011


The following reply was made to PR ports/157100; it has been noted by GNATS.

From: Aaron Hurt <ahurt at anbcs.com>
To: bug-followup at FreeBSD.org, ahurt at anbcs.com
Cc:  
Subject: Re: ports/157100: New port: audio/umurmur - Newest version of the
 minimalistic mumble compatible VoIP daemon
Date: Tue, 21 Jun 2011 00:22:08 -0500

 This is a multi-part message in MIME format.
 --------------020700020805030702060001
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Some minor cleanups after running through portlint ... The dependency 
 protobuf-c has also now been committed.  Thank You.
 
 --------------020700020805030702060001
 Content-Type: application/x-shar;
  name="umurmur.shar"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="umurmur.shar"
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	umurmur
 #	umurmur/pkg-deinstall
 #	umurmur/pkg-descr
 #	umurmur/distinfo
 #	umurmur/Makefile
 #	umurmur/files
 #	umurmur/files/patch-conf.c
 #	umurmur/files/patch-umurmur.conf.example
 #	umurmur/files/umurmur.in
 #	umurmur/files/patch-configure
 #	umurmur/pkg-install
 #	umurmur/pkg-plist
 #
 echo c - umurmur
 mkdir -p umurmur > /dev/null 2>&1
 echo x - umurmur/pkg-deinstall
 sed 's/^X//' >umurmur/pkg-deinstall << '6984c10496d34f572350ef387382a60b'
 X#!/bin/sh
 X# $FreeBSD$
 X
 XPATH=/bin:/usr/sbin
 XUSER=umurmur
 XGROUP=umurmur
 XRUNDIR=/var/run/umurmur
 X
 Xcase $2 in
 X	POST-DEINSTALL)
 X		if pw group show ${GROUP} 2>&1 > /dev/null; then
 X			echo "You should manually remove the \"${GROUP}\" group."
 X		fi
 X
 X		if pw user show ${USER} 2>&1 > /dev/null; then
 X			echo "You should manually remove the \"${USER}\" user."
 X		fi
 X
 X		rm -Rf ${RUNDIR}
 X		;;
 Xesac
 6984c10496d34f572350ef387382a60b
 echo x - umurmur/pkg-descr
 sed 's/^X//' >umurmur/pkg-descr << '517dbec43ca9aaa2095eb74b79f4309d'
 XuMurmur is a minimalistic Mumble server primarily targeted to run on
 Xrouters with an open OS like OpenWRT.
 XThe server part of Mumble is called Murmur, hence the name uMurmur.
 X
 XWWW:	http://http://code.google.com/p/umurmur/
 517dbec43ca9aaa2095eb74b79f4309d
 echo x - umurmur/distinfo
 sed 's/^X//' >umurmur/distinfo << '78af8f423aa88eb2acf20916a48fcf2f'
 XSHA256 (umurmur-0.2.7.tar.gz) = 4d0ee08d91d278f9ee1ad9275c6dd6beb3aa4194f077f5ffa1053dffd4cc275d
 XSIZE (umurmur-0.2.7.tar.gz) = 157348
 78af8f423aa88eb2acf20916a48fcf2f
 echo x - umurmur/Makefile
 sed 's/^X//' >umurmur/Makefile << 'ef51a564038c019360a007a33beb313d'
 X# New ports collection makefile for:	umurmur
 X# Date created:		2011-05-15
 X# Whom:			Aaron Hurt <ahurt at anbcs.com>
 X# Contributer:		Ayumi Mitsui <ayu at commun.jp>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	umurmur
 XPORTVERSION=	0.2.7
 XCATEGORIES=	audio
 XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 X
 XMAINTAINER=	ahurt at anbcs.com
 XCOMMENT=	Minimalistic Murmur (Mumble server)
 X
 XLIB_DEPENDS=	config.9:${PORTSDIR}/devel/libconfig \
 X		protobuf-c.0:${PORTSDIR}/devel/protobuf-c
 X
 XUSE_GMAKE=	yes
 XGNU_CONFIGURE=	yes
 XUSE_OPENSSL=	yes
 X
 XCFLAGS+=	-I${LOCALBASE}/include -Wall
 XLDFLAGS+=	-L${LOCALBASE}/lib -lcrypto -lssl -lconfig
 X
 X#CONFIGURE_ENV=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
 X
 XCONFIGURE_ARGS=	--prefix=${PREFIX} --with-ssl=openssl
 X
 XUSE_RC_SUBR=	umurmur
 X
 Xpost-patch:
 X	@${REINPLACE_CMD} -e 's|"/etc/|"${PREFIX}/etc/|' ${WRKSRC}/umurmur.conf.example
 X
 Xpre-su-install:
 X	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 X
 Xpost-install:
 X	@${MKDIR} ${PREFIX}/etc/umurmur
 X	@${INSTALL_DATA} ${WRKSRC}/umurmur.conf.example ${PREFIX}/etc/umurmur/umurmur.conf.sample
 X	@if [ ! -f ${PREFIX}/etc/umurmur/umurmur.conf ]; then \
 X		${CP} -p ${PREFIX}/etc/umurmur/umurmur.conf.sample ${PREFIX}/etc/umurmur/umurmur.conf; \
 X	fi
 X
 X.include <bsd.port.mk>
 ef51a564038c019360a007a33beb313d
 echo c - umurmur/files
 mkdir -p umurmur/files > /dev/null 2>&1
 echo x - umurmur/files/patch-conf.c
 sed 's/^X//' >umurmur/files/patch-conf.c << '585c9b6e6d118262b334305b2622a856'
 X--- src/conf.c.orig	2011-04-18 13:19:33.000000000 -0500
 X+++ src/conf.c	2011-05-15 23:13:14.828964534 -0500
 X@@ -72,23 +72,23 @@
 X 	case CERTIFICATE:
 X 		setting = config_lookup(&configuration, "certificate");
 X 		if (!setting)
 X-			return "/etc/umurmur/certificate.crt";
 X+			return "/usr/local/etc/umurmur/certificate.crt";
 X 		else {
 X 			if ((strsetting = config_setting_get_string(setting)) != NULL)
 X 				return strsetting;
 X 			else
 X-				return "/etc/umurmur/certificate.crt";
 X+				return "/usr/local/etc/umurmur/certificate.crt";
 X 		}
 X 		break;
 X 	case KEY:
 X 		setting = config_lookup(&configuration, "private_key");
 X 		if (!setting)
 X-			return "/etc/umurmur/private_key.key";
 X+			return "/usr/local/etc/umurmur/private_key.key";
 X 		else {
 X 			if ((strsetting = config_setting_get_string(setting)) != NULL)
 X 				return strsetting;
 X 			else
 X-				return "/etc/umurmur/private_key.key";
 X+				return "/usr/local/etc/umurmur/private_key.key";
 X 		}
 X 		break;
 X 	case PASSPHRASE:
 585c9b6e6d118262b334305b2622a856
 echo x - umurmur/files/patch-umurmur.conf.example
 sed 's/^X//' >umurmur/files/patch-umurmur.conf.example << '9eaa421703e234d764ee1659a6f6f79c'
 X--- umurmur.conf.example.orig	2011-05-16 14:01:55.905740013 -0500
 X+++ umurmur.conf.example	2011-05-16 14:04:01.215684699 -0500
 X@@ -1,7 +1,7 @@
 X max_bandwidth = 48000;
 X welcometext = "Welcome to uMurmur!";
 X-certificate = "/etc/umurmur/cert.crt";
 X-private_key = "/etc/umurmur/key.key";
 X+certificate = "/etc/umurmur/certificate.crt";
 X+private_key = "/etc/umurmur/private_key.key";
 X password = "";
 X max_users = 10;
 X 
 X@@ -10,9 +10,9 @@
 X 
 X # username and groupname for privilege dropping.
 X # Will attempt to switch user if set. 
 X-# username = "";
 X+username = "umurmur";
 X # If groupname not set the user's default login group will be used
 X-# groupname = "";
 X+groupname = "umurmur";
 X 
 X # Log to file option. Default is logging to syslog.
 X # umurmurd will close and reopen the logfile if SIGHUP is received.
 9eaa421703e234d764ee1659a6f6f79c
 echo x - umurmur/files/umurmur.in
 sed 's/^X//' >umurmur/files/umurmur.in << 'ac27dae8b8f33afb425ec2a028a1effd'
 X#!/bin/sh
 X#
 X# $FreeBSD$
 X#
 X# PROVIDE: umurmur
 X# REQUIRE: DAEMON
 X# KEYWORD: shutdown
 X#
 X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
 X# to enable this service:
 X#
 X# umurmur_enable (bool):	Set to NO by default.
 X#				Set it to YES to enable umurmur.
 X# umurmur_flags (str):		Set to "" by default.
 X#				Extra flags passed to start command.
 X#
 X
 X. /etc/rc.subr
 X
 X# Set some defaults
 X: ${umurmur_enable="NO"}
 X: ${umurmur_flags=""}
 X
 Xname=umurmur
 Xrcvar=${name}_enable
 X
 X# pidfile
 Xpidfile="/var/run/umurmur/umurmur.pid"
 Xconfile="%%PREFIX%%/etc/umurmur/umurmur.conf"
 X
 Xcommand="%%PREFIX%%/bin/umurmurd"
 Xcommand_args="-p ${pidfile} -c ${confile}"
 X
 Xload_rc_config $name
 X
 Xrun_rc_command "$1"
 ac27dae8b8f33afb425ec2a028a1effd
 echo x - umurmur/files/patch-configure
 sed 's/^X//' >umurmur/files/patch-configure << '6655e041d9b839eb40dae9bca81f1644'
 X--- configure.orig	2011-04-18 13:33:55.000000000 -0500
 X+++ configure	2011-05-16 11:14:30.462360165 -0500
 X@@ -5534,7 +5534,7 @@
 X 
 X 
 X 
 X-for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h malloc.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
 X+for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
 X do
 X as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 X if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 6655e041d9b839eb40dae9bca81f1644
 echo x - umurmur/pkg-install
 sed 's/^X//' >umurmur/pkg-install << 'e24cf28e77fe27df969c6f21635453ef'
 X#!/bin/sh
 X# $FreeBSD$
 X
 XPATH=/bin:/usr/sbin
 XUSER=umurmur
 XGROUP=umurmur
 XHOME=/nonexistent
 XRUNDIR=/var/run/umurmur
 X
 Xcase $2 in
 X	PRE-INSTALL)
 X		if pw group show ${GROUP} 2> /dev/null; then
 X		else
 X			if pw groupadd ${GROUP}; then
 X				echo "Added group \"${GROUP}\"."
 X			else
 X				echo "Adding group \"${GROUP}\" failed..."
 X				exit 1
 X			fi
 X		fi
 X
 X		if pw user show ${USER} 2> /dev/null; then
 X		else
 X			if pw useradd ${USER} -g ${GROUP} -h - \
 X				-d ${HOME} -c "uMurmur"
 X			then
 X				echo "Added user \"${USER}\"."
 X			else
 X				echo "Adding user \"${USER}\" failed..."
 X				exit 1
 X			fi
 X		fi
 X
 X		mkdir -m 750 ${RUNDIR} 2> /dev/null
 X		chown -R ${USER}:${GROUP} ${RUNDIR}
 X
 X		;;
 Xesac
 e24cf28e77fe27df969c6f21635453ef
 echo x - umurmur/pkg-plist
 sed 's/^X//' >umurmur/pkg-plist << '162a6afe9e4b529db0c9ac6a4666fc66'
 X at comment $FreeBSD$
 X at stopdaemon umurmur
 X at unexec if cmp -s %D/etc/umurmur/umurmur.conf.sample %D/etc/umurmur/umurmur.conf; then rm -f %D/etc/umurmur/umurmur.conf; fi
 Xetc/umurmur/umurmur.conf.sample
 Xbin/umurmurd
 X at dirrmtry etc/umurmur
 162a6afe9e4b529db0c9ac6a4666fc66
 exit
 
 
 --------------020700020805030702060001--



More information about the freebsd-ports-bugs mailing list