freebsd-ports/net-mgmt/xymon-client/pkg-plist
Dirk Meyer b186994037 - update to 4.3.0
services and files and urls have been renamed
see UPDATING for migration from older config.
2011-04-02 14:26:29 +00:00

50 lines
2.5 KiB
Text

@exec if ! pw groupshow %%XYMONUSER%% 2>/dev/null; then pw groupadd %%XYMONUSER%% -g 280; fi
@exec if ! pw usershow %%XYMONUSER%% 2>/dev/null; then pw useradd %%XYMONUSER%% -g %%XYMONUSER%% -u 280 -h - -d %%WWWDIR%% -s /usr/sbin/nologin -c "Xymon Monitor"; fi
@unexec if pw usershow %%XYMONUSER%%; then pw userdel %%XYMONUSER%%; fi
%%WWWDIR%%/client/bin/clientupdate
%%WWWDIR%%/client/bin/freebsd-meminfo
%%WWWDIR%%/client/bin/orcaxymon
%%WWWDIR%%/client/bin/xymon
%%WWWDIR%%/client/bin/xymoncfg
%%WWWDIR%%/client/bin/xymonclient-aix.sh
%%WWWDIR%%/client/bin/xymonclient-darwin.sh
%%WWWDIR%%/client/bin/xymonclient-freebsd.sh
%%WWWDIR%%/client/bin/xymonclient-hp-ux.sh
%%WWWDIR%%/client/bin/xymonclient-irix.sh
%%WWWDIR%%/client/bin/xymonclient-linux.sh
%%WWWDIR%%/client/bin/xymonclient-netbsd.sh
%%WWWDIR%%/client/bin/xymonclient-openbsd.sh
%%WWWDIR%%/client/bin/xymonclient-osf1.sh
%%WWWDIR%%/client/bin/xymonclient-sco_sv.sh
%%WWWDIR%%/client/bin/xymonclient-sunos.sh
%%WWWDIR%%/client/bin/xymonclient-unixware.sh
%%WWWDIR%%/client/bin/xymonclient.sh
%%WWWDIR%%/client/bin/xymoncmd
%%WWWDIR%%/client/bin/xymondigest
%%WWWDIR%%/client/bin/xymongrep
%%WWWDIR%%/client/bin/xymonlaunch
%%WWWDIR%%/client/bin/logfetch
%%WWWDIR%%/client/bin/msgcache
@unexec if cmp -s %D/%%WWWDIR%%/client/etc/clientlaunch.cfg %D/%%WWWDIR%%/client/etc/clientlaunch.cfg.DIST; then rm -f %D/%%WWWDIR%%/client/etc/clientlaunch.cfg; fi
@unexec if cmp -s %D/%%WWWDIR%%/client/etc/xymonclient.cfg %D/%%WWWDIR%%/client/etc/xymonclient.cfg.DIST; then rm -f %D/%%WWWDIR%%/client/etc/xymonclient.cfg; fi
@unexec if cmp -s %D/%%WWWDIR%%/client/etc/localclient.cfg %D/%%WWWDIR%%/client/etc/localclient.cfg.DIST; then rm -f %D/%%WWWDIR%%/client/etc/localclient.cfg; fi
%%WWWDIR%%/client/etc/clientlaunch.cfg.DIST
@exec [ ! -f %B/clientlaunch.cfg ] && cp %B/%f %B/clientlaunch.cfg
%%WWWDIR%%/client/etc/xymonclient.cfg.DIST
@exec [ ! -f %B/xymonclient.cfg ] && cp %B/%f %B/xymonclient.cfg
%%WWWDIR%%/client/etc/localclient.cfg.DIST
@exec [ ! -f %B/localclient.cfg ] && cp %B/%f %B/localclient.cfg
%%WWWDIR%%/client/runclient.sh
@exec mkdir %D/%%WWWDIR%%/client/ext
@exec mkdir %D/%%WWWDIR%%/client/logs
@exec mkdir %D/%%WWWDIR%%/client/tmp
@exec chown %%XYMONUSER%% %D/%%WWWDIR%%/client/ext
@exec chown %%XYMONUSER%% %D/%%WWWDIR%%/client/logs
@exec chown %%XYMONUSER%% %D/%%WWWDIR%%/client/tmp
@dirrm %%WWWDIR%%/client/tmp
@dirrm %%WWWDIR%%/client/logs
@dirrm %%WWWDIR%%/client/ext
@dirrm %%WWWDIR%%/client/etc
@dirrm %%WWWDIR%%/client/bin
@dirrm %%WWWDIR%%/client
@dirrmtry %%WWWDIR%%