blob: ecb499178e54af39e25f7d4eb54fb3a8c8011adc (
plain)
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
|
PORTNAME= triton-guesttools
PORTVERSION= 0.0.0.0s2017111501
CATEGORIES= net-mgmt
MAINTAINER= otis@FreeBSD.org
COMMENT= FreeBSD guest tools for use with SmartOS
RUN_DEPENDS= bash:shells/bash \
mdata-client>0:net-mgmt/mdata-client
USES= shebangfix
USE_GITHUB= yes
GH_ACCOUNT= joyent
GH_TAGNAME= 34c19b0
GH_PROJECT= freebsd-kvm-image-builder
WRKSRC_SUBDIR= triton-freebsd-guesttools
SHEBANG_FILES= ${WRKSRC}/lib/smartdc/add-network-interface \
${WRKSRC}/lib/smartdc/common.lib \
${WRKSRC}/lib/smartdc/firstboot \
${WRKSRC}/lib/smartdc/format-secondary-disk \
${WRKSRC}/lib/smartdc/get-user-data \
${WRKSRC}/lib/smartdc/run-operator-script \
${WRKSRC}/lib/smartdc/run-user-script \
${WRKSRC}/lib/smartdc/set-hostname \
${WRKSRC}/lib/smartdc/set-root-authorized-keys \
${WRKSRC}/lib/smartdc/set-rootpassword \
${WRKSRC}/lib/smartdc/triton
post-extract:
@${RM} -r ${WRKSRC}/usr
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/etc/rc.d/triton
do-build:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/etc/rc.d/triton ${WRKSRC}/lib/smartdc/*
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${WRKSRC}/etc/rc.d/triton ${STAGEDIR}${PREFIX}/etc/rc.d
( cd ${WRKSRC}/lib/ && \
${COPYTREE_BIN} smartdc ${STAGEDIR}${PREFIX}/lib )
.include <bsd.port.mk>
|