pkgsrc/sysutils/webmin/patches/patch-ac
jlam 7ee25967b7 * Pull in some changes discussed on the Webmin mailing list to allow
running an individual module's uninstall action

* Add an DEINSTALL_TEMPLATE file that is pulled in by all wbm-* modules
  that will run the module's uninstall action at DEINSTALL time.

* Fix the "time" module to ignore "sched_mode" -- verified by Jamie
  Cameron on the Webmin mailing list as a bug.

* Fix the "postfix" module to remove its temp files at DEINSTALL time
  so that we cleanly pkg_delete.

Bump the PKGREVISION of sysutils/webmin as well as all sysutils/wbm-*
packages that have uninstall.pl scripts.
2006-05-19 17:14:53 +00:00

20 lines
517 B
Text

$NetBSD: patch-ac,v 1.1 2006/05/19 17:14:53 jlam Exp $
--- run-uninstalls.pl.orig Tue Apr 4 23:12:35 2006
+++ run-uninstalls.pl
@@ -6,7 +6,14 @@ $no_acl_check++;
do './web-lib.pl';
&init_config();
-foreach $m (&get_all_module_infos()) {
+if (@ARGV > 0) {
+ @mods = map { local %minfo = &get_module_info($_); \%minfo } @ARGV;
+ }
+else {
+ @mods = &get_all_module_infos();
+ }
+
+foreach $m (@mods) {
$mdir = &module_root_directory($m->{'dir'});
if (&check_os_support($m) &&
-r "$mdir/uninstall.pl") {