Date: Fri, 14 Jul 2017 12:30:49 +0000 (UTC) From: Renato Botelho <garga@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r445748 - head/sysutils/azure-agent Message-ID: <201707141230.v6ECUnrG057358@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: garga Date: Fri Jul 14 12:30:49 2017 New Revision: 445748 URL: https://svnweb.freebsd.org/changeset/ports/445748 Log: Preserve modified config file through upgrades using @sample Approved by: maintainer Sponsored by: Rubicon Communications, LLC (Netgate) Differential Revision: https://reviews.freebsd.org/D11559 Added: head/sysutils/azure-agent/pkg-plist (contents, props changed) Modified: head/sysutils/azure-agent/Makefile Modified: head/sysutils/azure-agent/Makefile ============================================================================== --- head/sysutils/azure-agent/Makefile Fri Jul 14 12:28:12 2017 (r445747) +++ head/sysutils/azure-agent/Makefile Fri Jul 14 12:30:49 2017 (r445748) @@ -3,6 +3,7 @@ PORTNAME= azure-agent PORTVERSION= 2.2.13 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= honzhan@microsoft.com @@ -35,6 +36,7 @@ post-patch: ${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 \ @@ -46,5 +48,10 @@ post-patch: ${WRKSRC}/init/waagent.service ${REINPLACE_CMD} -e "s,:/usr/local/bin,:/usr/local/bin:/usr/local/sbin,g" \ ${WRKSRC}/init/freebsd/waagent + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/config/freebsd/waagent.conf \ + ${STAGEDIR}${PREFIX}/etc/waagent.conf.sample .include <bsd.port.mk> Added: head/sysutils/azure-agent/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/azure-agent/pkg-plist Fri Jul 14 12:30:49 2017 (r445748) @@ -0,0 +1 @@ +@sample etc/waagent.conf.sample
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707141230.v6ECUnrG057358>