diff options
author | tez <tez> | 2010-05-14 19:01:11 +0000 |
---|---|---|
committer | tez <tez> | 2010-05-14 19:01:11 +0000 |
commit | 0263305c106907adea8725f22e9c376292128ae2 (patch) | |
tree | 24bf331c23ae8c7d8398651892350be4a6cdc8fb /sysutils | |
parent | 75f2bd61956dc0732984eb70320e0450df275a0b (diff) | |
download | pkgsrc-0263305c106907adea8725f22e9c376292128ae2.tar.gz |
fix build on FreeBSD
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/lsof/Makefile | 10 |
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` ; \ |