Make cloudsetup version overrideable
This is useful for applying hotfixes before the updated port lands in FreeBSD ports.
This commit is contained in:
parent
d3369d321a
commit
a4daf87a34
|
@ -15,6 +15,10 @@ IMAGE_PATH_ZFS="freebsd-zfs-$RELEASE-$(date -I).img.qcow2"
|
||||||
IMAGE_PATH_UFS="freebsd-ufs-$RELEASE-$(date -I).img.qcow2"
|
IMAGE_PATH_UFS="freebsd-ufs-$RELEASE-$(date -I).img.qcow2"
|
||||||
IMAGE_SIZE=10G
|
IMAGE_SIZE=10G
|
||||||
|
|
||||||
|
# Comment out to simply use latest version
|
||||||
|
# Hash checking is disabled when specifying this
|
||||||
|
CLOUDSETUP_VERSION=1.1
|
||||||
|
|
||||||
DIST_BASE="https://download.freebsd.org/ftp/releases/$ARCH/$RELEASE"
|
DIST_BASE="https://download.freebsd.org/ftp/releases/$ARCH/$RELEASE"
|
||||||
ZPOOL=zroot
|
ZPOOL=zroot
|
||||||
ZPOOL_TMP="zinstalling"
|
ZPOOL_TMP="zinstalling"
|
||||||
|
@ -63,6 +67,12 @@ then
|
||||||
else
|
else
|
||||||
portsnap extract
|
portsnap extract
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$CLOUDSETUP_VERSION" ]
|
||||||
|
then
|
||||||
|
sed -i .bak -e '/^PORTVERSION=/ s/[0-9]*\.[0-9]*/'"$CLOUDSETUP_VERSION/" /usr/ports/sysutils/firstboot-cloudsetup/Makefile
|
||||||
|
make -C /usr/ports/sysutils/firstboot-cloudsetup makesum
|
||||||
|
fi
|
||||||
make -C /usr/ports/sysutils/firstboot-cloudsetup clean package
|
make -C /usr/ports/sysutils/firstboot-cloudsetup clean package
|
||||||
CLOUDSETUP_VERSION="$(fgrep VERSION /usr/ports/sysutils/firstboot-cloudsetup/Makefile | cut -f2- | tr -d \\t)"
|
CLOUDSETUP_VERSION="$(fgrep VERSION /usr/ports/sysutils/firstboot-cloudsetup/Makefile | cut -f2- | tr -d \\t)"
|
||||||
CLOUDSETUP_PKG="/usr/ports/sysutils/firstboot-cloudsetup/work/pkg/firstboot-cloudsetup-${CLOUDSETUP_VERSION}.pkg"
|
CLOUDSETUP_PKG="/usr/ports/sysutils/firstboot-cloudsetup/work/pkg/firstboot-cloudsetup-${CLOUDSETUP_VERSION}.pkg"
|
||||||
|
|
Loading…
Reference in New Issue