diff options
author | miwi <miwi@FreeBSD.org> | 2007-12-16 00:36:18 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-12-16 00:36:18 +0800 |
commit | 58f3a0cfcd34f0a74e232ef1213c0c04de766052 (patch) | |
tree | 612c3fa1e9611d3ecd7b2eda68b1d9950c129201 /net | |
parent | a490c747a43b8fb399c08f327d1717c2050ed9c0 (diff) | |
download | freebsd-ports-gnome-58f3a0cfcd34f0a74e232ef1213c0c04de766052.tar.gz freebsd-ports-gnome-58f3a0cfcd34f0a74e232ef1213c0c04de766052.tar.zst freebsd-ports-gnome-58f3a0cfcd34f0a74e232ef1213c0c04de766052.zip |
AstManProxy is a multi-threaded proxy server for Asterisk written in C/P-threads.
It is designed to handle communication with multiple Asterisk servers. It also
acts as a single point of contact for applications. AstManProxy supports
multiple input/output formats, including Standard, XML, CSV, and HTTP, HTTPS and
SSL.
WWW: http://www.popvox.com/astmanproxy/
Author: David C. Troy <dave@popvox.com>
PR: ports/117864
Submitted by: ditesh at gathani.org
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/astmanproxy/Makefile | 39 | ||||
-rw-r--r-- | net/astmanproxy/distinfo | 3 | ||||
-rw-r--r-- | net/astmanproxy/pkg-descr | 8 | ||||
-rw-r--r-- | net/astmanproxy/pkg-plist | 12 |
5 files changed, 63 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index fbf0c405e274..9572b654c931 100644 --- a/net/Makefile +++ b/net/Makefile @@ -37,6 +37,7 @@ SUBDIR += asterisk12-addons SUBDIR += asterisk12-app-ldap SUBDIR += astfax + SUBDIR += astmanproxy SUBDIR += atmsupport SUBDIR += avahi SUBDIR += avahi-app diff --git a/net/astmanproxy/Makefile b/net/astmanproxy/Makefile new file mode 100644 index 000000000000..a92ae1f945fc --- /dev/null +++ b/net/astmanproxy/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: astmanproxy +# Date created: 1 November 2007 +# Whom: ditesh@gathani.org +# +# $FreeBSD$ +# + +PORTNAME= astmanproxy +PORTVERSION= 1.21 +CATEGORIES= net +MASTER_SITES= http://www.popvox.com/ +DISTFILES= astmanproxy-latest.tgz + +MAINTAINER= ditesh@gathani.org +COMMENT= A multi-threaded proxy server for Asterisk + +USE_OPENSSL= yes +USE_GMAKE= yes + +post-patch: + ${REINPLACE_CMD} -e 's|^CONFDIR:.*|CONFDIR := ${PREFIX}/etc/asterisk|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|^CONFDIR_REAL.*|CONFDIR_REAL := ${PREFIX}/etc/asterisk|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|^PERMDIR:.*|PERMDIR:= ${PREFIX}/etc/asterisk|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|^PERMDIR_REAL.*|PERMDIR_REAL := ${PREFIX}/etc/asterisk|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|^LIBDIR.*|LIBDIR := ${PREFIX}/lib/asterisk|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|^BINDIR.*|BINDIR := ${PREFIX}/sbin|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|MKTEMP=.*|MKTEMP=/usr/bin/mktemp|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|LOGDIR=/var/log/asterisk|LOGDIR=/var/log|' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|-ldl ||' ${WRKSRC}/Makefile + +post-install: + @${INSTALL_DATA} ${WRKSRC}/configs/astmanproxy.conf ${PREFIX}/etc/asterisk/astmanproxy.conf.sample + @[ -f ${PREFIX}/etc/asterisk/astmanproxy.conf ] || \ + ${INSTALL_DATA} ${WRKSRC}/configs/astmanproxy.conf ${PREFIX}/etc/asterisk/astmanproxy.conf + @${INSTALL_DATA} ${WRKSRC}/configs/astmanproxy.users ${PREFIX}/etc/asterisk/astmanproxy.users.sample + @[ -f ${PREFIX}/etc/asterisk/astmanproxy.users ] || \ + ${INSTALL_DATA} ${WRKSRC}/configs/astmanproxy.users ${PREFIX}/etc/asterisk/astmanproxy.users + +.include <bsd.port.mk> diff --git a/net/astmanproxy/distinfo b/net/astmanproxy/distinfo new file mode 100644 index 000000000000..52217621bedc --- /dev/null +++ b/net/astmanproxy/distinfo @@ -0,0 +1,3 @@ +MD5 (astmanproxy-latest.tgz) = d1b018bd5446514cd8bd1c337b98069f +SHA256 (astmanproxy-latest.tgz) = d909dc57eb949700e620439f64dd95c183a3c654abd3ac37fba67966486b8e7e +SIZE (astmanproxy-latest.tgz) = 56081 diff --git a/net/astmanproxy/pkg-descr b/net/astmanproxy/pkg-descr new file mode 100644 index 000000000000..16f093fbcaa5 --- /dev/null +++ b/net/astmanproxy/pkg-descr @@ -0,0 +1,8 @@ +AstManProxy is a multi-threaded proxy server for Asterisk written in C/P-threads. +It is designed to handle communication with multiple Asterisk servers. It also +acts as a single point of contact for applications. AstManProxy supports +multiple input/output formats, including Standard, XML, CSV, and HTTP, HTTPS and +SSL. + +WWW: http://www.popvox.com/astmanproxy/ +Author: David C. Troy <dave@popvox.com> diff --git a/net/astmanproxy/pkg-plist b/net/astmanproxy/pkg-plist new file mode 100644 index 000000000000..5e0822aae63d --- /dev/null +++ b/net/astmanproxy/pkg-plist @@ -0,0 +1,12 @@ +@unexec if cmp -s %%PREFIX%%/etc/asterisk/astmanproxy.conf %%PREFIX%%/etc/asterisk/astmanproxy.conf.sample; then rm %%PREFIX%%/etc/asterisk/astmanproxy.conf; fi +@unexec if cmp -s %%PREFIX%%/etc/asterisk/astmanproxy.users %%PREFIX%%/etc/asterisk/astmanproxy.users.sample; then rm %%PREFIX%%/etc/asterisk/astmanproxy.users; fi +etc/asterisk/astmanproxy.conf.sample +etc/asterisk/astmanproxy.users.sample +lib/asterisk/modules/csv.so +lib/asterisk/modules/http.so +lib/asterisk/modules/standard.so +lib/asterisk/modules/xml.so +sbin/astmanproxy +@dirrm lib/asterisk/modules +@dirrm lib/asterisk +@dirrmtry etc/asterisk |