Lines 3-9
Link Here
|
3 |
PORTNAME= azure-agent |
3 |
PORTNAME= azure-agent |
4 |
PORTVERSION= 2.2.14 |
4 |
PORTVERSION= 2.2.14 |
5 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 3 |
7 |
CATEGORIES= sysutils |
7 |
CATEGORIES= sysutils |
8 |
|
8 |
|
9 |
MAINTAINER= honzhan@microsoft.com |
9 |
MAINTAINER= honzhan@microsoft.com |
Lines 11-18
Link Here
|
11 |
|
11 |
|
12 |
LICENSE= APACHE20 |
12 |
LICENSE= APACHE20 |
13 |
|
13 |
|
14 |
RUN_DEPENDS= python:lang/python \ |
14 |
RUN_DEPENDS= sudo:security/sudo \ |
15 |
sudo:security/sudo \ |
|
|
16 |
bash:shells/bash \ |
15 |
bash:shells/bash \ |
17 |
base64:converters/base64 \ |
16 |
base64:converters/base64 \ |
18 |
dmidecode:sysutils/dmidecode \ |
17 |
dmidecode:sysutils/dmidecode \ |
Lines 20-29
Link Here
|
20 |
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
19 |
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
21 |
|
20 |
|
22 |
NO_BUILD= yes |
21 |
NO_BUILD= yes |
23 |
USES= python:2 shebangfix |
22 |
USES= python:2.7 shebangfix |
24 |
|
23 |
|
25 |
SHEBANG_FILES= bin/waagent bin/waagent2.0 |
24 |
SHEBANG_FILES= bin/waagent bin/waagent2.0 |
26 |
python_OLD_CMD= "/usr/bin/env python" |
|
|
27 |
|
25 |
|
28 |
USE_GITHUB= yes |
26 |
USE_GITHUB= yes |
29 |
GH_ACCOUNT= Azure |
27 |
GH_ACCOUNT= Azure |
Lines 31-54
Link Here
|
31 |
USE_PYTHON= autoplist distutils |
29 |
USE_PYTHON= autoplist distutils |
32 |
|
30 |
|
33 |
post-patch: |
31 |
post-patch: |
34 |
${REINPLACE_CMD} -e "s,/usr/sbin/waagent,${PREFIX}/sbin/waagent,g" \ |
|
|
35 |
${WRKSRC}/bin/waagent2.0 |
36 |
${REINPLACE_CMD} -e "s,/usr/sbin,${PREFIX}/sbin/,g" \ |
37 |
${WRKSRC}/init/waagent ${WRKSRC}/init/waagent.service \ |
38 |
${WRKSRC}/setup.py |
39 |
${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc,g" \ |
40 |
-e "/set_conf_files.*freebsd\/waagent.conf/ s/^/#/" \ |
41 |
${WRKSRC}/setup.py |
42 |
${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \ |
32 |
${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \ |
43 |
${WRKSRC}/bin/waagent2.0 \ |
33 |
${WRKSRC}/azurelinuxagent/common/osutil/default.py |
44 |
${WRKSRC}/azurelinuxagent/common/osutil/default.py \ |
|
|
45 |
${WRKSRC}/init/waagent.service |
46 |
${REINPLACE_CMD} -e "s,/etc/rc.d/waagent,${PREFIX}/etc/rc.d/waagent,g" \ |
34 |
${REINPLACE_CMD} -e "s,/etc/rc.d/waagent,${PREFIX}/etc/rc.d/waagent,g" \ |
|
|
35 |
-e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \ |
36 |
-e "s,#!/usr/bin/env python,#!${PYTHON_CMD},g" \ |
37 |
-e "/command_interpreter/ s,/usr/local/bin/python,${PYTHON_CMD}," \ |
38 |
-e "s,/usr/sbin/waagent,${PREFIX}/sbin/waagent,g" \ |
47 |
${WRKSRC}/bin/waagent2.0 |
39 |
${WRKSRC}/bin/waagent2.0 |
48 |
${REINPLACE_CMD} -e "s,/usr/bin/python,${PREFIX}/bin/python,g" \ |
|
|
49 |
${WRKSRC}/init/waagent.service |
50 |
${REINPLACE_CMD} -e "s,:/usr/local/bin,:/usr/local/bin:/usr/local/sbin,g" \ |
40 |
${REINPLACE_CMD} -e "s,:/usr/local/bin,:/usr/local/bin:/usr/local/sbin,g" \ |
|
|
41 |
-e "s,python,${PYTHON_VERSION},g" \ |
51 |
${WRKSRC}/init/freebsd/waagent |
42 |
${WRKSRC}/init/freebsd/waagent |
|
|
43 |
${REINPLACE_CMD} -e "s,/usr/sbin,${PREFIX}/sbin,g" \ |
44 |
${WRKSRC}/init/waagent |
45 |
${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \ |
46 |
-e "s,/usr/bin/python,${PYTHON_CMD},g" \ |
47 |
-e "s,/usr/sbin,${PREFIX}/sbin,g" \ |
48 |
${WRKSRC}/init/waagent.service |
49 |
${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc,g" \ |
50 |
-e "/set_conf_files.*freebsd\/waagent.conf/ s/^/#/" \ |
51 |
-e "s,/usr/sbin,${PREFIX}/sbin,g" \ |
52 |
${WRKSRC}/setup.py |
52 |
|
53 |
|
53 |
post-install: |
54 |
post-install: |
54 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc |
55 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc |