aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/pandorafms_console
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-05 03:13:31 +0800
committerbapt <bapt@FreeBSD.org>2013-06-05 03:13:31 +0800
commitd165698a45f50cf55e3d4a80d867422aff7e8f36 (patch)
treee119ba30dbd6f5f16dddad9f3bb362497319e8f3 /net-mgmt/pandorafms_console
parent57b5f38140ed9dcac879857c8b5077cf5796ad29 (diff)
downloadfreebsd-ports-gnome-d165698a45f50cf55e3d4a80d867422aff7e8f36.tar.gz
freebsd-ports-gnome-d165698a45f50cf55e3d4a80d867422aff7e8f36.tar.zst
freebsd-ports-gnome-d165698a45f50cf55e3d4a80d867422aff7e8f36.zip
Convert to new options framework
Diffstat (limited to 'net-mgmt/pandorafms_console')
-rw-r--r--net-mgmt/pandorafms_console/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/net-mgmt/pandorafms_console/Makefile b/net-mgmt/pandorafms_console/Makefile
index 193e7ce5aeda..68037c1f4386 100644
--- a/net-mgmt/pandorafms_console/Makefile
+++ b/net-mgmt/pandorafms_console/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: pandorafms_console
-# Date created: 2011-11-21
-# Whom: KIKUCHI Koichiro <koichiro@rworks.jp>
-#
+# Created by: KIKUCHI Koichiro <koichiro@rworks.jp>
# $FreeBSD$
-#
PORTNAME= pandora_console
PORTVERSION= ${PANDORA_VERSION}
@@ -18,7 +14,8 @@ LICENSE_FILE= ${PANDORA_LICENSE_FILE}
RUN_DEPENDS= ${LOCALBASE}/bin/twopi:${PORTSDIR}/graphics/graphviz
-OPTIONS= PGSQL "Use PostgreSQL backend (experimental)" off
+OPTIONS_DEFINE= PGSQL
+PGSQL_DESC= Use PostgreSQL backend (experimental)
USE_APACHE_RUN= 22+
USE_PHP= curl gd gettext json ldap mbstring mysql snmp session \
@@ -32,7 +29,7 @@ SUB_LIST+= APACHEETCDIR=${PREFIX}/${APACHEETCDIR}
.include <bsd.port.pre.mk>
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
.endif
@@ -52,7 +49,7 @@ do-install:
@cd ${WRKSRC} && ${SH} pandora_console_install --force-install
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for x in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${x} ${DOCSDIR}