Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 May 2015 02:21:30 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r282618 - stable/10/release
Message-ID:  <201505080221.t482LULD032831@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Fri May  8 02:21:29 2015
New Revision: 282618
URL: https://svnweb.freebsd.org/changeset/base/282618

Log:
  MFC r282419, r282435:
   r282419:
     Add logic to detect if the net/bsdec2-image-upload port needs
     to be installed. [1]
  
     For the cw-ec2-portinstall and ec2ami targets, touch the
     .TARGET file after completion to prevent duplicate invocations.
  
     Add cw-ec2-portinstall and ec2ami to CLEANFILES.
  
   r282435:
     Remove a debugging line that snuck in with the previous commit.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/release/Makefile.ec2
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/release/Makefile.ec2
==============================================================================
--- stable/10/release/Makefile.ec2	Fri May  8 00:56:56 2015	(r282617)
+++ stable/10/release/Makefile.ec2	Fri May  8 02:21:29 2015	(r282618)
@@ -12,6 +12,15 @@ AMINAMESUFFIX!=	date +-%Y-%m-%d
 PUBLISH=	--public
 .endif
 
+CLEANFILES+=		ec2ami
+
+.if !exists(/usr/local/bin/bsdec2-image-upload)
+CW_EC2_PORTINSTALL=	cw-ec2-portinstall
+CLEANFILES+=		${CW_EC2_PORTINSTALL}
+.else
+CW_EC2_PORTINSTALL=
+.endif
+
 cw-ec2-portinstall:
 .if exists(${PORTSDIR}/net/bsdec2-image-upload/Makefile)
 	make -C ${PORTSDIR}/net/bsdec2-image-upload BATCH=1 all install clean
@@ -21,8 +30,9 @@ cw-ec2-portinstall:
 . endif
 	env ASSUME_ALWAYS_YES=yes pkg install -y net/bsdec2-image-upload
 .endif
+	@touch ${.TARGET}
 
-ec2ami: cw-ec2 cw-ec2-portinstall
+ec2ami: cw-ec2 ${CW_EC2_PORTINSTALL}
 .if !defined(AWSKEYFILE) || !exists(${AWSKEYFILE})
 	@echo "--------------------------------------------------------------"
 	@echo ">>> AWSKEYFILE must point at AWS keys for EC2 AMI creation"
@@ -46,3 +56,4 @@ ec2ami: cw-ec2 cw-ec2-portinstall
 	    "${TYPE} ${REVISION}-${BRANCH}${AMINAMESUFFIX}"	\
 	    "${TYPE} ${REVISION}-${BRANCH}"			\
 	    ${AWSREGION} ${AWSBUCKET} ${AWSKEYFILE}
+	@touch ${.TARGET}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505080221.t482LULD032831>