1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Always resolve PORTSDIR to absolute paths using realpath(1).

Reported by:	madpilot
Reviewed by:	bapt
X-MFC-With:	272282
This commit is contained in:
Will Andrews 2014-10-01 15:02:37 +00:00
parent ad9bbe9854
commit ff48e37159
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272363
2 changed files with 8 additions and 8 deletions

View File

@ -5,13 +5,13 @@
# in the default /usr/ports. The ../../.. case is in case ports ever grows
# a third level.
.if exists(${.CURDIR}/Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}
PORTSDIR!= realpath ${.CURDIR}
.elif exists(${.CURDIR}/../Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}/..
PORTSDIR!= realpath ${.CURDIR}/..
.elif exists(${.CURDIR}/../../Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}/../..
PORTSDIR!= realpath ${.CURDIR}/../..
.elif exists(${.CURDIR}/../../../Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}/../../..
PORTSDIR!= realpath ${.CURDIR}/../../..
.else
PORTSDIR= /usr/ports
.endif

View File

@ -5,13 +5,13 @@
# in the default /usr/ports. The ../../.. case is in case ports ever grows
# a third level.
.if exists(${.CURDIR}/Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}
PORTSDIR!= realpath ${.CURDIR}
.elif exists(${.CURDIR}/../Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}/..
PORTSDIR!= realpath ${.CURDIR}/..
.elif exists(${.CURDIR}/../../Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}/../..
PORTSDIR!= realpath ${.CURDIR}/../..
.elif exists(${.CURDIR}/../../../Mk/bsd.port.mk)
PORTSDIR= ${.CURDIR}/../../..
PORTSDIR!= realpath ${.CURDIR}/../../..
.else
PORTSDIR= /usr/ports
.endif