Update sysutils/ec2-scripts to version 1.10
[dports.git] / sysutils / ec2-scripts / Makefile
1 # Created by: Colin Percival
2 # $FreeBSD$
3
4 PORTNAME=       ec2-scripts
5 PORTVERSION=    1.10
6 CATEGORIES=     sysutils
7 MASTER_SITES=   http://freebsd-ec2-dist.s3.amazonaws.com/
8 EXTRACT_SUFX=   .tgz
9
10 MAINTAINER=     cperciva@FreeBSD.org
11 COMMENT=        Startup scripts for FreeBSD/EC2 environment
12
13 LICENSE=        BSD2CLAUSE
14
15 OPTIONS_DEFINE= NOFIRSTBOOT
16 NOFIRSTBOOT_DESC=       Use old (pre-firstboot support) version of scripts
17
18 NO_BUILD=       YES
19
20 RC_SCRIPTS=     ec2_bootmail ec2_ephemeralswap ec2_fetchkey ec2_loghostkey
21
22 .include <bsd.port.options.mk>
23
24 .if ${PORT_OPTIONS:MNOFIRSTBOOT}
25 PORTVERSION=    1.5
26 PORTREVISION=   1
27 NO_INSTALL=     YES
28 RC_SCRIPTS+=    ec2_firstboot panicmail
29 .else
30 RC_SCRIPTS+=    ec2_configinit
31 PLIST_FILES=    sbin/configinit
32 .endif
33
34 .for i in ${RC_SCRIPTS}
35 PLIST_FILES+=   etc/rc.d/$i
36 .endfor
37
38 .if ! ${PORT_OPTIONS:MNOFIRSTBOOT}
39 do-install:
40         ${INSTALL_SCRIPT} ${WRKSRC}/configinit.sh ${STAGEDIR}${PREFIX}/sbin/configinit
41 .endif
42
43 post-install:
44 .for i in ${RC_SCRIPTS}
45         ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/etc/rc.d/
46 .endfor
47
48 .include <bsd.port.mk>