Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2009 14:49:38 GMT
From:      "Alexander V. Chernikov" <melifaro@ipfw.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/136133: New port: net/callweaver Open source IP PBX based on Asterisk 1.2
Message-ID:  <200906281449.n5SEncYZ053886@www.freebsd.org>
Resent-Message-ID: <200906281450.n5SEo4bU060885@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136133
>Category:       ports
>Synopsis:       New port: net/callweaver Open source IP PBX based on Asterisk 1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 28 14:50:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alexander V. Chernikov
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD ws.ipfw.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #6: Sat Jun 20 20:59:45 MSD 2009     root@ws.ipfw.ru:/usr/obj/usr/src/sys/WS  amd64

>Description:
Callweaver FreeBSD port. Tested on
* FreeBSD 8.0-CURRENT amd64
* FreeBSD 7.2-STABLE amd64
* FreeBSD 6.4-STABLE i386
* FreeBSD 7.2-RELEASE i386
* FreeBSD 7.1-BETA i386

Port introduces new uid 444(callweaver) and gid 444(callweaver) (see uidgid.diff)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	callweaver
#	callweaver/files
#	callweaver/files/patch-cw.diff
#	callweaver/files/callweaver.in
#	callweaver/Makefile
#	callweaver/distinfo
#	callweaver/pkg-descr
#	callweaver/pkg-plist
#	callweaver/pkg-install
#	uidgid.diff
#
echo c - callweaver
mkdir -p callweaver > /dev/null 2>&1
echo c - callweaver/files
mkdir -p callweaver/files > /dev/null 2>&1
echo x - callweaver/files/patch-cw.diff
sed 's/^X//' >callweaver/files/patch-cw.diff << '506f91c00f27ac1befcf43dac965b63d'
X--- channels/fax/faxmodem.h.orig	2009-06-27 22:21:25.000000000 +0400
X+++ channels/fax/faxmodem.h	2009-06-27 22:21:29.000000000 +0400
X@@ -20,11 +20,9 @@
X 
X #include <stdio.h>
X #include <string.h>
X-#include <pty.h>
X #include <unistd.h>
X #include <fcntl.h>
X #include <errno.h>
X-#include <byteswap.h>
X #include <sys/time.h>
X #include <sys/signal.h>
X #include <sys/types.h>
X--- layout.freebsd.orig	2008-11-18 16:45:51.000000000 +0300
X+++ layout.freebsd	2009-06-28 13:15:22.000000000 +0400
X@@ -1,14 +1,14 @@
X # FreeBSD directory layout
X helpstring="follow the FreeBSD ports system convention"
X cwprefix=/usr/local
X-cwexecdir=${prefix}/libexec
X-cwutilsdir=${prefix}/sbin
X+cwexecdir=${prefix}/sbin
X+cwutilsdir=${prefix}/bin
X cwconfdir=${prefix}/etc/callweaver
X cwlibdir=${prefix}/lib/callweaver
X-cwvardir=${prefix}/var/lib/callweaver
X+cwvardir=/var/lib/callweaver
X cwdatadir=${prefix}/share/callweaver
X-cwlogdir=${prefix}/var/log
X-cwrundir=${prefix}/var/run
X-cwspooldir=${prefix}/var/spool/callweaver
X+cwlogdir=/var/log/callweaver
X+cwrundir=/var/run
X+cwspooldir=/var/spool/callweaver
X cwmandir=${prefix}/man
X cwdocdir=${prefix}/share/doc/callweaver
X--- channels/fax/faxmodem.c.orig	2009-06-28 02:31:01.000000000 +0400
X+++ channels/fax/faxmodem.c	2009-06-28 02:31:17.000000000 +0400
X@@ -125,13 +125,11 @@
X 	fm->master = -1;
X 	fm->slave = -1;
X 
X-	if (openpty(&fm->master, &fm->slave, NULL, NULL, NULL)) {
X+	if (openpty(&fm->master, &fm->slave, buf, NULL, NULL)) {
X 		do_log(LOGGER.err, "Fatal error: failed to initialize pty\n");
X 		return -1;
X 	}
X 
X-	ptsname_r(fm->master, buf, sizeof(buf));
X-
X 	do_log(LOGGER.info, "Opened pty, slave device: %s\n", buf);
X 
X 	snprintf(fm->devlink, sizeof(fm->devlink), "%s%d", device_prefix, NEXT_ID++);
X--- corelib/utils.c.orig	2009-06-28 11:32:54.000000000 +0400
X+++ corelib/utils.c	2008-11-18 16:45:43.000000000 +0300
X@@ -61,7 +61,7 @@
X static char base64[64];
X static char b2a[256];
X 
X-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__)
X+#if defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__)
X 
X /* duh? ERANGE value copied from web... */
X #define ERANGE 34
506f91c00f27ac1befcf43dac965b63d
echo x - callweaver/files/callweaver.in
sed 's/^X//' >callweaver/files/callweaver.in << '8ae169d063b4f07124f613ddb16db5b7'
X#!/bin/sh
X
X# PROVIDE: callweaver
X# REQUIRE: DAEMON
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf to enable callweaver:
X#
X# callweaver_enable="YES"
X#
X
X. /etc/rc.subr
X
Xstop_precmd=callweaver_shutdown
Xsig_stop=KILL
Xcallweaver_shutdown () {
X  /usr/local/sbin/callweaver -qrx 'stop now'
X  sleep 1
X  return 0
X}
X
Xname=callweaver
Xrcvar=`set_rcvar`
X
Xcommand=/usr/local/sbin/callweaver
X
Xload_rc_config $name
X
Xpidfile=${callweaver_pidfile:-"/var/run/callweaver.pid"}
X
Xcallweaver_enable=${callweaver_enable:-"NO"}
X
Xrun_rc_command "$1"
8ae169d063b4f07124f613ddb16db5b7
echo x - callweaver/Makefile
sed 's/^X//' >callweaver/Makefile << '242d5aa9cd077a4b07e446ce3b7affe8'
X# New ports collection makefile for:	callweaver
X# Date created:				28 June 2009
X# Whom:					Alexander V. Chernikov <melifaro@ipfw.ru>
X# $FreeBSD$
X#
X
XPORTNAME=	callweaver
XPORTVERSION=	1.2.1
XCATEGORIES=	net
XMASTER_SITES=	http://devs.callweaver.org/release/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	melifaro@ipfw.ru
XCOMMENT=	Open source IP PBX
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XUSE_OPENSSL=	yes
XUSE_LDCONFIG=	yes
X
XNO_LATEST_LINK=	yes
X
XOPTIONS=	SIPTCP		"Enable SIP TCP/TLS support" on \
X		POSTGRES	"Enable PostgreSQL support" off \
X		MYSQL		"Enable MySQL support" off \
X		EXTUDP		"Enable extented UDP support for multi-homed" off \
X		ZAPTEL		"Enable Zapata Telefony" off \
X		FAX		"Enable audio/T.38 app_fax/chan_fax/FaxGateway/etc" on \
X		SPEEX		"Build  speex codec" on \
X		VORBIS		"Enable VORBIS/Vorbis format support" on \
X		MEETME		"Build  app_meetme (requires ZAPTEL)" off \
X		LDAP		"Build  app_ldap application" off \
X		SNMP		"Enable SNMP support (broken)" off \
X		DEBUG		"Enable debug support" off
X
X.include <bsd.port.pre.mk>
X
XCWUSER=callweaver
XCWGROUP=callweaver
X#CONFIGURE_ENV=	\
X#		OPENSSL_CFLAGS="-I/usr/include" \
X#		OPENSSL_LIBS="-lssl"
XCONFIGURE_ARGS+=	--with-pic
XUSE_RC_SUBR=	callweaver
XLIB_DEPENDS+=	spandsp.2:${PORTSDIR}/comms/spandsp-devel
X
X.if !defined(NOPORTDOCS)
XCONFIGURE_ARGS+=	--with-man-pages
X.else
XCONFIGURE_ARGS+=	--without-man-pages
X.endif
X
X.if defined(WITH_SIPTCP)
XCONFIGURE_ARGS+=	--enable-sip-tcp-support
X.else
XCONFIGURE_ARGS+=	--disable-sip-tcp-support
X.endif
X
X.if defined(WITH_POSTGRES)
XUSE_PGSQL=	yes
XPG_INC=	`${LOCALBASE}/bin/pg_config --includedir`
XPG_LIB=	`${LOCALBASE}/bin/pg_config --libdir`
XCONFIGURE_ARGS+=	--enable-postgresql --with-cdr_pgsql --with-pgsql-inc="${PG_INC}" --with-pgsql-inc="${PG_LIB}"
XPLIST_SUB+=	PGSQL=""
X.else
XPLIST_SUB+=	PGSQL="@comment "
X.endif
X
X.if defined(WITH_MYSQL)
XCONFIGURE_ARGS+=	--enable-mysql --with-cdr_mysql
XUSE_MYSQL=	yes
XPLIST_SUB+=	MYSQL=""
X.else
XPLIST_SUB+=	MYSQL="@comment "
X.endif
X
X.if defined(WITH_EXTUDP)
XCONFIGURE_ARGS+=	--enable-udpfromto
X.endif
X
X.if defined(WITH_MEETME)
XWITH_ZAPTEL=yes
XCONFIGURE_ARGS+=	--with-app_meetme
XPLIST_SUB+=	MEETME=""
X.else
XCONFIGURE_ARGS+=	--without-app_meetme
XPLIST_SUB+=	MEETME="@comment "
X.endif
X
X.if defined(WITH_ZAPTEL)
XCONFIGURE_ARGS+=	--enable-zaptel --with-chan_zap
XBUILD_DEPENDS+=	libpri>=1.2.0:${PORTSDIR}/misc/libpri \
X		${LOCALBASE}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel
XLIB_DEPENDS+=	pri.1:${PORTSDIR}/misc/libpri
XRUN_DEPENDS+=	${LOCALBASE}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel
XPLIST_SUB+=	ZAPTEL=""
X.else
XCONFIGURE_ARGS+=	--disable-zaptel --without-chan_zap
XPLIST_SUB+=	ZAPTEL="@comment "
X.endif
X
X.if defined(WITH_FAX)
XFAXDEV_PATH=	/var/run/fax
XCONFIGURE_ARGS+=	--with-app_t38gateway --with-app_txfax --with-app_rxfax --with-chan_fax --with-app_faxdetect
XPLIST_SUB+=	FAX=""
X.else
XCONFIGURE_ARGS+=	--without-app_t38gateway --without-app_txfax --without-app_rxfax --without-chan_fax --without-app_faxdetect
XPLIST_SUB+=	FAX="@comment "
X.endif
X
X#.if defined(WITH_ODBC)
X#CONFIGURE_ARGS+=	--enable-odbc
X#LIB_DEPENDS+=	odbc.1:${PORTSDIR}/databases/unixODBC
X#.else
X#CONFIGURE_ARGS+=	--disable-odbc
X#.endif
X
X.if defined(WITH_SPEEX)
XCONFIGURE_ARGS+=	--with-codec_speex
XLIB_DEPENDS+=	speex.1:${PORTSDIR}/audio/speex
XPLIST_SUB+=	SPEEX=""
X.else
XCONFIGURE_ARGS+=	--without-codec_speex
XPLIST_SUB+=	SPEEX="@comment "
X.endif
X
X.if defined(WITH_VORBIS)
XCONFIGURE_ARGS+=	--with-format_oggvorbis
XLIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
XPLIST_SUB+=	VORBIS=""
X.else
XCONFIGURE_ARGS+=	--without-format_oggvorbis
XPLIST_SUB+=	VORBIS="@comment "
X.endif
X
X.if defined(WITH_LDAP)
XUSE_OPENLDAP=	yes
XCONFIGURE_ARGS+=	--enable-openldap --with-ldap-dir="${LOCALBASE}"
XPLIST_SUB+=	LDAP=""
X.else
XCONFIGURE_ARGS+=	--disable-openldap
XPLIST_SUB+=	LDAP="@comment "
X.endif
X
X.if defined(WITH_SNMP)
XLIB_DEPENDS+=	netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
XCONFIGURE_ARGS+=	--with-res_snmp
XPLIST_SUB+=	SNMP=""
X.else
XCONFIGURE_ARGS+=	--without-res_snmp
XPLIST_SUB+=	SNMP="@comment "
X.endif
X
X.if defined(WITH_DEBUG)
XCONFIGURE_ARGS+=	--disable-optimization --enable-debug
X.endif
X
Xpre-install:
X	@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
Xpost-install:
X.if defined(WITH_FAX)
X	@${MKDIR} ${FAXDEV_PATH}
X	@${CHOWN} ${CWUSER}:${CWGROUP} ${FAXDEV_PATH}
X	@${REINPLACE_CMD} -i'' -e 's?/dev/fax/?${FAXDEV_PATH}?' ${PREFIX}/etc/${PORTNAME}/chan_fax.conf
X.endif
X
X.include <bsd.port.post.mk>
242d5aa9cd077a4b07e446ce3b7affe8
echo x - callweaver/distinfo
sed 's/^X//' >callweaver/distinfo << '9dfd071fb1885d9161983a22dfa18171'
XMD5 (callweaver-1.2.1.tgz) = 131437b08ad882358bd9403513509c3e
XSHA256 (callweaver-1.2.1.tgz) = f18e9c4a0e0520aa675ae400010ea7f725455ce7ead8d8c2b2fdf4b6a897f390
XSIZE (callweaver-1.2.1.tgz) = 5795528
9dfd071fb1885d9161983a22dfa18171
echo x - callweaver/pkg-descr
sed 's/^X//' >callweaver/pkg-descr << 'eb28fabdaa76da37117c6314322ba47a'
XCallweaver (formely OpenPBX.org) is an open-source multi-platform PBX project.
XIt is based on Asterisk 1.2 code. Callweaver supports analog and digital 
XPSTN telephony, IAX/SIP and offers mature T.38 support.
X
XWWW: http://www.callweaver.org
eb28fabdaa76da37117c6314322ba47a
echo x - callweaver/pkg-plist
sed 's/^X//' >callweaver/pkg-plist << 'b91e532d0762d0c592a15c2a55a7f7ba'
Xbin/callweaver_cli
Xbin/safe_callweaver
Xbin/smsq
Xbin/streamplayer
X%%ETCDIR%%/adsi.conf
X%%ETCDIR%%/adtranvofr.conf
X%%ETCDIR%%/agents.conf
X%%ETCDIR%%/amd.conf
X%%ETCDIR%%/callweaver.adsi
X%%ETCDIR%%/callweaver.conf
X%%ETCDIR%%/cdr.conf
X%%ETCDIR%%/cdr_custom.conf
X%%ETCDIR%%/cdr_manager.conf
X%%MYSQL%%%%ETCDIR%%/cdr_mysql.conf
X%%PGSQL%%%%ETCDIR%%/cdr_pgsql.conf
X%%ETCDIR%%/cdr_tds.conf
X%%ZAPTEL%%%%ETCDIR%%/chan_dahdi.conf
X%%FAX%%%%ETCDIR%%/chan_fax.conf
X%%ETCDIR%%/codecs.conf
X%%ETCDIR%%/db-memcached.conf
X%%ETCDIR%%/dnsmgr.conf
X%%ETCDIR%%/dundi.conf
X%%ETCDIR%%/enum.conf
X%%ETCDIR%%/extconfig.conf
X%%ETCDIR%%/extensions.ael
X%%ETCDIR%%/extensions.conf
X%%ETCDIR%%/features.conf
X%%ETCDIR%%/iax.conf
X%%ETCDIR%%/indications.conf
X%%ETCDIR%%/logger.conf
X%%ETCDIR%%/manager.conf
X%%ETCDIR%%/meetme.conf
X%%ETCDIR%%/mgcp.conf
X%%ETCDIR%%/modem.conf
X%%ETCDIR%%/modules.conf
X%%ETCDIR%%/musiconhold.conf
X%%ETCDIR%%/muted.conf
X%%ETCDIR%%/osp.conf
X%%ETCDIR%%/privacy.conf
X%%ETCDIR%%/queues.conf
X%%ETCDIR%%/res_snmp.conf
X%%ETCDIR%%/rtp.conf
X%%ETCDIR%%/sip.conf
X%%ETCDIR%%/sip_notify.conf
X%%ETCDIR%%/udptl.conf
X%%ETCDIR%%/voicemail.conf
X%%ETCDIR%%/woomera.conf
Xetc/rc.d/callweaver
Xinclude/callweaver/acl.h
Xinclude/callweaver/adsi.h
Xinclude/callweaver/aes.h
Xinclude/callweaver/alaw.h
Xinclude/callweaver/app.h
Xinclude/callweaver/callweaver_db.h
Xinclude/callweaver/callweaver_expr.h
Xinclude/callweaver/callweaver_hash.h
Xinclude/callweaver/callweaver_keywords.h
Xinclude/callweaver/callweaver_mm.h
Xinclude/callweaver/causes.h
Xinclude/callweaver/cdr.h
Xinclude/callweaver/chan_capi.h
Xinclude/callweaver/chan_capi20.h
Xinclude/callweaver/channel.h
Xinclude/callweaver/chanvars.h
Xinclude/callweaver/cli.h
Xinclude/callweaver/compiler.h
Xinclude/callweaver/config.h
Xinclude/callweaver/crypto.h
Xinclude/callweaver/cwobj.h
Xinclude/callweaver/devicestate.h
Xinclude/callweaver/dlfcn-compat.h
Xinclude/callweaver/dns.h
Xinclude/callweaver/dnsmgr.h
Xinclude/callweaver/dsp.h
Xinclude/callweaver/dundi.h
Xinclude/callweaver/enum.h
Xinclude/callweaver/features.h
Xinclude/callweaver/file.h
Xinclude/callweaver/frame.h
Xinclude/callweaver/generator.h
Xinclude/callweaver/generic_jb.h
Xinclude/callweaver/image.h
Xinclude/callweaver/indications.h
Xinclude/callweaver/inline_api.h
Xinclude/callweaver/io.h
Xinclude/callweaver/linkedlists.h
Xinclude/callweaver/localtime.h
Xinclude/callweaver/lock.h
Xinclude/callweaver/logger.h
Xinclude/callweaver/manager.h
Xinclude/callweaver/module.h
Xinclude/callweaver/monitor.h
Xinclude/callweaver/musiconhold.h
Xinclude/callweaver/netsock.h
Xinclude/callweaver/ogi.h
Xinclude/callweaver/options.h
Xinclude/callweaver/pbx.h
Xinclude/callweaver/phone_no_utils.h
Xinclude/callweaver/poll-compat.h
Xinclude/callweaver/privacy.h
Xinclude/callweaver/res_odbc.h
Xinclude/callweaver/resonator.h
Xinclude/callweaver/rtp.h
Xinclude/callweaver/say.h
Xinclude/callweaver/sched.h
Xinclude/callweaver/slinfactory.h
Xinclude/callweaver/srv.h
Xinclude/callweaver/strings.h
Xinclude/callweaver/stun.h
Xinclude/callweaver/term.h
Xinclude/callweaver/time.h
Xinclude/callweaver/transcap.h
Xinclude/callweaver/translate.h
Xinclude/callweaver/udp.h
Xinclude/callweaver/udpfromto.h
Xinclude/callweaver/udptl.h
Xinclude/callweaver/ulaw.h
Xinclude/callweaver/unaligned.h
Xinclude/callweaver/utils.h
Xinclude/callweaver/xlaw.h
Xlib/callweaver/libcallweaver.la
Xlib/callweaver/libcallweaver.so
Xlib/callweaver/libcallweaver.so.0
Xlib/callweaver/libcwjb.la
Xlib/callweaver/libcwjb.so
Xlib/callweaver/libcwjb.so.0
Xlib/callweaver/libcwsqlite3.la
Xlib/callweaver/libcwsqlite3.so
Xlib/callweaver/libcwsqlite3.so.8
Xlib/callweaver/modules/app_adsiprog.la
Xlib/callweaver/modules/app_adsiprog.so
Xlib/callweaver/modules/app_amd.la
Xlib/callweaver/modules/app_amd.so
Xlib/callweaver/modules/app_authenticate.la
Xlib/callweaver/modules/app_authenticate.so
Xlib/callweaver/modules/app_backgrounddetect.la
Xlib/callweaver/modules/app_backgrounddetect.so
Xlib/callweaver/modules/app_cdr.la
Xlib/callweaver/modules/app_cdr.so
Xlib/callweaver/modules/app_changrab.la
Xlib/callweaver/modules/app_changrab.so
Xlib/callweaver/modules/app_chanisavail.la
Xlib/callweaver/modules/app_chanisavail.so
Xlib/callweaver/modules/app_chanspy.la
Xlib/callweaver/modules/app_chanspy.so
Xlib/callweaver/modules/app_controlplayback.la
Xlib/callweaver/modules/app_controlplayback.so
Xlib/callweaver/modules/app_db.la
Xlib/callweaver/modules/app_db.so
Xlib/callweaver/modules/app_devstate.la
Xlib/callweaver/modules/app_devstate.so
Xlib/callweaver/modules/app_dial.la
Xlib/callweaver/modules/app_dial.so
Xlib/callweaver/modules/app_dictate.la
Xlib/callweaver/modules/app_dictate.so
Xlib/callweaver/modules/app_directed_pickup.la
Xlib/callweaver/modules/app_directed_pickup.so
Xlib/callweaver/modules/app_directory.la
Xlib/callweaver/modules/app_directory.so
Xlib/callweaver/modules/app_disa.la
Xlib/callweaver/modules/app_disa.so
Xlib/callweaver/modules/app_dumpchan.la
Xlib/callweaver/modules/app_dumpchan.so
Xlib/callweaver/modules/app_echo.la
Xlib/callweaver/modules/app_echo.so
Xlib/callweaver/modules/app_enumlookup.la
Xlib/callweaver/modules/app_enumlookup.so
Xlib/callweaver/modules/app_eval.la
Xlib/callweaver/modules/app_eval.so
Xlib/callweaver/modules/app_exec.la
Xlib/callweaver/modules/app_exec.so
X%%FAX%%lib/callweaver/modules/app_faxdetect.la
X%%FAX%%lib/callweaver/modules/app_faxdetect.so
X%%ZAPTEL%%lib/callweaver/modules/app_flash.la
X%%ZAPTEL%%lib/callweaver/modules/app_flash.so
Xlib/callweaver/modules/app_forkcdr.la
Xlib/callweaver/modules/app_forkcdr.so
Xlib/callweaver/modules/app_getcpeid.la
Xlib/callweaver/modules/app_getcpeid.so
Xlib/callweaver/modules/app_getdevstate.la
Xlib/callweaver/modules/app_getdevstate.so
Xlib/callweaver/modules/app_getextstate.la
Xlib/callweaver/modules/app_getextstate.so
Xlib/callweaver/modules/app_groupcount.la
Xlib/callweaver/modules/app_groupcount.so
Xlib/callweaver/modules/app_hasnewvoicemail.la
Xlib/callweaver/modules/app_hasnewvoicemail.so
Xlib/callweaver/modules/app_lookupblacklist.la
Xlib/callweaver/modules/app_lookupblacklist.so
Xlib/callweaver/modules/app_lookupcidname.la
Xlib/callweaver/modules/app_lookupcidname.so
X%%MEETME%%lib/callweaver/modules/app_meetme.la
X%%MEETME%%lib/callweaver/modules/app_meetme.so
Xlib/callweaver/modules/app_milliwatt.la
Xlib/callweaver/modules/app_milliwatt.so
Xlib/callweaver/modules/app_muxmon.la
Xlib/callweaver/modules/app_muxmon.so
Xlib/callweaver/modules/app_nconference.la
Xlib/callweaver/modules/app_nconference.so
Xlib/callweaver/modules/app_pipe.la
Xlib/callweaver/modules/app_pipe.so
Xlib/callweaver/modules/app_playback.la
Xlib/callweaver/modules/app_playback.so
Xlib/callweaver/modules/app_privacy.la
Xlib/callweaver/modules/app_privacy.so
Xlib/callweaver/modules/app_proc.la
Xlib/callweaver/modules/app_proc.so
Xlib/callweaver/modules/app_queue.la
Xlib/callweaver/modules/app_queue.so
Xlib/callweaver/modules/app_random.la
Xlib/callweaver/modules/app_random.so
Xlib/callweaver/modules/app_read.la
Xlib/callweaver/modules/app_read.so
Xlib/callweaver/modules/app_record.la
Xlib/callweaver/modules/app_record.so
X%%FAX%%lib/callweaver/modules/app_rxfax.la
X%%FAX%%lib/callweaver/modules/app_rxfax.so
Xlib/callweaver/modules/app_sayunixtime.la
Xlib/callweaver/modules/app_sayunixtime.so
Xlib/callweaver/modules/app_senddtmf.la
Xlib/callweaver/modules/app_senddtmf.so
Xlib/callweaver/modules/app_sendtext.la
Xlib/callweaver/modules/app_sendtext.so
Xlib/callweaver/modules/app_setcallerpres.la
Xlib/callweaver/modules/app_setcallerpres.so
Xlib/callweaver/modules/app_setcdruserfield.la
Xlib/callweaver/modules/app_setcdruserfield.so
Xlib/callweaver/modules/app_setrdnis.la
Xlib/callweaver/modules/app_setrdnis.so
Xlib/callweaver/modules/app_settransfercapability.la
Xlib/callweaver/modules/app_settransfercapability.so
Xlib/callweaver/modules/app_sms.la
Xlib/callweaver/modules/app_sms.so
Xlib/callweaver/modules/app_softhangup.la
Xlib/callweaver/modules/app_softhangup.so
X%%MYSQL%%lib/callweaver/modules/app_sql_mysql.la
X%%MYSQL%%lib/callweaver/modules/app_sql_mysql.so
X%%PGSQL%%lib/callweaver/modules/app_sql_postgres.la
X%%PGSQL%%lib/callweaver/modules/app_sql_postgres.so
Xlib/callweaver/modules/app_stack.la
Xlib/callweaver/modules/app_stack.so
Xlib/callweaver/modules/app_system.la
Xlib/callweaver/modules/app_system.so
X%%FAX%%lib/callweaver/modules/app_t38gateway.la
X%%FAX%%lib/callweaver/modules/app_t38gateway.so
Xlib/callweaver/modules/app_transfer.la
Xlib/callweaver/modules/app_transfer.so
X%%FAX%%lib/callweaver/modules/app_txfax.la
X%%FAX%%lib/callweaver/modules/app_txfax.so
Xlib/callweaver/modules/app_userevent.la
Xlib/callweaver/modules/app_userevent.so
Xlib/callweaver/modules/app_verbose.la
Xlib/callweaver/modules/app_verbose.so
Xlib/callweaver/modules/app_voicemail.la
Xlib/callweaver/modules/app_voicemail.so
Xlib/callweaver/modules/app_waitfordigits.la
Xlib/callweaver/modules/app_waitfordigits.so
Xlib/callweaver/modules/app_waitforring.la
Xlib/callweaver/modules/app_waitforring.so
Xlib/callweaver/modules/app_waitforsilence.la
Xlib/callweaver/modules/app_waitforsilence.so
Xlib/callweaver/modules/app_while.la
Xlib/callweaver/modules/app_while.so
Xlib/callweaver/modules/app_zapateller.la
Xlib/callweaver/modules/app_zapateller.so
Xlib/callweaver/modules/cdr_csv.la
Xlib/callweaver/modules/cdr_csv.so
Xlib/callweaver/modules/cdr_custom.la
Xlib/callweaver/modules/cdr_custom.so
Xlib/callweaver/modules/cdr_manager.la
Xlib/callweaver/modules/cdr_manager.so
X%%MYSQL%%lib/callweaver/modules/cdr_mysql.la
X%%MYSQL%%lib/callweaver/modules/cdr_mysql.so
X%%PGSQL%%lib/callweaver/modules/cdr_pgsql.la
X%%PGSQL%%lib/callweaver/modules/cdr_pgsql.so
Xlib/callweaver/modules/cdr_sqlite3.la
Xlib/callweaver/modules/cdr_sqlite3.so
Xlib/callweaver/modules/chan_agent.la
Xlib/callweaver/modules/chan_agent.so
X%%FAX%%lib/callweaver/modules/chan_fax.la
X%%FAX%%lib/callweaver/modules/chan_fax.so
Xlib/callweaver/modules/chan_features.la
Xlib/callweaver/modules/chan_features.so
Xlib/callweaver/modules/chan_iax2.la
Xlib/callweaver/modules/chan_iax2.so
Xlib/callweaver/modules/chan_local.la
Xlib/callweaver/modules/chan_local.so
Xlib/callweaver/modules/chan_mgcp.la
Xlib/callweaver/modules/chan_mgcp.so
Xlib/callweaver/modules/chan_sip.la
Xlib/callweaver/modules/chan_sip.so
Xlib/callweaver/modules/chan_woomera.la
Xlib/callweaver/modules/chan_woomera.so
X%%ZAPTEL%%lib/callweaver/modules/chan_zap.la
X%%ZAPTEL%%lib/callweaver/modules/chan_zap.so
Xlib/callweaver/modules/codec_a_mu.la
Xlib/callweaver/modules/codec_a_mu.so
Xlib/callweaver/modules/codec_alaw.la
Xlib/callweaver/modules/codec_alaw.so
Xlib/callweaver/modules/codec_dvi_adpcm.la
Xlib/callweaver/modules/codec_dvi_adpcm.so
Xlib/callweaver/modules/codec_g722.la
Xlib/callweaver/modules/codec_g722.so
Xlib/callweaver/modules/codec_g722_16k_8k.la
Xlib/callweaver/modules/codec_g722_16k_8k.so
Xlib/callweaver/modules/codec_g726.la
Xlib/callweaver/modules/codec_g726.so
Xlib/callweaver/modules/codec_gsm.la
Xlib/callweaver/modules/codec_gsm.so
Xlib/callweaver/modules/codec_lpc10.la
Xlib/callweaver/modules/codec_lpc10.so
Xlib/callweaver/modules/codec_oki_adpcm.la
Xlib/callweaver/modules/codec_oki_adpcm.so
X%%SPEEX%%lib/callweaver/modules/codec_speex.la
X%%SPEEX%%lib/callweaver/modules/codec_speex.so
Xlib/callweaver/modules/codec_ulaw.la
Xlib/callweaver/modules/codec_ulaw.so
Xlib/callweaver/modules/format_au.la
Xlib/callweaver/modules/format_au.so
Xlib/callweaver/modules/format_g723_1.la
Xlib/callweaver/modules/format_g723_1.so
Xlib/callweaver/modules/format_g726.la
Xlib/callweaver/modules/format_g726.so
Xlib/callweaver/modules/format_g729.la
Xlib/callweaver/modules/format_g729.so
Xlib/callweaver/modules/format_gsm.la
Xlib/callweaver/modules/format_gsm.so
Xlib/callweaver/modules/format_h263.la
Xlib/callweaver/modules/format_h263.so
Xlib/callweaver/modules/format_jpeg.la
Xlib/callweaver/modules/format_jpeg.so
X%%VORBIS%%lib/callweaver/modules/format_ogg_vorbis.la
X%%VORBIS%%lib/callweaver/modules/format_ogg_vorbis.so
Xlib/callweaver/modules/format_pcm.la
Xlib/callweaver/modules/format_pcm.so
Xlib/callweaver/modules/format_pcm_alaw.la
Xlib/callweaver/modules/format_pcm_alaw.so
Xlib/callweaver/modules/format_sln.la
Xlib/callweaver/modules/format_sln.so
Xlib/callweaver/modules/format_wav.la
Xlib/callweaver/modules/format_wav.so
Xlib/callweaver/modules/format_wav_gsm.la
Xlib/callweaver/modules/format_wav_gsm.so
Xlib/callweaver/modules/func_callerid.la
Xlib/callweaver/modules/func_callerid.so
Xlib/callweaver/modules/func_cdr.la
Xlib/callweaver/modules/func_cdr.so
Xlib/callweaver/modules/func_config.la
Xlib/callweaver/modules/func_config.so
Xlib/callweaver/modules/func_db.la
Xlib/callweaver/modules/func_db.so
Xlib/callweaver/modules/func_enum.la
Xlib/callweaver/modules/func_enum.so
Xlib/callweaver/modules/func_env.la
Xlib/callweaver/modules/func_env.so
Xlib/callweaver/modules/func_fileexists.la
Xlib/callweaver/modules/func_fileexists.so
Xlib/callweaver/modules/func_groupcount.la
Xlib/callweaver/modules/func_groupcount.so
Xlib/callweaver/modules/func_language.la
Xlib/callweaver/modules/func_language.so
Xlib/callweaver/modules/func_logic.la
Xlib/callweaver/modules/func_logic.so
Xlib/callweaver/modules/func_math.la
Xlib/callweaver/modules/func_math.so
Xlib/callweaver/modules/func_md5.la
Xlib/callweaver/modules/func_md5.so
Xlib/callweaver/modules/func_moh.la
Xlib/callweaver/modules/func_moh.so
Xlib/callweaver/modules/func_strings.la
Xlib/callweaver/modules/func_strings.so
Xlib/callweaver/modules/func_timeout.la
Xlib/callweaver/modules/func_timeout.so
Xlib/callweaver/modules/func_uri.la
Xlib/callweaver/modules/func_uri.so
Xlib/callweaver/modules/pbx_config.la
Xlib/callweaver/modules/pbx_config.so
Xlib/callweaver/modules/pbx_dundi.la
Xlib/callweaver/modules/pbx_dundi.so
Xlib/callweaver/modules/pbx_loopback.la
Xlib/callweaver/modules/pbx_loopback.so
Xlib/callweaver/modules/pbx_realtime.la
Xlib/callweaver/modules/pbx_realtime.so
Xlib/callweaver/modules/pbx_spool.la
Xlib/callweaver/modules/pbx_spool.so
Xlib/callweaver/modules/res_adsi.la
Xlib/callweaver/modules/res_adsi.so
Xlib/callweaver/modules/res_crypto.la
Xlib/callweaver/modules/res_crypto.so
Xlib/callweaver/modules/res_features.la
Xlib/callweaver/modules/res_features.so
Xlib/callweaver/modules/res_indications.la
Xlib/callweaver/modules/res_indications.so
Xlib/callweaver/modules/res_monitor.la
Xlib/callweaver/modules/res_monitor.so
Xlib/callweaver/modules/res_musiconhold.la
Xlib/callweaver/modules/res_musiconhold.so
Xlib/callweaver/modules/res_ogi.la
Xlib/callweaver/modules/res_ogi.so
X%%SNMP%%lib/callweaver/modules/res_snmp.la
X%%SNMP%%lib/callweaver/modules/res_snmp.so
Xsbin/callweaver
X%%DATADIR%%/keys/dh1024.pem
X%%DATADIR%%/keys/dh512.pem
X%%DATADIR%%/keys/servercert.pem
X%%DATADIR%%/keys/serverkey.pem
X%%DATADIR%%/keys/trustcerts.pem
X%%DATADIR%%/ogi/eogi-sphinx-test
X%%DATADIR%%/ogi/eogi-test
X%%DATADIR%%/ogi/fastogi-test
X%%DATADIR%%/ogi/ogi-test.ogi
X%%PORTDOCS%%%%DOCSDIR%%/CREDITS
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrm %%DATADIR%%/ogi
X@dirrm %%DATADIR%%/moh
X@dirrm %%DATADIR%%/keys
X@dirrm %%DATADIR%%/images
X@dirrm %%DATADIR%%
X@dirrm lib/callweaver/modules/icd
X@dirrm lib/callweaver/modules
X@dirrm lib/callweaver
X@dirrm include/callweaver
X@exec mkdir -p %D/var/lib/callweaver/core
X@exec mkdir -p %D/%%DATADIR%%/moh
X@exec mkdir -p %D/%%DATADIR%%/images
X@exec mkdir -p %D/lib/callweaver/modules/icd
X@cwd /
X%%FAX%%@dirrm var/run/fax
X%%FAX%%@dirrm var/log/callweaver
X@dirrm var/lib/callweaver/core
X@dirrm var/lib/callweaver
b91e532d0762d0c592a15c2a55a7f7ba
echo x - callweaver/pkg-install
sed 's/^X//' >callweaver/pkg-install << 'c6f9b212e1cb00515eb92164b80c66b1'
X#!/bin/sh
X
XPATH=/bin:/usr/sbin
X
XUSER=callweaver
XGROUP=callweaver
XUID=444
XGID=444
X
Xcase $2 in
X  PRE-INSTALL)
X  if pw group show "${GROUP}" 2>/dev/null; then
X    echo "You already have a group \"${GROUP}\", so I will use it."
X  else
X    if pw groupadd ${GROUP} -g ${GID}; 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    echo "You already have a user \"${USER}\", so I will use it."
X  else
X    if pw useradd ${USER} -u ${UID} -g ${GROUP} -s "/usr/sbin/nologin" -d "/var/lib/callweaver" -c "Callweaver account"
X    then
X      echo "Added user \"${USER}\"."
X    else
X      echo "Adding user \"${USER}\" failed..."
X      exit 1
X    fi
X  fi
X  ;;
Xesac
c6f9b212e1cb00515eb92164b80c66b1
echo x - uidgid.diff
sed 's/^X//' >uidgid.diff << '2e8f104f2afeaa2f7c6ff5bfd5f7a6de'
X--- UIDs.orig	2009-06-28 16:35:01.000000000 +0400
X+++ UIDs	2009-06-28 16:36:04.000000000 +0400
X@@ -119,6 +119,7 @@
X ldap:*:389:389::0:0:OpenLDAP Server:/nonexistent:/usr/sbin/nologin
X tiarra:*:398:398::0:0:Tiarra IRC Proxy:/nonexistent:/usr/sbin/nologin
X drweb:*:426:426::0:0:Dr.Web Mail Scanner:/nonexistent:/usr/sbin/nologin
X+callweaver:*:444:444::0:0:Callweaver account:/var/lib/callweaver:/usr/sbin/nologin
X courier:*:465:465::0:0:Courier Mail Server:/nonexistent:/usr/sbin/nologin
X _bbstored:*:505:505::0:0:BoxBackup Store Daemon:/nonexistent:/bin/sh
X nullmail:*:522:522::0:0:Nullmailer Mail System:/var/spool/nullmailer:/bin/sh
X--- GIDs.orig	2009-06-28 16:35:09.000000000 +0400
X+++ GIDs	2009-06-28 16:36:25.000000000 +0400
X@@ -108,6 +108,7 @@
X ldap:*:389:
X tiarra:*:398:
X drweb:*:426:
X+callweaver:*:444:
X courier:*:465:
X _bbstored:*:505:
X nullmail:*:522:
2e8f104f2afeaa2f7c6ff5bfd5f7a6de
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906281449.n5SEncYZ053886>