diff options
author | krion <krion@FreeBSD.org> | 2003-12-08 20:51:57 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-12-08 20:51:57 +0000 |
commit | 1f049700254676a6b83e27bbd7762a952901abad (patch) | |
tree | 0fe2c7f498db67993875843b05f840d5b18d4372 /net-mgmt/ifgraph/pkg-deinstall | |
parent | ec8f6363a258de0f19489d30851f18ab2b424bd5 (diff) | |
download | FreeBSD-ports-1f049700254676a6b83e27bbd7762a952901abad.zip FreeBSD-ports-1f049700254676a6b83e27bbd7762a952901abad.tar.gz |
Add ifgraph 0.4.9,
ifGraph is a set of Perl scripts created to help network
administrators to visualize network flow on a daily, weekly,
monthly, and yearly basis. The graphics are created with
RRDTool, and it shows bytes (in/out) and errors for each
interface. It also shows the current/average/max use and the
respective link/interface usage in percentages. The program
also outputs HTML files to make the visualization of the
PNG/GIF/GD images more friendly and easy.
PR: 57421
Submitted by: Lars Thegler <lars@thegler.dk>
Diffstat (limited to 'net-mgmt/ifgraph/pkg-deinstall')
-rw-r--r-- | net-mgmt/ifgraph/pkg-deinstall | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-mgmt/ifgraph/pkg-deinstall b/net-mgmt/ifgraph/pkg-deinstall new file mode 100644 index 0000000..5724a05 --- /dev/null +++ b/net-mgmt/ifgraph/pkg-deinstall @@ -0,0 +1,38 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PATH=/bin:/usr/bin:/usr/sbin + +case $2 in + +DEINSTALL) + echo '---> Starting deinstall script:' + + echo '---> Zeroing crontab(5) file belonging to user "%%USER%%"' + /usr/bin/crontab -u %%USER%% /dev/null + echo ' (The crontab(5) will be deleted completely when user "%%USER%%" is removed.)' + + ;; + +POST-DEINSTALL) + echo '---> Starting post-deinstall script:' + + if [ -f %%PREFIX%%/etc/ifgraph.conf -o \ + -d %%PREFIX%%/ifgraph -o \ + -d %%PREFIX%%/var/ifgraph ]; then + echo '---> You seem to have made some custom ifGraph configuration.' + echo '---> - The "%%USER%%" user and "%%GROUP%%" group were therefore not deleted.' + echo '---> - You may delete them with "pw groupdel %%GROUP%%; pw userdel %%USER%%".' + + else + echo '---> Removing group "%%GROUP%%"' + /usr/sbin/pw groupdel -n %%GROUP%% + echo '---> Removing user "%%USER%%"' + echo 'y' | /usr/sbin/pw userdel -n %%USER%% + fi + + ;; + +esac |