Add the cw-ec2-portinstall target to always install the
net/bsdec2-image-upload port. MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f574c7e44c
commit
85852e8ad9
@ -12,13 +12,17 @@ AMINAMESUFFIX!= date +-%Y-%m-%d
|
|||||||
PUBLISH= --public
|
PUBLISH= --public
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
ec2ami: cw-ec2
|
cw-ec2-portinstall:
|
||||||
.if !exists(/usr/local/bin/bsdec2-image-upload)
|
.if exists(${PORTSDIR}/net/bsdec2-image-upload/Makefile)
|
||||||
@echo "--------------------------------------------------------------"
|
make -C ${PORTSDIR}/net/bsdec2-image-upload BATCH=1 all install clean
|
||||||
@echo ">>> Creating EC2 AMIs requires bsdec2-image-upload"
|
.else
|
||||||
@echo "--------------------------------------------------------------"
|
. if !exists(/usr/local/sbin/pkg-static)
|
||||||
@false
|
env ASSUME_ALWAYS_YES=yes pkg bootstrap -y
|
||||||
|
. endif
|
||||||
|
env ASSUME_ALWAYS_YES=yes pkg install -y net/bsdec2-image-upload
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
ec2ami: cw-ec2 cw-ec2-portinstall
|
||||||
.if !defined(AWSKEYFILE) || !exists(${AWSKEYFILE})
|
.if !defined(AWSKEYFILE) || !exists(${AWSKEYFILE})
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
@echo ">>> AWSKEYFILE must point at AWS keys for EC2 AMI creation"
|
@echo ">>> AWSKEYFILE must point at AWS keys for EC2 AMI creation"
|
||||||
|
Loading…
Reference in New Issue
Block a user