summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-16 20:59:35 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-16 20:59:35 +0000
commita9a75e4ebd123ca2dbdc1354c7965f746fb21b92 (patch)
treec7d9b0933e845fc3f65130010f00a10a2f7b0121 /net-mgmt
parent- Update to 0.11.0 (diff)
Convert to new options framework,
While here trim headers and fix pkgconfig dependency Approved by: decke (maintainer)
Notes
Notes: svn path=/head/; revision=309043
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nefu/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/net-mgmt/nefu/Makefile b/net-mgmt/nefu/Makefile
index 46a6d2c0efd4..fdb95c99a48c 100644
--- a/net-mgmt/nefu/Makefile
+++ b/net-mgmt/nefu/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: nefu
-# Date created: 17.10.2003
-# Whom: Kirill Ponomarew <krion@FreeBSD.org>
-#
+# Created by: Kirill Ponomarew <krion@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= nefu
PORTVERSION= 1.5
@@ -32,24 +28,24 @@ USERS= nefu
GROUPS= nefu
USE_OPENSSL= yes
-OPTIONS= LDAP "Enable OpenLDAP support" off \
- HTML "Enable HTML support" off
+OPTIONS_DEFINE= LDAP HTML
+HTML_DESC= HTML support
MAN1= nefu.1
MAN4= nefu.conf.4
DBDIR= /var/db/nefu
PLIST_FILES= bin/nefu
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_LDAP)
+.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}/lib
.else
CONFIGURE_ARGS+= --without-ldap
.endif
-.if defined(WITH_HTML)
+.if ${PORT_OPTIONS:MHTML}
CONFIGURE_ARGS+=--with-html=${WWWDIR}
PLIST_FILES+= "@unexec rm -rf "%D/%%WWWDIR%%" 2> /dev/null || true"
.else
@@ -72,11 +68,11 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/nefu.conf.4 ${PREFIX}/man/man4
post-install:
-.if defined(WITH_HTML)
+.if ${PORT_OPTIONS:MHTML}
${MKDIR} ${WWWDIR}
${CHOWN} -R ${USERS}:${GROUPS} ${WWWDIR}
.endif
${MKDIR} ${DBDIR}
${CHOWN} -R ${USERS}:${GROUPS} ${DBDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>