diff options
author | gjb <gjb@FreeBSD.org> | 2015-04-27 21:38:12 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-04-27 21:38:12 +0000 |
commit | 85852e8ad9cdc6b85238439a1208b4a6bdbd320c (patch) | |
tree | 103fdc17e9df83073e39626cec90dc88d1dd2f25 | |
parent | f574c7e44ca19a6f744f79dd85465637eb658e5b (diff) | |
download | FreeBSD-src-85852e8ad9cdc6b85238439a1208b4a6bdbd320c.zip FreeBSD-src-85852e8ad9cdc6b85238439a1208b4a6bdbd320c.tar.gz |
Add the cw-ec2-portinstall target to always install the
net/bsdec2-image-upload port.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | release/Makefile.ec2 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/release/Makefile.ec2 b/release/Makefile.ec2 index 869ebc1..f74d320 100644 --- a/release/Makefile.ec2 +++ b/release/Makefile.ec2 @@ -12,13 +12,17 @@ AMINAMESUFFIX!= date +-%Y-%m-%d PUBLISH= --public .endif -ec2ami: cw-ec2 -.if !exists(/usr/local/bin/bsdec2-image-upload) - @echo "--------------------------------------------------------------" - @echo ">>> Creating EC2 AMIs requires bsdec2-image-upload" - @echo "--------------------------------------------------------------" - @false +cw-ec2-portinstall: +.if exists(${PORTSDIR}/net/bsdec2-image-upload/Makefile) + make -C ${PORTSDIR}/net/bsdec2-image-upload BATCH=1 all install clean +.else +. if !exists(/usr/local/sbin/pkg-static) + env ASSUME_ALWAYS_YES=yes pkg bootstrap -y +. endif + env ASSUME_ALWAYS_YES=yes pkg install -y net/bsdec2-image-upload .endif + +ec2ami: cw-ec2 cw-ec2-portinstall .if !defined(AWSKEYFILE) || !exists(${AWSKEYFILE}) @echo "--------------------------------------------------------------" @echo ">>> AWSKEYFILE must point at AWS keys for EC2 AMI creation" |