git: 6851087b4dc0 - main - sysutils/ec2-scripts: Update to 1.11

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Wed, 08 Jun 2022 22:42:48 UTC
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6851087b4dc0eca92c148a86099f709748b97da9

commit 6851087b4dc0eca92c148a86099f709748b97da9
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2022-06-07 20:59:47 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2022-06-08 22:39:48 +0000

    sysutils/ec2-scripts: Update to 1.11
    
    While I'm here:
    * Fetch distfile directly from github,
    * Remove the NOFIRSTBOOT option, which was only useful on FreeBSD
    releases prior to FreeBSD 11.0, all of which have long since ceased
    to be supported.
    * Add a dependency on sysutils/ebsnvme-id, which is used by the new
    version of these scripts.
---
 sysutils/ec2-scripts/Makefile | 31 ++++++++++++-------------------
 sysutils/ec2-scripts/distinfo |  7 +++----
 2 files changed, 15 insertions(+), 23 deletions(-)

diff --git a/sysutils/ec2-scripts/Makefile b/sysutils/ec2-scripts/Makefile
index 0c42a077e290..c9f66051a1f6 100644
--- a/sysutils/ec2-scripts/Makefile
+++ b/sysutils/ec2-scripts/Makefile
@@ -1,43 +1,36 @@
 # Created by: Colin Percival
 
 PORTNAME=	ec2-scripts
-PORTVERSION=	1.10
+PORTVERSION=	1.11
 CATEGORIES=	sysutils
-MASTER_SITES=	http://freebsd-ec2-dist.s3.amazonaws.com/
-EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	cperciva@FreeBSD.org
 COMMENT=	Startup scripts for FreeBSD/EC2 environment
 
 LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
-OPTIONS_DEFINE=	NOFIRSTBOOT
-NOFIRSTBOOT_DESC=	Use old (pre-firstboot support) version of scripts
+RUN_DEPENDS=	${LOCALBASE}/sbin/ebsnvme-id:sysutils/ebsnvme-id
 
-NO_BUILD=	YES
-
-RC_SCRIPTS=	ec2_bootmail ec2_ephemeralswap ec2_fetchkey ec2_loghostkey
+USE_GITHUB=	YES
+GH_ACCOUNT=	cperciva
 
-.include <bsd.port.options.mk>
+NO_BUILD=	YES
 
-.if ${PORT_OPTIONS:MNOFIRSTBOOT}
-PORTVERSION=	1.5
-PORTREVISION=	1
-NO_INSTALL=	YES
-RC_SCRIPTS+=	ec2_firstboot panicmail
-.else
-RC_SCRIPTS+=	ec2_configinit
+RC_SCRIPTS=	ec2_bootmail \
+		ec2_configinit \
+		ec2_ephemeral_diskseen \
+		ec2_ephemeral_swap \
+		ec2_fetchkey \
+		ec2_loghostkey
 PLIST_FILES=	sbin/configinit
-.endif
 
 .for i in ${RC_SCRIPTS}
 PLIST_FILES+=	etc/rc.d/$i
 .endfor
 
-.if ! ${PORT_OPTIONS:MNOFIRSTBOOT}
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/configinit.sh ${STAGEDIR}${PREFIX}/sbin/configinit
-.endif
 
 post-install:
 .for i in ${RC_SCRIPTS}
diff --git a/sysutils/ec2-scripts/distinfo b/sysutils/ec2-scripts/distinfo
index a14eba37d8ec..a96421f7bbd5 100644
--- a/sysutils/ec2-scripts/distinfo
+++ b/sysutils/ec2-scripts/distinfo
@@ -1,4 +1,3 @@
-SHA256 (ec2-scripts-1.5.tgz) = b1c95ecf56d3bcd1e903714cd453666b3fba842ee9ad9a82da519f2b01f00934
-SIZE (ec2-scripts-1.5.tgz) = 4383
-SHA256 (ec2-scripts-1.10.tgz) = 4f8e2386b0eb5eac25e869da82d2c71af42894b0de37cf2f79684b7204c64069
-SIZE (ec2-scripts-1.10.tgz) = 4779
+TIMESTAMP = 1654664226
+SHA256 (cperciva-ec2-scripts-1.11_GH0.tar.gz) = cb4fae570ab9841fd5ace57ec38de677a8a8521f2237e76e8296ae632b9d5df2
+SIZE (cperciva-ec2-scripts-1.11_GH0.tar.gz) = 5952