aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/nedi
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2011-12-25 19:28:06 +0000
committerWesley Shields <wxs@FreeBSD.org>2011-12-25 19:28:06 +0000
commit8e22c83f10cf54baef1e11271b82c70ff7601035 (patch)
tree7dcc9abff07e2f6b6922fe3b0e180a058a457f44 /net-mgmt/nedi
parent5f4e51e3732941c3791c1adb34d72a62687a5d25 (diff)
downloadports-8e22c83f10cf54baef1e11271b82c70ff7601035.tar.gz
ports-8e22c83f10cf54baef1e11271b82c70ff7601035.zip
Notes
Diffstat (limited to 'net-mgmt/nedi')
-rw-r--r--net-mgmt/nedi/Makefile12
1 files changed, 2 insertions, 10 deletions
diff --git a/net-mgmt/nedi/Makefile b/net-mgmt/nedi/Makefile
index ef72653f4ec0..5c16c60e53dc 100644
--- a/net-mgmt/nedi/Makefile
+++ b/net-mgmt/nedi/Makefile
@@ -24,19 +24,11 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
USE_PERL5= yes
-# The options part is copied from databases/phpmyadmin
-# and looks this way, because we have to USE_PHP
-# before pre.mk, however WITH_*, WITHOUT_* are set only
-# after pre.mk. The solution is to set them by ourselves.
OPTIONS= GD "Use GD" OFF
-PORT_DBDIR?= /var/db/ports
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
-OPTIONSFILE?= ${PORT_DBDIR}/${LATEST_LINK}/options
-.if exists(${OPTIONSFILE})
-.include "${OPTIONSFILE}"
-.endif
+.include <bsd.port.options.mk>
USE_PHP= session snmp mysql
WANT_PHP_WEB= yes
@@ -53,7 +45,7 @@ SUB_LIST= NEDIDIR=${NEDIDIR}
post-patch:
@${REINPLACE_CMD} -e 's|/var/nedi|${NEDIDIR}|' ${WRKSRC}/html/inc/libgraph.php
@${REINPLACE_CMD} -e "s|'/etc|'${PREFIX}/etc|" ${WRKSRC}/html/inc/libmisc.php
- @${FIND} ${WRKSRC} -name *.bak -or -name *.orig | ${XARGS} ${RM}
+ @${FIND} ${WRKSRC} -name *.bak -or -name *.orig -delete
do-install:
@ ${MKDIR} -m 755 ${NEDIDIR}