diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2007-06-03 20:04:19 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2007-06-03 20:04:19 +0000 |
commit | 7f4b50ae11b8ff20ae761606db50428f5261238a (patch) | |
tree | 92b150f005c8461c19cd981ab53c62addfa8080f /www/asterisk-gui/Makefile | |
parent | 6c0b5d4da7355abc93214d64e54ff03c9c850955 (diff) |
Notes
Diffstat (limited to 'www/asterisk-gui/Makefile')
-rw-r--r-- | www/asterisk-gui/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/www/asterisk-gui/Makefile b/www/asterisk-gui/Makefile new file mode 100644 index 000000000000..fe03c843064e --- /dev/null +++ b/www/asterisk-gui/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: asterisk-gui +# Date created: 31 Dec 2006 +# Whom: pneumann@gmail.com +# +# $FreeBSD$ +# + +PORTNAME= asterisk-gui +PORTVERSION= 0.0.1r20070501 +CATEGORIES= www +MASTER_SITES= http://asterisk-bsd.googlecode.com/files/ +DISTNAME= ${PORTNAME}-snap-2007-05-01 + +MAINTAINER= pneumann@gmail.com +COMMENT= An asterisk ajax web manager + +RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk + +USE_AUTOTOOLS= automake:19 +USE_GMAKE= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message + +OPTIONS= SIP_QUEUES "In queues register users as SIP, not Agents" on \ + SAMPLE_CONFIG "Install sample configuration files" off + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ + ${WRKSRC}/config/backup.html \ + ${WRKSRC}/config/sysinfo.html \ + ${WRKSRC}/config/scripts/astman.js \ + ${WRKSRC}/tools/zapscan.c \ + ${WRKSRC}/tools/zapscan \ + ${WRKSRC}/scripts/gui_sysinfo \ + ${WRKSRC}/scripts/listfiles + @${FIND} ${WRKSRC} -name "*.orig" -o -name "*.bak" | ${XARGS} ${RM} + +run-autotools: + @(cd ${WRKSRC} && ./bootstrap.sh) + +checkconfig: + @cd ${WRKSRC} && ${GMAKE} checkconfig + +.include <bsd.port.pre.mk> + +.if defined(WITH_SIP_QUEUES) +EXTRA_PATCHES+= ${FILESDIR}/extra-config-queues.html +.endif + +post-install: +.if defined(WITH_SAMPLE_CONFIG) + @cd ${WRKSRC} && ${GMAKE} samples +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |