blob: fe03c843064ea30bd7d4c0a7a6e4c34fd0b390d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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>
|