diff options
author | cy <cy@FreeBSD.org> | 2009-02-22 12:41:12 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2009-02-22 12:41:12 +0800 |
commit | 62d24066d4839c0b8980c4d3291e2c8b4f48fa6f (patch) | |
tree | d607639d8ff2830d6b5009d1170d333b1ace0308 /sysutils/zetaback | |
parent | 91403c7362e7fa68c0bcd8b0e2b15732a82d2df9 (diff) | |
download | freebsd-ports-gnome-62d24066d4839c0b8980c4d3291e2c8b4f48fa6f.tar.gz freebsd-ports-gnome-62d24066d4839c0b8980c4d3291e2c8b4f48fa6f.tar.zst freebsd-ports-gnome-62d24066d4839c0b8980c4d3291e2c8b4f48fa6f.zip |
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.
Diffstat (limited to 'sysutils/zetaback')
-rw-r--r-- | sysutils/zetaback/Makefile | 4 | ||||
-rw-r--r-- | sysutils/zetaback/pkg-plist | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sysutils/zetaback/Makefile b/sysutils/zetaback/Makefile index e99a2dd04164..91647ee35978 100644 --- a/sysutils/zetaback/Makefile +++ b/sysutils/zetaback/Makefile @@ -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> diff --git a/sysutils/zetaback/pkg-plist b/sysutils/zetaback/pkg-plist index 2334c239dbca..28dc85541b43 100644 --- a/sysutils/zetaback/pkg-plist +++ b/sysutils/zetaback/pkg-plist @@ -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 |