summaryrefslogtreecommitdiff
path: root/sysutils/lsof
diff options
context:
space:
mode:
authortez <tez@pkgsrc.org>2010-05-14 19:01:11 +0000
committertez <tez@pkgsrc.org>2010-05-14 19:01:11 +0000
commit4c95e082f35e8b211eed7a67edc13438cff2a1f3 (patch)
tree24bf331c23ae8c7d8398651892350be4a6cdc8fb /sysutils/lsof
parentdba306f8f7db09806a7b9ec0abc4de5342d9595e (diff)
downloadpkgsrc-4c95e082f35e8b211eed7a67edc13438cff2a1f3.tar.gz
fix build on FreeBSD
Diffstat (limited to 'sysutils/lsof')
-rw-r--r--sysutils/lsof/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index fc4a6cf5d1e..a58a8f0940e 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.107 2010/05/10 08:21:41 sbd Exp $
+# $NetBSD: Makefile,v 1.108 2010/05/14 19:01:11 tez Exp $
DISTNAME= lsof_4.83
PKGNAME= ${DISTNAME:S/_/-/}
@@ -58,12 +58,20 @@ REAL_GROUP= ${REAL_ROOT_GROUP}
.if ${OPSYS} == "NetBSD"
REAL_GROUP= kmem
CONFIGURE_ENV+= NETBSD_SYS="${NETBSDSRCDIR}/sys"
+.elif ${OPSYS} == "FreeBSD"
+BUILDLINK_PASSTHRU_DIRS+= /usr/src/sys
.elif ${OPSYS} == "SunOS"
MAKE_ENV+= CPPFLAGS=
.endif
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
post-extract:
+.if ${OPSYS} == "FreeBSD"
+ @(if [ ! -x /usr/src/sys ]; then \
+ ${ECHO} "Lsof requires kernel sources to be found in /usr/src/sys." ; \
+ exit 1 ; \
+ fi)
+.endif
@(cd ${TMPWRK} ; \
EXPMD5=`${GREP} 'MD5 (' README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
CALCMD5=`${DIGEST} MD5 ${SRCBALL_NAME}.tar` ; \