aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-23 17:18:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-23 17:18:12 +0000
commit0efa34f7de5facc2b1ab801722d2f38f8c08ec85 (patch)
treeecce34cb3c82da61c0436fe511ca7bc470e1f87f
parentc0dbd950b3fa4e53f6348d7c49987461ef15f839 (diff)
downloadpfsense-packages-0efa34f7de5facc2b1ab801722d2f38f8c08ec85.tar.gz
pfsense-packages-0efa34f7de5facc2b1ab801722d2f38f8c08ec85.tar.bz2
pfsense-packages-0efa34f7de5facc2b1ab801722d2f38f8c08ec85.zip
Remove package correctly from system
-rw-r--r--packages/freeradius.inc5
-rw-r--r--packages/freeradius.xml3
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/freeradius.inc b/packages/freeradius.inc
index cdc7a422..29736eca 100644
--- a/packages/freeradius.inc
+++ b/packages/freeradius.inc
@@ -4,6 +4,11 @@ require_once('service-utils.inc');
define('RADDB', '/usr/local/etc/raddb');
+function freeradius_deinstall_command() {
+ exec("cd /var/db/pkg && pkg_delete `ls | grep freeradius`");
+ exec("cd /var/db/pkg && pkg_delete `ls | grep libltdl`");
+}
+
function freeradius_install_command() {
global $config;
diff --git a/packages/freeradius.xml b/packages/freeradius.xml
index b39c5410..a116576a 100644
--- a/packages/freeradius.xml
+++ b/packages/freeradius.xml
@@ -16,6 +16,9 @@
<custom_php_install_command>
freeradius_install_command();
</custom_php_install_command>
+ <custom_php_deinstall_command>
+ freeradius_deinstall_command();
+ </custom_php_deinstall_command>
<menu>
<name>FreeRADIUS</name>
<tooltiptext>Modify FreeRADIUS users, clients, and settings.</tooltiptext>