aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.subdir.mk
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2011-07-21 13:04:39 +0800
committerlinimon <linimon@FreeBSD.org>2011-07-21 13:04:39 +0800
commitfded8db6f266115a56d1376a8988ad6ce99df554 (patch)
tree5ff7d98e1194fc133d7e4b9827a369a282ed7093 /Mk/bsd.port.subdir.mk
parentb52944915a792d1df1b4539b6ffef32bb06c623c (diff)
downloadfreebsd-ports-gnome-fded8db6f266115a56d1376a8988ad6ce99df554.tar.gz
freebsd-ports-gnome-fded8db6f266115a56d1376a8988ad6ce99df554.tar.zst
freebsd-ports-gnome-fded8db6f266115a56d1376a8988ad6ce99df554.zip
Fix INDEXFILE for upcoming 10.0 branch.
PR: ports/158750 Submitted by: crees Tested on: pointyhat-west
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r--Mk/bsd.port.subdir.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
index 0456e41e01da..556e9e543fa0 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -70,8 +70,8 @@ ARCH!= ${UNAME} -p
.if !defined(OSVERSION)
.if exists(/usr/include/sys/param.h)
OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < /usr/include/sys/param.h
-.elif exists(/usr/src/sys/sys/param.h)
-OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < /usr/src/sys/sys/param.h
+.elif exists(${SRC_BASE}/sys/sys/param.h)
+OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC_BASE}/sys/sys/param.h
.else
OSVERSION!= ${SYSCTL} -n kern.osreldate
.endif
@@ -144,7 +144,7 @@ PKGINSTALLVER!= ${PKG_INFO} -P 2>/dev/null | ${SED} -e 's/.*: //'
.endif
INDEXDIR?= ${PORTSDIR}
-INDEXFILE?= INDEX-${OSVERSION:C/([0-9]).*/\1/}
+INDEXFILE?= INDEX-${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}
# local customization of the ports tree
.if exists(${.CURDIR}/Makefile.local)