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:
parent
ad9bbe9854
commit
ff48e37159
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272363
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user