blob: 7b975a8b5b11de9633a3962a954d965c69834449 (
plain) (
tree)
|
|
bin/cdcc
%%WITH_DCCIFD%%bin/dccif-test
bin/dccproc
dcc/cgi-bin/README
dcc/cgi-bin/chgpasswd
dcc/cgi-bin/common
dcc/cgi-bin/common.pm
dcc/cgi-bin/edit-whiteclnt
dcc/cgi-bin/footer
dcc/cgi-bin/header
dcc/cgi-bin/http2https
dcc/cgi-bin/list-log
dcc/cgi-bin/list-msg
dcc/cgi-bin/webuser-notify
dcc/libexec/check_ip_range
dcc/libexec/cron-dccd
%%WITH_DCCIFD%%dcc/libexec/dccifd
%%WITH_DCCM%%dcc/libexec/dccm
%%WITH_DCCD%%dcc/libexec/dbclean
%%WITH_DCCD%%dcc/libexec/dblist
%%WITH_DCCD%%dcc/libexec/dump-clients
dcc/libexec/dcc-nagios
dcc/libexec/dcc-stats-collect
dcc/libexec/dcc-stats-graph
dcc/libexec/dcc-stats-init
%%WITH_DCCD%%dcc/libexec/dccd
dcc/libexec/dccsight
%%WITH_IFD_MILT%%dcc/libexec/dns-helper
dcc/libexec/fetchblack
dcc/libexec/fetchids
dcc/libexec/fetch-testmsg-whitelist
dcc/libexec/fix-map
dcc/libexec/hackmc
dcc/libexec/list-clients
dcc/libexec/logger
dcc/libexec/newwebuser
dcc/libexec/rcDCC
dcc/libexec/start-dccd
dcc/libexec/start-dccifd
dcc/libexec/start-dccm
dcc/libexec/start-grey
dcc/libexec/stats-get
dcc/libexec/stop-dccd
dcc/libexec/updatedcc
dcc/libexec/uninstalldcc
dcc/libexec/wlist
@dirrm dcc/libexec
@dirrm dcc/cgi-bin
@dirrmtry dcc
%%WITH_DCCIFD%%@stopdaemon dccifd
%%WITH_DCCM%%@stopdaemon dccm
%%WITH_DCCD%%@stopdaemon dccd
%%WITH_DCCGREY%%@stopdaemon dccgrey
%%WITH_ALT_HOME%%@cwd /var
@comment -------------------------
@comment The next group of three-line sets install/remove the config files
@comment
@comment **** on uninstall, delete the config file if it matches the sample file
@unexec if cmp -s %D/dcc/dcc_conf %D/dcc/dcc_conf.sample; then rm -f %D/dcc/dcc_conf; fi
@comment
@comment **** the sample file is unilaterally installed/removed
dcc/dcc_conf.sample
@comment
@comment **** on install, the config file is created from the sample file if it doesn't exist
@exec [ -f %B/dcc_conf ] || cp %B/%f %B/dcc_conf
@comment
@unexec if cmp -s %D/dcc/flod %D/dcc/flod.sample; then rm -f %D/dcc/flod; fi
dcc/flod.sample
@exec [ -f %B/flod ] || cp %B/%f %B/flod
@comment
@unexec if cmp -s %D/dcc/grey_flod %D/dcc/grey_flod.sample; then rm -f %D/dcc/grey_flod; fi
dcc/grey_flod.sample
@exec [ -f %B/grey_flod ] || cp %B/%f %B/grey_flod
@comment
@unexec if cmp -s %D/dcc/grey_whitelist %D/dcc/grey_whitelist.sample; then rm -f %D/dcc/grey_whitelist; fi
dcc/grey_whitelist.sample
@exec [ -f %B/grey_whitelist ] || cp %B/%f %B/grey_whitelist
@comment
@unexec if cmp -s %D/dcc/ids %D/dcc/ids.sample; then rm -f %D/dcc/ids; fi
dcc/ids.sample
@exec [ -f %B/ids ] || cp -p %B/%f %B/ids
@comment
@unexec if cmp -s %D/dcc/map.txt %D/dcc/map.txt.sample; then rm -f %D/dcc/map.txt; fi
dcc/map.txt.sample
@exec [ -f %B/map.txt ] || cp -p %B/%f %B/map.txt
@comment
@unexec if cmp -s %D/dcc/map %D/dcc/map.sample; then rm -f %D/dcc/map; fi
dcc/map.sample
@exec [ -f %B/map ] || cp -p %B/%f %B/map
@comment
@unexec if cmp -s %D/dcc/whiteclnt %D/dcc/whiteclnt.sample; then rm -f %D/dcc/whiteclnt; fi
dcc/whiteclnt.sample
@exec [ -f %B/whiteclnt ] || cp %B/%f %B/whiteclnt
@comment
@unexec if cmp -s %D/dcc/whitecommon %D/dcc/whitecommon.sample; then rm -f %D/dcc/whitecommon; fi
dcc/whitecommon.sample
@exec [ -f %B/whitecommon ] || cp %B/%f %B/whitecommon
@comment
@unexec if cmp -s %D/dcc/whitelist %D/dcc/whitelist.sample; then rm -f %D/dcc/whitelist; fi
dcc/whitelist.sample
@exec [ -f %B/whitelist ] || cp %B/%f %B/whitelist
@comment
%%WITH_IFD_MILT%%@unexec [ -e %D/dcc/whiteclnt.dccw ] && rm -f %D/dcc/whiteclnt.dccw || true
%%WITH_IFD_MILT%%@unexec [ -e %D/dcc/whiteclnt.dccx ] && rm -f %D/dcc/whiteclnt.dccx || true
%%WITH_DCCD%%@unexec [ -e %D/dcc/dcc_db ] && rm -f %D/dcc/dcc_db || true
%%WITH_DCCD%%@unexec [ -e %D/dcc/dcc_db.hash ] && rm -f %D/dcc/dcc_db.hash || true
%%WITH_DCCD%%@unexec [ -e %D/dcc/flod.map ] && rm -f %D/dcc/flod.map || true
%%WITH_DCCD%%@unexec [ -e %D/dcc/dccd_clients ] && rm -f %D/dcc/dccd_clients || true
%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_db.hash ] && rm -f %D/dcc/grey_db.hash || true
%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_flod.map ] && rm -f %D/dcc/grey_flod.map || true
%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_clients ] && rm -f %D/dcc/grey_clients || true
@exec mkdir -p %D/dcc/log
@exec chown -R %%DCCUSER%% %D/dcc
@dirrmtry dcc/log
@dirrmtry dcc
|