mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
release: Support r/o /usr/ports for cloudware
Set WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles when building tools needed for uploading cloudware images. While I'm here, adjust the bsdec2-image-upload build target to match the style used by the Azure/GCE/Vagrant Makefiles. MFC after: 3 days
This commit is contained in:
parent
4336161cc9
commit
6c87aed39c
@ -37,7 +37,9 @@ azure-check-depends:
|
|||||||
. endif
|
. endif
|
||||||
env ASSUME_ALWAYS_YES=yes pkg install -y sysutils/py-azure-cli
|
env ASSUME_ALWAYS_YES=yes pkg install -y sysutils/py-azure-cli
|
||||||
. else
|
. else
|
||||||
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/sysutils/py-azure-cli BATCH=1 all install clean
|
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/sysutils/py-azure-cli \
|
||||||
|
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
||||||
|
all install clean
|
||||||
. endif
|
. endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
@ -40,13 +40,17 @@ CW_EC2_PORTINSTALL=
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
cw-ec2-portinstall:
|
cw-ec2-portinstall:
|
||||||
.if exists(${PORTSDIR}/net/bsdec2-image-upload/Makefile)
|
.if !exists(/usr/local/bin/bsdec2-image-upload)
|
||||||
env - UNAME_r=${UNAME_r} PATH=$$PATH make -C ${PORTSDIR}/net/bsdec2-image-upload BATCH=1 all install clean
|
. if !exists(${PORTSDIR}/net/bsdec2-image-upload/Makefile)
|
||||||
.else
|
. if !exists(/usr/local/sbin/pkg-static)
|
||||||
. if !exists(/usr/local/sbin/pkg-static)
|
env ASSUME_ALWAYS_YES=yes pkg bootstrap -yf
|
||||||
env ASSUME_ALWAYS_YES=yes pkg bootstrap -y
|
. endif
|
||||||
. endif
|
|
||||||
env ASSUME_ALWAYS_YES=yes pkg install -y net/bsdec2-image-upload
|
env ASSUME_ALWAYS_YES=yes pkg install -y net/bsdec2-image-upload
|
||||||
|
. else
|
||||||
|
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/net/bsdec2-image-upload \
|
||||||
|
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
||||||
|
all install clean
|
||||||
|
. endif
|
||||||
.endif
|
.endif
|
||||||
@touch ${.TARGET}
|
@touch ${.TARGET}
|
||||||
|
|
||||||
|
@ -43,8 +43,12 @@ gce-check-depends:
|
|||||||
env ASSUME_ALWAYS_YES=yes pkg install -y net/google-cloud-sdk \
|
env ASSUME_ALWAYS_YES=yes pkg install -y net/google-cloud-sdk \
|
||||||
lang/python
|
lang/python
|
||||||
. else
|
. else
|
||||||
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/net/google-cloud-sdk BATCH=1 all install clean
|
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/net/google-cloud-sdk \
|
||||||
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/lang/python BATCH=1 all install clean
|
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
||||||
|
all install clean
|
||||||
|
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/lang/python \
|
||||||
|
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
||||||
|
all install clean
|
||||||
. endif
|
. endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
@ -57,7 +57,9 @@ vagrant-check-depends:
|
|||||||
. endif
|
. endif
|
||||||
env ASSUME_ALWAYS_YES=yes pkg install -y curl
|
env ASSUME_ALWAYS_YES=yes pkg install -y curl
|
||||||
. else
|
. else
|
||||||
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/ftp/curl BATCH=1 all install clean
|
env UNAME_r=${UNAME_r} make -C ${PORTSDIR}/ftp/curl \
|
||||||
|
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
||||||
|
all install clean
|
||||||
. endif
|
. endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user