summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/wbm-cluster-copy/Makefile3
-rw-r--r--sysutils/wbm-cluster-cron/Makefile3
-rw-r--r--sysutils/wbm-postfix/DEINSTALL8
-rw-r--r--sysutils/wbm-postfix/Makefile3
-rw-r--r--sysutils/wbm-quota/Makefile3
-rw-r--r--sysutils/wbm-status/Makefile3
-rw-r--r--sysutils/wbm-time/Makefile3
-rw-r--r--sysutils/wbm-time/distinfo3
-rw-r--r--sysutils/wbm-time/patches/patch-ab19
-rw-r--r--sysutils/webmin/Makefile4
-rw-r--r--sysutils/webmin/distinfo5
-rw-r--r--sysutils/webmin/files/wbm-deinstall.tmpl16
-rw-r--r--sysutils/webmin/patches/patch-ac20
-rw-r--r--sysutils/webmin/wbm.mk8
14 files changed, 89 insertions, 12 deletions
diff --git a/sysutils/wbm-cluster-copy/Makefile b/sysutils/wbm-cluster-copy/Makefile
index 9612c796b50..b474007f1d9 100644
--- a/sysutils/wbm-cluster-copy/Makefile
+++ b/sysutils/wbm-cluster-copy/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/05/16 21:39:30 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2006/05/19 17:14:53 jlam Exp $
DISTNAME= cluster-copy
PKGNAME= wbm-${DISTNAME}-${WBM_VERSION}
+PKGREVISION= 1
DIST_SUBDIR= webmin-modules-${WBM_VERSION}
# The version is from the module.info file from the extracted distfile.
diff --git a/sysutils/wbm-cluster-cron/Makefile b/sysutils/wbm-cluster-cron/Makefile
index 320500947d9..bf1af651285 100644
--- a/sysutils/wbm-cluster-cron/Makefile
+++ b/sysutils/wbm-cluster-cron/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/05/16 21:39:44 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2006/05/19 17:14:53 jlam Exp $
DISTNAME= cluster-cron
PKGNAME= wbm-${DISTNAME}-${WBM_VERSION}
+PKGREVISION= 1
DIST_SUBDIR= webmin-modules-${WBM_VERSION}
# The version is from the module.info file from the extracted distfile.
diff --git a/sysutils/wbm-postfix/DEINSTALL b/sysutils/wbm-postfix/DEINSTALL
new file mode 100644
index 00000000000..ac50a39d5a2
--- /dev/null
+++ b/sysutils/wbm-postfix/DEINSTALL
@@ -0,0 +1,8 @@
+# $NetBSD: DEINSTALL,v 1.1 2006/05/19 17:14:53 jlam Exp $
+
+case "${STAGE}" in
+DEINSTALL)
+ # Remove temporary files possibly generated by postfinger.cgi.
+ ${RM} -f ${PKG_PREFIX}/share/webmin/postfix/postfinger.*.[dn]
+ ;;
+esac
diff --git a/sysutils/wbm-postfix/Makefile b/sysutils/wbm-postfix/Makefile
index c880a58a5f2..3c5c56fad50 100644
--- a/sysutils/wbm-postfix/Makefile
+++ b/sysutils/wbm-postfix/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/05/16 04:03:26 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2006/05/19 17:14:53 jlam Exp $
DISTNAME= postfix
PKGNAME= wbm-${DISTNAME}-${WBM_VERSION}
+PKGREVSION= 1
DIST_SUBDIR= webmin-modules-${WBM_VERSION}
# The version is from the module.info file from the extracted distfile.
diff --git a/sysutils/wbm-quota/Makefile b/sysutils/wbm-quota/Makefile
index 3d24d15276d..4cff407b959 100644
--- a/sysutils/wbm-quota/Makefile
+++ b/sysutils/wbm-quota/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/05/16 15:42:30 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2006/05/19 17:14:53 jlam Exp $
DISTNAME= quota
PKGNAME= wbm-${DISTNAME}-${WBM_VERSION}
+PKGREVISION= 1
DIST_SUBDIR= webmin-modules-${WBM_VERSION}
# The version is from the module.info file from the extracted distfile.
diff --git a/sysutils/wbm-status/Makefile b/sysutils/wbm-status/Makefile
index 3415c5b1672..9992b16ca1e 100644
--- a/sysutils/wbm-status/Makefile
+++ b/sysutils/wbm-status/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/05/16 15:43:17 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2006/05/19 17:14:53 jlam Exp $
DISTNAME= status
PKGNAME= wbm-${DISTNAME}-${WBM_VERSION}
+PKGREVISION= 1
DIST_SUBDIR= webmin-modules-${WBM_VERSION}
# The version is from the module.info file from the extracted distfile.
diff --git a/sysutils/wbm-time/Makefile b/sysutils/wbm-time/Makefile
index f9290d0eb33..8676e16e0d5 100644
--- a/sysutils/wbm-time/Makefile
+++ b/sysutils/wbm-time/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/05/16 15:44:04 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2006/05/19 17:14:53 jlam Exp $
DISTNAME= time
PKGNAME= wbm-${DISTNAME}-${WBM_VERSION}
+PKGREVISION= 1
DIST_SUBDIR= webmin-modules-${WBM_VERSION}
# The version is from the module.info file from the extracted distfile.
diff --git a/sysutils/wbm-time/distinfo b/sysutils/wbm-time/distinfo
index a2e67f3adad..e84438ce5b7 100644
--- a/sysutils/wbm-time/distinfo
+++ b/sysutils/wbm-time/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/05/16 15:44:04 jlam Exp $
+$NetBSD: distinfo,v 1.2 2006/05/19 17:14:53 jlam Exp $
SHA1 (webmin-modules-1.270/time.wbm.gz) = d4b785569fd27a78b5ff9ade348ef8fe1fbca9aa
RMD160 (webmin-modules-1.270/time.wbm.gz) = 73b049052db9b13c865b0d5af8ef7684074f19c6
Size (webmin-modules-1.270/time.wbm.gz) = 32355 bytes
SHA1 (patch-aa) = 12531637b08992dd84c8f49863b0892b63606eac
+SHA1 (patch-ab) = a4d2bdb99969c6a16fc15f8f011be5b2a8199ef1
diff --git a/sysutils/wbm-time/patches/patch-ab b/sysutils/wbm-time/patches/patch-ab
new file mode 100644
index 00000000000..c8580ff9dba
--- /dev/null
+++ b/sysutils/wbm-time/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1 2006/05/19 17:14:53 jlam Exp $
+
+--- uninstall.pl.orig Tue Apr 4 23:16:15 2006
++++ uninstall.pl
+@@ -5,14 +5,12 @@ require 'time-lib.pl';
+
+ sub module_uninstall
+ {
+-if ($config{'sched_mode'}) {
+ # Scheduled checking is enabled .. remove the cron job
+ &foreign_require("cron", "cron-lib.pl");
+ $job = &find_cron_job();
+ if ($job) {
+ &cron::delete_cron_job($job);
+ }
+- }
+ }
+
+ 1;
diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile
index 31e54b01caa..bda1f6995b7 100644
--- a/sysutils/webmin/Makefile
+++ b/sysutils/webmin/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2006/05/16 18:30:20 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2006/05/19 17:14:53 jlam Exp $
DISTNAME= webmin-1.270-minimal
PKGNAME= ${DISTNAME:S/-minimal$//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= sysutils www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webadmin/}
diff --git a/sysutils/webmin/distinfo b/sysutils/webmin/distinfo
index 3899b561faf..5789746f8a2 100644
--- a/sysutils/webmin/distinfo
+++ b/sysutils/webmin/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2006/05/16 04:01:28 jlam Exp $
+$NetBSD: distinfo,v 1.7 2006/05/19 17:14:53 jlam Exp $
SHA1 (webmin-1.270-minimal.tar.gz) = 31fa4cf18205a0dac74e38290a03950450abae26
RMD160 (webmin-1.270-minimal.tar.gz) = 94847d56eb9aebefc234178656dc53daa3af91c6
Size (webmin-1.270-minimal.tar.gz) = 1301974 bytes
-SHA1 (patch-aa) = c643cb0f568629288584902b942c792652cc366e
+SHA1 (patch-aa) = 7a0aa94e94963a8b5b171423aefb445d0849339f
+SHA1 (patch-ac) = 12c133cb1beefd2614f4caa15cc2b29cd1721efa
diff --git a/sysutils/webmin/files/wbm-deinstall.tmpl b/sysutils/webmin/files/wbm-deinstall.tmpl
new file mode 100644
index 00000000000..7057de38e7b
--- /dev/null
+++ b/sysutils/webmin/files/wbm-deinstall.tmpl
@@ -0,0 +1,16 @@
+# $NetBSD: wbm-deinstall.tmpl,v 1.1 2006/05/19 17:14:53 jlam Exp $
+
+case "${STAGE}" in
+DEINSTALL)
+ WBMNAME="@WBMNAME@"
+ WEBMIN_DIR="@WEBMIN_DIR@"
+ WEBMIN_CONFIG="${PKG_SYSCONFDIR}"
+ WEBMIN_VAR="@WEBMIN_VARDIR@"
+ ${TEST} ! -f "${WEBMIN_CONFIG}/var-path" ||
+ WEBMIN_VAR=`${CAT} ${WEBMIN_CONFIG}/var-path`
+ export WEBMIN_CONFIG WEBMIN_VAR
+ if ${TEST} -x "${WEBMIN_DIR}/run-uninstalls.pl"; then
+ ( cd ${WEBMIN_DIR} &&
+ ${WEBMIN_DIR}/run-uninstalls.pl ${WBMNAME} )
+ fi
+esac
diff --git a/sysutils/webmin/patches/patch-ac b/sysutils/webmin/patches/patch-ac
new file mode 100644
index 00000000000..98c6e1c9968
--- /dev/null
+++ b/sysutils/webmin/patches/patch-ac
@@ -0,0 +1,20 @@
+$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") {
diff --git a/sysutils/webmin/wbm.mk b/sysutils/webmin/wbm.mk
index 9523738acbe..87414ef7e15 100644
--- a/sysutils/webmin/wbm.mk
+++ b/sysutils/webmin/wbm.mk
@@ -1,4 +1,4 @@
-# $NetBSD: wbm.mk,v 1.3 2006/05/16 16:38:06 jlam Exp $
+# $NetBSD: wbm.mk,v 1.4 2006/05/19 17:14:53 jlam Exp $
#
# Makefile fragment for Webmin modules
@@ -16,6 +16,7 @@ DEPENDS+= webmin>=1.270:../../sysutils/webmin
EVAL_PREFIX+= PREFIX.webmin=webmin
WEBMIN_DIR= ${PREFIX.webmin}/share/webmin
WEBMIN_EGDIR= ${PREFIX.webmin}/share/examples/webmin
+WEBMIN_VARDIR= ${VARBASE}/webmin
WBM_DIR= ${PREFIX}/share/webmin
WBM_EGDIR= ${PREFIX}/share/examples/webmin
@@ -27,6 +28,11 @@ OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/${WBMNAME} \
CONF_FILES_PERMS+= ${WBM_EGDIR}/${WBMNAME}/config \
${PKG_SYSCONFDIR}/${WBMNAME}/config \
${ROOT_USER} ${ROOT_GROUP} 0600
+FILES_SUBST+= WBMNAME=${WBMNAME:Q}
+FILES_SUBST+= WEBMIN_DIR=${WEBMIN_DIR:Q}
+FILES_SUBST+= WEBMIN_VARDIR=${WEBMIN_VARDIR:Q}
+
+DEINSTALL_TEMPLATE+= ${PKGSRCDIR}/sysutils/webmin/files/wbm-deinstall.tmpl
# WBMNAME is the name of the module directory
WBMNAME?= ${DISTNAME}