freebsd-ports/sysutils/ec2-scripts/Makefile
Colin Percival ad45e8d2b7 Update to 1.8. The ec2_fetchkey rc.d script now creates the user
specified in the $ec2_fetchkey_user variable, so that it can be
(usefully) specified via user-data at EC2 instance launch time.
2014-01-06 16:17:31 +00:00

48 lines
1,015 B
Makefile

# Created by: Colin Percival
# $FreeBSD$
PORTNAME= ec2-scripts
PORTVERSION= 1.8
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= BSD
OPTIONS_DEFINE= NOFIRSTBOOT
NOFIRSTBOOT_DESC= Use old (pre-firstboot support) version of scripts
NO_BUILD= YES
RC_SCRIPTS= ec2_bootmail ec2_ephemeralswap ec2_fetchkey ec2_loghostkey
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNOFIRSTBOOT}
PORTVERSION= 1.5
PORTREVISION= 1
NO_INSTALL= YES
RC_SCRIPTS+= ec2_firstboot panicmail
.else
RC_SCRIPTS+= ec2_configinit
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}
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/etc/rc.d/
.endfor
.include <bsd.port.mk>