aboutsummaryrefslogtreecommitdiff
path: root/www/asterisk-stat
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-03-22 11:53:34 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-03-22 11:53:34 +0000
commit606c17b9c8ceebf3bba34704094912556f260836 (patch)
tree5f0dbe9212a3377e7182c77ac610d48050fcb2b0 /www/asterisk-stat
parent919430dbf0343ab4fb4c8362bb4b711509b3981b (diff)
downloadports-606c17b9c8ceebf3bba34704094912556f260836.tar.gz
ports-606c17b9c8ceebf3bba34704094912556f260836.zip
Notes
Diffstat (limited to 'www/asterisk-stat')
-rw-r--r--www/asterisk-stat/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/www/asterisk-stat/Makefile b/www/asterisk-stat/Makefile
index 863cddeb27e4..9b7005bcf6bb 100644
--- a/www/asterisk-stat/Makefile
+++ b/www/asterisk-stat/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: www/asterisk-stat
-# Date created: 16 June 2007
-# Whom: Fumihiko Kimura <jfkimura@yahoo.com>
-#
+# Created by: Fumihiko Kimura <jfkimura@yahoo.com>
# $FreeBSD$
-#
PORTNAME= asterisk-stat
PORTVERSION= 2.0.1
@@ -26,11 +22,12 @@ WRKSRC= ${WRKDIR}/${SITE_SUBDIR}
SUB_FILES= pkg-message
SUB_LIST+= ASTERISKDIR=${ASTERISKDIR}
-OPTIONS= PGSQL "Use PostgreSQL instead of MySQL" off
+OPTIONS_DEFINE= PGSQL
+PGSQL_DESC= Use PostgreSQL instead of MySQL
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MGSQL}
ASTERISKSTATDB= pgsql
EXTRA_PATCHES+= ${FILESDIR}/pgsql__patch-call.log.php
.else
@@ -60,4 +57,4 @@ do-install:
${INSTALL_DATA} ${FILESDIR}/cdr_${ASTERISKSTATDB}.tbl ${PREFIX}/etc/asterisk
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${ASTERISKDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>