aboutsummaryrefslogtreecommitdiffstats
path: root/packages/p3scan-pf/p3scan-pf.inc
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2006-08-05 03:12:29 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2006-08-05 03:12:29 +0000
commit9ffb62808c6b0dddcce57f66777c3d7236287ab5 (patch)
tree473e6d920a6dcb0bb85dab5ffd2c316ab345aaff /packages/p3scan-pf/p3scan-pf.inc
parent7cf0ed21b014a556f9029e2842e002831e131284 (diff)
downloadpfsense-packages-9ffb62808c6b0dddcce57f66777c3d7236287ab5.tar.gz
pfsense-packages-9ffb62808c6b0dddcce57f66777c3d7236287ab5.tar.bz2
pfsense-packages-9ffb62808c6b0dddcce57f66777c3d7236287ab5.zip
- delete files that were copied in place by pkg_add
Diffstat (limited to 'packages/p3scan-pf/p3scan-pf.inc')
-rw-r--r--packages/p3scan-pf/p3scan-pf.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/p3scan-pf/p3scan-pf.inc b/packages/p3scan-pf/p3scan-pf.inc
index 03773f47..49906f6f 100644
--- a/packages/p3scan-pf/p3scan-pf.inc
+++ b/packages/p3scan-pf/p3scan-pf.inc
@@ -250,6 +250,9 @@ EOD;
)
);
}
+
+ /* finally get rid of files that were instaled by the package */
+ removePackageLeftovers();
conf_mount_ro();
config_unlock();
@@ -326,9 +329,19 @@ function custom_php_deinstall_command() {
unlink_if_exists("/usr/local/etc/p3scan/p3scan.mail");
unlink_if_exists("/usr/local/etc/rc.d/030.p3scan.sh");
rmdir("/usr/local/etc/p3scan");
+ mwexec("rm -rf /var/spool/p3scan");
+ mwexec("rm -rf /var/run/p3scan");
+ mwexec("rm -rf /var/run/p3scan");
conf_mount_ro();
}
+function removePackageLeftovers() {
+ unlink_if_exists("/usr/local/etc/rc.d/p3scan.sh");
+ unlink_if_exists("/usr/local/etc/p3scan.conf.sample");
+ unlink_if_exists("/usr/local/etc/p3scan.mail.sample");
+
+}
+
function add_trans_table(){
global $config;