diff --git a/sysutils/azure-agent/Makefile b/sysutils/azure-agent/Makefile index 787a272579ef..d87378886662 100644 --- a/sysutils/azure-agent/Makefile +++ b/sysutils/azure-agent/Makefile @@ -1,56 +1,57 @@ PORTNAME= azure-agent PORTVERSION= 2.8.0.11 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= sysutils MAINTAINER= weh@microsoft.com COMMENT= Microsoft Azure Linux Agent WWW= https://github.com/Azure/WALinuxAgent/ LICENSE= APACHE20 RUN_DEPENDS= sudo:security/sudo \ bash:shells/bash \ dmidecode:sysutils/dmidecode \ ${PYTHON_PKGNAMEPREFIX}pyasn1>=0:devel/py-pyasn1@${PY_FLAVOR} \ ca_root_nss>0:security/ca_root_nss NO_BUILD= yes USES= python shebangfix SHEBANG_FILES= bin/waagent bin/waagent2.0 USE_GITHUB= yes GH_ACCOUNT= Azure GH_PROJECT= WALinuxAgent USE_PYTHON= autoplist distutils noflavors post-patch: ${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \ ${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/local/bin,:/usr/local/bin:/usr/local/sbin,g" \ -e "s,python,${PYTHON_CMD},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 ${INSTALL_DATA} ${WRKSRC}/config/freebsd/waagent.conf \ ${STAGEDIR}${PREFIX}/etc/waagent.conf.sample .include diff --git a/sysutils/azure-agent/files/patch-azurelinuxagent_common_utils_textutil.py b/sysutils/azure-agent/files/patch-azurelinuxagent_common_utils_textutil.py new file mode 100644 index 000000000000..259f5a052c59 --- /dev/null +++ b/sysutils/azure-agent/files/patch-azurelinuxagent_common_utils_textutil.py @@ -0,0 +1,11 @@ +--- azurelinuxagent/common/utils/textutil.py.orig 2024-08-20 23:23:16 UTC ++++ azurelinuxagent/common/utils/textutil.py +@@ -445,7 +445,7 @@ def format_exception(exception): + if tb is None or (sys.version_info[0] == 2 and e != exception): + msg += "[Traceback not available]" + else: +- msg += ''.join(traceback.format_exception(etype=type(exception), value=exception, tb=tb)) ++ msg += ''.join(traceback.format_exception(type(exception), value=exception, tb=tb)) + + return msg +