aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2018-02-19 21:18:57 +0800
committerantoine <antoine@FreeBSD.org>2018-02-19 21:18:57 +0800
commit4aef5414a36b9333faac24d5900d5502bfde588e (patch)
treea46493ea19a7b88ac669c2621c65c47fa1bbec6c /sysutils
parentf6b41c62fea625e84b2b8857c73120b17486412d (diff)
downloadfreebsd-ports-gnome-4aef5414a36b9333faac24d5900d5502bfde588e.tar.gz
freebsd-ports-gnome-4aef5414a36b9333faac24d5900d5502bfde588e.tar.zst
freebsd-ports-gnome-4aef5414a36b9333faac24d5900d5502bfde588e.zip
Remove dependency on the python metaports
PR: 225752 Submitted by: Yasuhiro KIMURA
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/azure-agent/Makefile37
1 files changed, 19 insertions, 18 deletions
diff --git a/sysutils/azure-agent/Makefile b/sysutils/azure-agent/Makefile
index 043b13620036..f6364d71dd09 100644
--- a/sysutils/azure-agent/Makefile
+++ b/sysutils/azure-agent/Makefile
@@ -3,7 +3,7 @@
PORTNAME= azure-agent
PORTVERSION= 2.2.14
DISTVERSIONPREFIX= v
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MAINTAINER= honzhan@microsoft.com
@@ -11,8 +11,7 @@ COMMENT= Microsoft Azure Linux Agent
LICENSE= APACHE20
-RUN_DEPENDS= python:lang/python \
- sudo:security/sudo \
+RUN_DEPENDS= sudo:security/sudo \
bash:shells/bash \
base64:converters/base64 \
dmidecode:sysutils/dmidecode \
@@ -20,10 +19,9 @@ RUN_DEPENDS= python:lang/python \
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
NO_BUILD= yes
-USES= python:2 shebangfix
+USES= python:2.7 shebangfix
SHEBANG_FILES= bin/waagent bin/waagent2.0
-python_OLD_CMD= "/usr/bin/env python"
USE_GITHUB= yes
GH_ACCOUNT= Azure
@@ -31,24 +29,27 @@ GH_PROJECT= WALinuxAgent
USE_PYTHON= autoplist distutils
post-patch:
- ${REINPLACE_CMD} -e "s,/usr/sbin/waagent,${PREFIX}/sbin/waagent,g" \
- ${WRKSRC}/bin/waagent2.0
- ${REINPLACE_CMD} -e "s,/usr/sbin,${PREFIX}/sbin/,g" \
- ${WRKSRC}/init/waagent ${WRKSRC}/init/waagent.service \
- ${WRKSRC}/setup.py
- ${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc,g" \
- -e "/set_conf_files.*freebsd\/waagent.conf/ s/^/#/" \
- ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \
- ${WRKSRC}/bin/waagent2.0 \
- ${WRKSRC}/azurelinuxagent/common/osutil/default.py \
- ${WRKSRC}/init/waagent.service
+ ${WRKSRC}/azurelinuxagent/common/osutil/default.py
${REINPLACE_CMD} -e "s,/etc/rc.d/waagent,${PREFIX}/etc/rc.d/waagent,g" \
+ -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \
+ -e "s,#!/usr/bin/env python,#!${PYTHON_CMD},g" \
+ -e "/command_interpreter/ s,/usr/local/bin/python,${PYTHON_CMD}," \
+ -e "s,/usr/sbin/waagent,${PREFIX}/sbin/waagent,g" \
${WRKSRC}/bin/waagent2.0
- ${REINPLACE_CMD} -e "s,/usr/bin/python,${PREFIX}/bin/python,g" \
- ${WRKSRC}/init/waagent.service
${REINPLACE_CMD} -e "s,:/usr/local/bin,:/usr/local/bin:/usr/local/sbin,g" \
+ -e "s,python,${PYTHON_VERSION},g" \
${WRKSRC}/init/freebsd/waagent
+ ${REINPLACE_CMD} -e "s,/usr/sbin,${PREFIX}/sbin,g" \
+ ${WRKSRC}/init/waagent
+ ${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \
+ -e "s,/usr/bin/python,${PYTHON_CMD},g" \
+ -e "s,/usr/sbin,${PREFIX}/sbin,g" \
+ ${WRKSRC}/init/waagent.service
+ ${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc,g" \
+ -e "/set_conf_files.*freebsd\/waagent.conf/ s/^/#/" \
+ -e "s,/usr/sbin,${PREFIX}/sbin,g" \
+ ${WRKSRC}/setup.py
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc