mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Amend hostname check to succeed if /bin/hostname fails.
Another work-around for those pesky amd64 machines.
This commit is contained in:
parent
0843ea4b4d
commit
696e5bd2a8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171292
@ -48,12 +48,13 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/man \
|
||||
# Attempt to avoid failures later on, when
|
||||
# makedbz is executed: we need a valid hostname.
|
||||
|
||||
.if exists(/bin/echo) && exists(/bin/hostname)
|
||||
HOSTNAME!= `/bin/echo /bin/hostname`
|
||||
.if exists(/bin/hostname)
|
||||
HOSTNAME!= /bin/hostname
|
||||
. if ${HOSTNAME} != ""
|
||||
HOSTNAME:= ${HOSTNAME:C/[^\.]//g}
|
||||
|
||||
. if ${HOSTNAME} == ""
|
||||
. if ${HOSTNAME} == ""
|
||||
IGNORE= requires a fully-qualified hostname in order to build
|
||||
. endif
|
||||
. endif
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user