diff options
author | obrien <obrien@FreeBSD.org> | 2001-06-16 08:06:56 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-06-16 08:06:56 +0800 |
commit | a5456e743e31346285ee035fae93a64eac607a2c (patch) | |
tree | ba5c2c1566f42e298c8c0e85d7dd05d0afc669bc /sysutils/lsof | |
parent | 6616de99088223c40ef4063902bba2d9612ea855 (diff) | |
download | freebsd-ports-graphics-a5456e743e31346285ee035fae93a64eac607a2c.tar.gz freebsd-ports-graphics-a5456e743e31346285ee035fae93a64eac607a2c.tar.zst freebsd-ports-graphics-a5456e743e31346285ee035fae93a64eac607a2c.zip |
LSOF's configure uses `FREEBSD_SYS' as a way to override /usr/src/sys as
the path to the kernel sources. Make the port Makefile follow suit.
Submitted by: dd
Diffstat (limited to 'sysutils/lsof')
-rw-r--r-- | sysutils/lsof/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index 98819370102..90817816757 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -28,10 +28,11 @@ HAS_CONFIGURE= yes CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= -n freebsd CONFIGURE_ENV= LSOF_CC="${CC}" +FREEBSD_SYS?= /usr/src/sys MAN8= lsof.8 .if defined(PACKAGE_BUILDING) -.if !exists(/usr/src/sys/miscfs/fdesc/fdesc.h) +.if !exists(${FREEBSD_SYS}/miscfs/fdesc/fdesc.h) BROKEN= 'please install kernel source for official package builds' .endif .endif @@ -65,14 +66,15 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof @${CHMOD} 0444 ${PREFIX}/share/lsof/00* -.if !exists(/sys/miscfs/fdesc/fdesc.h) && !exists(/usr/src/miscfs/fdesc/fdesc.h) +if !exists(${FREEBSD_SYS}/miscfs/fdesc/fdesc.h) post-install: @${ECHO} "************************************************************" @${ECHO} "* W a r n i n g *" @${ECHO} "* A more capable version of LSOF is built if you have *" - @${ECHO} "* kernel source installed and /sys exists. *" - @${ECHO} "* If this is the case, please ensure /sys is consistent *" - @${ECHO} "* with respect to your running kernel (i.e. not new than). *" + @${ECHO} "* the complete kernel source installed. *" + @${ECHO} "* If your kernel sources are somewhere other than *" + @${ECHO} "* /usr/src/sys, you may set the FREEBSD_SYS variable *" + @${ECHO} "* to the correct path. *" @${ECHO} "************************************************************" .endif |