2013-03-17 17:44:03 +01:00
|
|
|
# Created by: Colin Percival
|
2012-08-16 06:57:49 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ec2-scripts
|
2014-05-17 18:40:54 +02:00
|
|
|
PORTVERSION= 1.9
|
2012-08-16 06:57:49 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://freebsd-ec2-dist.s3.amazonaws.com/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2013-03-17 17:44:03 +01:00
|
|
|
MAINTAINER= cperciva@FreeBSD.org
|
2012-08-16 06:57:49 +02:00
|
|
|
COMMENT= Startup scripts for FreeBSD/EC2 environment
|
|
|
|
|
2013-11-05 00:54:00 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= NOFIRSTBOOT
|
|
|
|
NOFIRSTBOOT_DESC= Use old (pre-firstboot support) version of scripts
|
|
|
|
|
2012-08-16 06:57:49 +02:00
|
|
|
NO_BUILD= YES
|
|
|
|
|
2013-11-05 00:54:00 +01:00
|
|
|
RC_SCRIPTS= ec2_bootmail ec2_ephemeralswap ec2_fetchkey ec2_loghostkey
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNOFIRSTBOOT}
|
|
|
|
PORTVERSION= 1.5
|
|
|
|
PORTREVISION= 1
|
2013-12-08 06:46:31 +01:00
|
|
|
NO_INSTALL= YES
|
2013-11-05 00:54:00 +01:00
|
|
|
RC_SCRIPTS+= ec2_firstboot panicmail
|
2013-12-08 06:46:31 +01:00
|
|
|
.else
|
|
|
|
RC_SCRIPTS+= ec2_configinit
|
|
|
|
PLIST_FILES= sbin/configinit
|
2013-11-05 00:54:00 +01:00
|
|
|
.endif
|
2012-08-16 06:57:49 +02:00
|
|
|
|
|
|
|
.for i in ${RC_SCRIPTS}
|
|
|
|
PLIST_FILES+= etc/rc.d/$i
|
|
|
|
.endfor
|
|
|
|
|
2013-12-08 06:46:31 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MNOFIRSTBOOT}
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/configinit.sh ${STAGEDIR}${PREFIX}/sbin/configinit
|
|
|
|
.endif
|
|
|
|
|
2012-08-16 06:57:49 +02:00
|
|
|
post-install:
|
2013-11-05 00:54:00 +01:00
|
|
|
.for i in ${RC_SCRIPTS}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/etc/rc.d/
|
|
|
|
.endfor
|
2012-08-16 06:57:49 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|