From 7127e948101fb2f5d4444f94449644f68d5497cd Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Thu, 1 Feb 2007 22:33:04 +0000 Subject: [PATCH] sipXpublisher is a modular server for handling SIP event subscriptions; event package types can be added through a dynamically linked library interface, configured through a simple XML plugin configuration file. WWW: http://sipx-wiki.calivia.com/index.php/Main_Page PR: ports/107931 Submitted by: Michael Durian --- net/Makefile | 1 + net/sipxpublisher/Makefile | 39 +++++++++++++++++++ net/sipxpublisher/distinfo | 3 ++ net/sipxpublisher/files/patch-doc-Makefile.am | 11 ++++++ net/sipxpublisher/files/patch-doc-Makefile.in | 11 ++++++ net/sipxpublisher/files/pkg-deinstall.in | 19 +++++++++ net/sipxpublisher/pkg-descr | 5 +++ net/sipxpublisher/pkg-plist | 19 +++++++++ 8 files changed, 108 insertions(+) create mode 100644 net/sipxpublisher/Makefile create mode 100644 net/sipxpublisher/distinfo create mode 100644 net/sipxpublisher/files/patch-doc-Makefile.am create mode 100644 net/sipxpublisher/files/patch-doc-Makefile.in create mode 100644 net/sipxpublisher/files/pkg-deinstall.in create mode 100644 net/sipxpublisher/pkg-descr create mode 100644 net/sipxpublisher/pkg-plist diff --git a/net/Makefile b/net/Makefile index f91bbc6c5bc1..a67f1909296c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -747,6 +747,7 @@ SUBDIR += sipxcommserverlib SUBDIR += sipxconfig SUBDIR += sipxportlib + SUBDIR += sipxpublisher SUBDIR += sipxtacklib SUBDIR += sixxs-aiccu SUBDIR += sixxs-heartbeatd diff --git a/net/sipxpublisher/Makefile b/net/sipxpublisher/Makefile new file mode 100644 index 000000000000..5ceed20e3314 --- /dev/null +++ b/net/sipxpublisher/Makefile @@ -0,0 +1,39 @@ +# Ports collection makefile for: sipxpublisher +# Date created: Jan 8, 2007 +# Whom: Michael Durian +# +# $FreeBSD$ +# + +PORTNAME= sipxpublisher +PORTVERSION= 3.6.0 +CATEGORIES= net +MASTER_SITES= http://www.sipfoundry.org/pub/sipX/3.6/SRC/ + +MAINTAINER= durian@shadetreesoftware.com +COMMENT= sipX server for handling SIP event subscriptions + +BUILD_DEPENDS= ginstall:${PORTSDIR}/sysutils/coreutils +LIB_DEPENDS= sipXport:${PORTSDIR}/net/sipxportlib \ + sipXtack:${PORTSDIR}/net/sipxtacklib \ + sipXcommserver:${PORTSDIR}/net/sipxcommserverlib \ + pcre.0:${PORTSDIR}/devel/pcre +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash + +USE_BZIP2= yes +USE_GMAKE= yes +USE_AUTOTOOLS= autoconf:259:env automake:19:env +GNU_CONFIGURE= yes +LOCALSTATEDIR=${DESTDIR}/var +CONFIGURE_ENV+= wwwdir=${PREFIX}/www/sipX \ + INSTALL=`which ginstall` +CONFIGURE_ARGS+= --enable-sip-tls \ + --prefix=${PREFIX} \ + --localstatedir=${LOCALSTATEDIR} +SUB_LIST= LOCALSTATEDIR=${LOCALSTATEDIR} +SUB_FILES= pkg-deinstall + +post-patch: + @${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/bin/sipstatus.sh.in + +.include diff --git a/net/sipxpublisher/distinfo b/net/sipxpublisher/distinfo new file mode 100644 index 000000000000..b4e7da62fb39 --- /dev/null +++ b/net/sipxpublisher/distinfo @@ -0,0 +1,3 @@ +MD5 (sipxpublisher-3.6.0.tar.bz2) = e1bbf75e64e43e2fc25a3e919effdad4 +SHA256 (sipxpublisher-3.6.0.tar.bz2) = 0e0a6159925a941f1dd60d1e3c245d1acf718b6406f1cfb21051d1e49a8686b3 +SIZE (sipxpublisher-3.6.0.tar.bz2) = 279637 diff --git a/net/sipxpublisher/files/patch-doc-Makefile.am b/net/sipxpublisher/files/patch-doc-Makefile.am new file mode 100644 index 000000000000..6a07a3d2606f --- /dev/null +++ b/net/sipxpublisher/files/patch-doc-Makefile.am @@ -0,0 +1,11 @@ +--- doc/Makefile.am.orgi Mon Jan 29 13:21:32 2007 ++++ doc/Makefile.am Mon Jan 29 13:21:43 2007 +@@ -28,7 +28,7 @@ + rm -rf $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ + @INSTALL@ -d $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ + find @PACKAGE@ -type f -print \ +- | xargs -i% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% ++ | xargs -I% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% + + clean: clean-doc + diff --git a/net/sipxpublisher/files/patch-doc-Makefile.in b/net/sipxpublisher/files/patch-doc-Makefile.in new file mode 100644 index 000000000000..62ee7815c2c3 --- /dev/null +++ b/net/sipxpublisher/files/patch-doc-Makefile.in @@ -0,0 +1,11 @@ +--- doc/Makefile.in.orgi Mon Jan 29 13:21:25 2007 ++++ doc/Makefile.in Mon Jan 29 13:21:55 2007 +@@ -469,7 +469,7 @@ + rm -rf $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ + @INSTALL@ -d $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ + find @PACKAGE@ -type f -print \ +- | xargs -i% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% ++ | xargs -I% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% + + clean: clean-doc + diff --git a/net/sipxpublisher/files/pkg-deinstall.in b/net/sipxpublisher/files/pkg-deinstall.in new file mode 100644 index 000000000000..965c28f4d4b8 --- /dev/null +++ b/net/sipxpublisher/files/pkg-deinstall.in @@ -0,0 +1,19 @@ +#!/bin/sh + +PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin + +LOCALSTATEDIR="%%LOCALSTATEDIR%%" + +post-deinstall() { + echo "WARNING: If you will *NOT* use this package anymore, please remove + the" + echo " following file manually:" + echo " ${LOCALSTATEDIR}/sipxdata/upgrade/sipxpublisher-previous.tgz" + echo +} + +case $2 in + POST-DEINSTALL) + post-deinstall + ;; +esac diff --git a/net/sipxpublisher/pkg-descr b/net/sipxpublisher/pkg-descr new file mode 100644 index 000000000000..bbb8a9ca2230 --- /dev/null +++ b/net/sipxpublisher/pkg-descr @@ -0,0 +1,5 @@ +sipXpublisher is a modular server for handling SIP event subscriptions; event +package types can be added through a dynamically linked library +interface, configured through a simple XML plugin configuration file. + +WWW: http://sipx-wiki.calivia.com/index.php/Main_Page diff --git a/net/sipxpublisher/pkg-plist b/net/sipxpublisher/pkg-plist new file mode 100644 index 000000000000..f899d4287f2c --- /dev/null +++ b/net/sipxpublisher/pkg-plist @@ -0,0 +1,19 @@ +bin/sipstatus +bin/sipstatus.sh +bin/sipxpublisher-config +etc/sipxpbx/process.d/sipstatus.process.xml +etc/sipxpbx/status-config.in +etc/sipxpbx/status-plugin.xml.in +include/statusserver/MwiPlugin.h +include/statusserver/Notifier.h +include/statusserver/NotifierBase.h +include/statusserver/PluginXmlParser.h +include/statusserver/StatusPluginReference.h +include/statusserver/StatusServer.h +include/statusserver/SubscribePersistThread.h +include/statusserver/SubscribeServerPluginBase.h +include/statusserver/SubscribeServerThread.h +include/statusserver/WebServer.h +@dirrm include/statusserver +@dirrm etc/sipxpbx/process.d +@dirrm etc/sipxpbx