release: split up Oracle Cloudware tools
Sometimes one or the other but not both tools are present; this ensures that all cases are correctly handled. Reported by: cperciva Approved by: cperciva (re) Sponsored by: SkunkWerks, GmbH Reviewed by: cperciva Differential Revision: https://reviews.freebsd.org/D53186 MFC after: 2 days
This commit is contained in:
+11
-4
@@ -24,21 +24,28 @@
|
|||||||
# Syncing to all sites should take 2-3 hours after this final step.
|
# Syncing to all sites should take 2-3 hours after this final step.
|
||||||
|
|
||||||
ORACLE_BASENAME= ${OSRELEASE}-${BUILDDATE}${GITREV:C/^(.+)/-\1/}
|
ORACLE_BASENAME= ${OSRELEASE}-${BUILDDATE}${GITREV:C/^(.+)/-\1/}
|
||||||
ORACLE_PORTS_LIST= ftp/curl emulators/qemu@tools
|
|
||||||
CLEANFILES+= cw-oracle-portinstall
|
CLEANFILES+= cw-oracle-portinstall
|
||||||
|
|
||||||
cw-oracle-portinstall: .PHONY
|
cw-oracle-portinstall: .PHONY
|
||||||
.if !exists(/usr/local/bin/curl) || !exists(/usr/local/bin/qemu-img)
|
.if (!exists(/usr/local/bin/curl) || !exists(/usr/local/bin/qemu-img)) && !exists(${PORTSDIR}/Makefile)
|
||||||
. if !exists(${PORTSDIR}/Makefile)
|
|
||||||
. 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 -yf
|
||||||
. endif
|
. endif
|
||||||
env ASSUME_ALWAYS_YES=yes pkg install -y ${ORACLE_PORTS_LIST}
|
.endif
|
||||||
|
.if !exists(/usr/local/bin/curl)
|
||||||
|
. if !exists(${PORTSDIR}/Makefile)
|
||||||
|
env ASSUME_ALWAYS_YES=yes pkg install -y ftp/curl
|
||||||
. else
|
. else
|
||||||
env UNAME_r=${UNAME_r} make -C \
|
env UNAME_r=${UNAME_r} make -C \
|
||||||
${PORTSDIR}/ftp/curl \
|
${PORTSDIR}/ftp/curl \
|
||||||
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
||||||
all install clean
|
all install clean
|
||||||
|
. endif
|
||||||
|
.endif
|
||||||
|
.if !exists(/usr/local/bin/qemu-img)
|
||||||
|
. if !exists(${PORTSDIR}/Makefile)
|
||||||
|
env ASSUME_ALWAYS_YES=yes pkg install -y emulators/qemu@tools
|
||||||
|
. else
|
||||||
env UNAME_r=${UNAME_r} FLAVOR=tools make -C \
|
env UNAME_r=${UNAME_r} FLAVOR=tools make -C \
|
||||||
${PORTSDIR}/emulators/qemu \
|
${PORTSDIR}/emulators/qemu \
|
||||||
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
BATCH=1 WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles \
|
||||||
|
|||||||
Reference in New Issue
Block a user