aboutsummaryrefslogtreecommitdiffstats
path: root/comms/atslog
diff options
context:
space:
mode:
Diffstat (limited to 'comms/atslog')
-rw-r--r--comms/atslog/Makefile44
1 files changed, 19 insertions, 25 deletions
diff --git a/comms/atslog/Makefile b/comms/atslog/Makefile
index d03f974c445..50d1e6da4a9 100644
--- a/comms/atslog/Makefile
+++ b/comms/atslog/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: atslog
-# Date created: 27 November 2006
-# Whom: Alexander Logvinov <ports@logvinov.com>
-#
+# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$
-#
PORTNAME= atslog
PORTVERSION= 2.1.1
@@ -14,11 +10,13 @@ MASTER_SITES= BERLIOS
MAINTAINER= ports@FreeBSD.org
COMMENT= Software for collecting and analyzing calls from different PBX models
-OPTIONS= LIBWRAP "Enable TCP wrapper support" on \
- MYSQL "Enable MySQL support" on \
- PGSQL "Enable PostgreSQL support" off \
- WWW "Install web interface" on \
- WWWGD "Graphic reports" on
+OPTIONS_DEFINE= LIBWRAP WWW WWWGD DOCS
+OPTIONS_DEFAULT= LIBWRAP MYSQL WWW WWWGF
+OPTIONS_MULTI= DB
+OPTIONS_MULTI_DB= PGSQL MYSQL
+LIBWRAP_DESC= Enable TCP wrapper support
+WWW_DESC= Install web interface
+WWWGD_DESC= Graphic reports
GNU_CONFIGURE= yes
USE_PERL5= yes
@@ -30,42 +28,38 @@ MAN8= ${USE_RC_SUBR}.8 ${PORTNAME}master.8
CONFIGS= ${PORTNAME}.conf.default ${PORTNAME}.conf.default.rus
CONFIGURE_ARGS+=--localstatedir=/var
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
-IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL
-.endif
-
-.if !defined(WITHOUT_WWW)
+.if ${PORT_OPTIONS:MWWW}
USE_PHP= pcre
WANT_PHP_WEB= yes
PLIST_SUB+= WWW=""
-.if !defined(WITHOUT_WWWGD)
+.if ${PORT_OPTIONS:MWWWGD}
USE_PHP+= gd
.endif
-.if !defined(WITHOUT_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= mysql
.endif
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
.endif
.else
PLIST_SUB+= WWW="@comment "
.endif
-.if !defined(WITHOUT_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
BUILD_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
.endif
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
BUILD_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
.endif
-.if defined(WITHOUT_LIBWRAP)
+.if ! ${PORT_OPTIONS:MLIBWRAP}
CONFIGURE_ARGS+=--disable-libwrap
.endif
@@ -112,7 +106,7 @@ do-install:
${FIND} -E . -type f ! -iregex ".*\.(sh|orig)" -exec \
${INSTALL_DATA} "{}" "${PREFIX}/libexec/${PORTNAME}/{}" \;
${INSTALL_SCRIPT} ${WRKSRC}/libexec/genindex.sh ${PREFIX}/libexec/${PORTNAME}/
-.if !defined(WITHOUT_WWW)
+.if ${PORT_OPTIONS:MWWW}
${MKDIR} ${PREFIX}/www/${PORTNAME}
cd ${WRKSRC}/www && \
${FIND} . -type d ! -empty -exec \
@@ -125,7 +119,7 @@ do-install:
.endif
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/${PORTNAME}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
@@ -135,4 +129,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>