aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-12-26 04:01:28 +0800
committermiwi <miwi@FreeBSD.org>2009-12-26 04:01:28 +0800
commitec74dbc857ce148c5aaf942c5dc813a4a0a022a5 (patch)
tree74a3e25ab5294d86d09523f4be7a794c61b1876e
parent455564a27e075493de4a9e42be999e7b5690f249 (diff)
downloadfreebsd-ports-gnome-ec74dbc857ce148c5aaf942c5dc813a4a0a022a5.tar.gz
freebsd-ports-gnome-ec74dbc857ce148c5aaf942c5dc813a4a0a022a5.tar.zst
freebsd-ports-gnome-ec74dbc857ce148c5aaf942c5dc813a4a0a022a5.zip
- Add optional support for sysutils/lsof
PR: 141186 Submitted by: olli hauer <ohauer@gmx.de> Approved by: maintainer implicit
-rw-r--r--ports-mgmt/tinderbox/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/ports-mgmt/tinderbox/Makefile b/ports-mgmt/tinderbox/Makefile
index b23605b71e39..5d96a080db1b 100644
--- a/ports-mgmt/tinderbox/Makefile
+++ b/ports-mgmt/tinderbox/Makefile
@@ -23,7 +23,8 @@ OPTIONS= PGSQL "With pgsql" Off \
WEBUI "Install web interface" On \
APACHE "Use Apache for web interface" On \
LIGHTTPD "Use LightHTTPD for web interface" Off \
- CHECK_FOR_ROOT "Check it ./tc is run by uid 0" On
+ CHECK_FOR_ROOT "Check if ./tc is run by uid 0" On \
+ LSOF "For killMountProcesses() when using nullfs" On
NO_BUILD= yes
WANT_PERL= yes
@@ -83,6 +84,10 @@ USE_APACHE= 1.3+
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
.endif
+.if defined(WITH_LSOF)
+RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof
+.endif
+
pre-everything::
.if (!defined(WITHOUT_APACHE) || defined(WITH_LIGHTTPD)) && !defined(WITH_WEBUI)
@${ECHO_CMD} "It doesn't make sense to depend on Apache or LightHTTPD if not using either web interface."
@@ -97,7 +102,7 @@ post-extract:
post-patch:
.ifdef WITHOUT_CHECK_FOR_ROOT
${REINPLACE_CMD} -e 's/^if \[ `id -u` != 0 \]; then/if false; then/' \
- ${WRKSRC}/tc
+ ${WRKSRC}/tc
.endif
@cd ${WRKSRC} && ${FIND} -E . -regex '.*(orig|bak)' -exec ${RM} {} \;