freebsd-ports/sysutils/ec2-scripts/Makefile
Colin Percival 311d06c76f Update to 1.6. This uses "firstboot" support in the base system, so
provide an option which reverts back to the old version of this port.

I'm making it a configurable option rather than autodetecting based
on OSVERSION to make my life easier with "cross-building" images.
2013-11-04 23:54:00 +00:00

40 lines
817 B
Makefile

# Created by: Colin Percival
# $FreeBSD$
PORTNAME= ec2-scripts
PORTVERSION= 1.6
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
NO_INSTALL= 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
RC_SCRIPTS+= ec2_firstboot panicmail
.endif
.for i in ${RC_SCRIPTS}
PLIST_FILES+= etc/rc.d/$i
.endfor
post-install:
.for i in ${RC_SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/etc/rc.d/
.endfor
.include <bsd.port.mk>