blob: bdd5742caa3d6450d22de8ddd4a842972de12585 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$
PORTNAME= google-startup-scripts
PORTVERSION= 1.2.1
CATEGORIES= net
MAINTAINER= swills@FreeBSD.org
COMMENT= Startup scripts that interact with Google Compute Engine VMs
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
RUN_DEPENDS= python:${PORTSDIR}/lang/python \
curl:${PORTSDIR}/ftp/curl \
bash:${PORTSDIR}/shells/bash \
flock:${PORTSDIR}/sysutils/flock
USES= python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= GoogleCloudPlatform
GH_PROJECT= compute-image-packages
USE_RC_SUBR= google-startup
WRKSRC= ${WRKDIR}/${GH_PROJECT}-${PORTVERSION}/${PORTNAME}
SHEBANG_FILES= usr/share/google/fetch_script \
usr/share/google/first-boot \
usr/share/google/get_metadata_value \
usr/share/google/onboot \
usr/share/google/regenerate-host-keys \
usr/share/google/run-scripts \
usr/share/google/run-shutdown-scripts \
usr/share/google/run-startup-scripts \
usr/share/google/set-hostname \
usr/share/google/boto/boot_setup.py
post-patch:
@${RM} ${WRKSRC}/usr/share/google/safe_format_and_mount \
${WRKSRC}/usr/share/google/virtionet-irq-affinity
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/usr/share/google/fetch_script \
${WRKSRC}/usr/share/google/first-boot \
${WRKSRC}/usr/share/google/onboot \
${WRKSRC}/usr/share/google/run-shutdown-scripts \
${WRKSRC}/usr/share/google/run-startup-scripts \
${WRKSRC}/usr/share/google/boto/boot_setup.py
@${RM} ${WRKSRC}/usr/share/google/*.bak \
${WRKSRC}/usr/share/google/*.orig
do-build:
${PYTHON_CMD} -m compileall ${WRKSRC}/usr/share/google/boto
do-install:
cd ${WRKSRC}/usr/share ; ${COPYTREE_BIN} google ${STAGEDIR}${PREFIX}/share
.include <bsd.port.mk>
|