mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
Conditionally install the zetaback configuration files and do not
remove the said files when the package is deinstalled as the user may wish to keep the files across upgrades. A message is printed advising the user to remove the files manually if the packages is uninstalled permanently.
This commit is contained in:
parent
3669dacd4a
commit
20085b54ec
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228814
@ -20,7 +20,7 @@ USE_AUTOTOOLS= autoconf:262
|
||||
MAN1= zetaback.1 zetaback_agent.1
|
||||
|
||||
post-install:
|
||||
@${CP} ${PREFIX}/etc/zetaback.conf.sample ${PREFIX}/etc/zetaback.conf
|
||||
@${CP} ${PREFIX}/etc/zetaback_agent.conf.sample ${PREFIX}/etc/zetaback_agent.conf
|
||||
@${TEST} ! -f ${PREFIX}/etc/zetaback.conf && ${CP} ${PREFIX}/etc/zetaback.conf.sample ${PREFIX}/etc/zetaback.conf; ${TRUE}
|
||||
@${TEST} ! -f ${PREFIX}/etc/zetaback_agent.conf && ${CP} ${PREFIX}/etc/zetaback_agent.conf.sample ${PREFIX}/etc/zetaback_agent.conf; ${TRUE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,5 @@
|
||||
bin/zetaback
|
||||
bin/zetaback_agent
|
||||
etc/zetaback.conf
|
||||
etc/zetaback.conf.sample
|
||||
etc/zetaback_agent.conf
|
||||
etc/zetaback_agent.conf.sample
|
||||
@unexec echo If permanently deleting this package, %%PREFIX%%/etc/zetaback.conf and %%PREFIX%%/etc/zetaback.conf must be removed manually
|
||||
|
Loading…
Reference in New Issue
Block a user