diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-12-15 16:36:18 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-12-15 16:36:18 +0000 |
commit | e91b20e86da9bedcf7b80a4991ea0efdd0b10f7a (patch) | |
tree | 0cf40856dbef66ae361c6126626158cdeafbfbfa /net/astmanproxy | |
parent | 9b704e84e8b4773a4a044b7a464044b7d36269b8 (diff) |
Notes
Diffstat (limited to 'net/astmanproxy')
-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 |
4 files changed, 62 insertions, 0 deletions
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 |