mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
Preserve modified config file through upgrades using @sample
Approved by: maintainer Sponsored by: Rubicon Communications, LLC (Netgate) Differential Revision: https://reviews.freebsd.org/D11559
This commit is contained in:
parent
3e599a0691
commit
e216e77a77
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445748
@ -3,6 +3,7 @@
|
|||||||
PORTNAME= azure-agent
|
PORTNAME= azure-agent
|
||||||
PORTVERSION= 2.2.13
|
PORTVERSION= 2.2.13
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
|
|
||||||
MAINTAINER= honzhan@microsoft.com
|
MAINTAINER= honzhan@microsoft.com
|
||||||
@ -35,6 +36,7 @@ post-patch:
|
|||||||
${WRKSRC}/init/waagent ${WRKSRC}/init/waagent.service \
|
${WRKSRC}/init/waagent ${WRKSRC}/init/waagent.service \
|
||||||
${WRKSRC}/setup.py
|
${WRKSRC}/setup.py
|
||||||
${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc,g" \
|
${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc,g" \
|
||||||
|
-e "/set_conf_files.*freebsd\/waagent.conf/ s/^/#/" \
|
||||||
${WRKSRC}/setup.py
|
${WRKSRC}/setup.py
|
||||||
${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \
|
${REINPLACE_CMD} -e "s,/etc/waagent,${PREFIX}/etc/waagent,g" \
|
||||||
${WRKSRC}/bin/waagent2.0 \
|
${WRKSRC}/bin/waagent2.0 \
|
||||||
@ -47,4 +49,9 @@ post-patch:
|
|||||||
${REINPLACE_CMD} -e "s,:/usr/local/bin,:/usr/local/bin:/usr/local/sbin,g" \
|
${REINPLACE_CMD} -e "s,:/usr/local/bin,:/usr/local/bin:/usr/local/sbin,g" \
|
||||||
${WRKSRC}/init/freebsd/waagent
|
${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>
|
.include <bsd.port.mk>
|
||||||
|
1
sysutils/azure-agent/pkg-plist
Normal file
1
sysutils/azure-agent/pkg-plist
Normal file
@ -0,0 +1 @@
|
|||||||
|
@sample etc/waagent.conf.sample
|
Loading…
Reference in New Issue
Block a user