freebsd-ports/sysutils/ganglia-webfrontend/pkg-plist
Brooks Davis ee5740c01d - Fix the plist so the config file gets removed when unchanged.
- Switch to using dirrmtry to from "unexec rmdir" remove the directory.

Approved by:	portmgr (marcus)
2006-02-24 02:06:46 +00:00

70 lines
3.2 KiB
Text

@unexec cmp -s %D/%%WEBFRONTDIR%%/conf.php %D/%%WEBFRONTDIR%%/conf.php.sample && rm -f %D/%%WEBFRONTDIR%%/conf.php
%%WEBFRONTDIR%%/auth.php
%%WEBFRONTDIR%%/class.TemplatePower.inc.php
%%WEBFRONTDIR%%/cluster_legend.html
%%WEBFRONTDIR%%/cluster_view.php
%%WEBFRONTDIR%%/conf.php.sample
%%WEBFRONTDIR%%/footer.php
%%WEBFRONTDIR%%/functions.php
%%WEBFRONTDIR%%/ganglia.php
%%WEBFRONTDIR%%/get_context.php
%%WEBFRONTDIR%%/get_ganglia.php
%%WEBFRONTDIR%%/graph.php
%%WEBFRONTDIR%%/grid_tree.php
%%WEBFRONTDIR%%/header.php
%%WEBFRONTDIR%%/host_gmetrics.php
%%WEBFRONTDIR%%/host_view.php
%%WEBFRONTDIR%%/index.php
%%WEBFRONTDIR%%/meta_view.php
%%WEBFRONTDIR%%/node_legend.html
%%WEBFRONTDIR%%/physical_view.php
%%WEBFRONTDIR%%/pie.php
%%WEBFRONTDIR%%/private_clusters
%%WEBFRONTDIR%%/show_node.php
%%WEBFRONTDIR%%/styles.css
%%WEBFRONTDIR%%/templates/Rocks/cluster_extra.tpl
%%WEBFRONTDIR%%/templates/Rocks/header.tpl
%%WEBFRONTDIR%%/templates/Rocks/host_extra.tpl
%%WEBFRONTDIR%%/templates/Rocks/images/ganglia.jpg
%%WEBFRONTDIR%%/templates/Rocks/images/hardhat.png
%%WEBFRONTDIR%%/templates/Rocks/images/rocks.jpg
%%WEBFRONTDIR%%/templates/default/cluster_extra.tpl
%%WEBFRONTDIR%%/templates/default/cluster_view.tpl
%%WEBFRONTDIR%%/templates/default/footer.tpl
%%WEBFRONTDIR%%/templates/default/grid_tree.tpl
%%WEBFRONTDIR%%/templates/default/header-nobanner.tpl
%%WEBFRONTDIR%%/templates/default/header.tpl
%%WEBFRONTDIR%%/templates/default/host_extra.tpl
%%WEBFRONTDIR%%/templates/default/host_gmetrics.tpl
%%WEBFRONTDIR%%/templates/default/host_view.tpl
%%WEBFRONTDIR%%/templates/default/images/cluster_0-24.jpg
%%WEBFRONTDIR%%/templates/default/images/cluster_25-49.jpg
%%WEBFRONTDIR%%/templates/default/images/cluster_50-74.jpg
%%WEBFRONTDIR%%/templates/default/images/cluster_75-100.jpg
%%WEBFRONTDIR%%/templates/default/images/cluster_overloaded.jpg
%%WEBFRONTDIR%%/templates/default/images/cluster_private.jpg
%%WEBFRONTDIR%%/templates/default/images/grid_0-24.jpg
%%WEBFRONTDIR%%/templates/default/images/grid_25-49.jpg
%%WEBFRONTDIR%%/templates/default/images/grid_50-74.jpg
%%WEBFRONTDIR%%/templates/default/images/grid_75-100.jpg
%%WEBFRONTDIR%%/templates/default/images/grid_overloaded.jpg
%%WEBFRONTDIR%%/templates/default/images/grid_private.jpg
%%WEBFRONTDIR%%/templates/default/images/logo.jpg
%%WEBFRONTDIR%%/templates/default/images/node_0-24.jpg
%%WEBFRONTDIR%%/templates/default/images/node_25-49.jpg
%%WEBFRONTDIR%%/templates/default/images/node_50-74.jpg
%%WEBFRONTDIR%%/templates/default/images/node_75-100.jpg
%%WEBFRONTDIR%%/templates/default/images/node_dead.jpg
%%WEBFRONTDIR%%/templates/default/images/node_overloaded.jpg
%%WEBFRONTDIR%%/templates/default/meta_view.tpl
%%WEBFRONTDIR%%/templates/default/node_extra.tpl
%%WEBFRONTDIR%%/templates/default/physical_view.tpl
%%WEBFRONTDIR%%/templates/default/show_node.tpl
%%WEBFRONTDIR%%/version.php
@dirrm %%WEBFRONTDIR%%/templates/default/images
@dirrm %%WEBFRONTDIR%%/templates/default
@dirrm %%WEBFRONTDIR%%/templates/Rocks/images
@dirrm %%WEBFRONTDIR%%/templates/Rocks
@dirrm %%WEBFRONTDIR%%/templates
@dirrmtry rmdir %D/%%WEBFRONTDIR%%
@unexec (test -d %D/%%WEBFRONTDIR%% && (echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%WEBFRONTDIR%% and its contents manually.")) || true