summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-07-23 19:28:32 +0000
committerjlam <jlam@pkgsrc.org>2004-07-23 19:28:32 +0000
commit149433f0f3784aef1ea45457051f81e4fb511aa0 (patch)
tree246298b958b660ea03364a19a2a48d0da006a279
parentef31fc172a19e8f0b2228a33528eaa55985f2ade (diff)
downloadpkgsrc-149433f0f3784aef1ea45457051f81e4fb511aa0.tar.gz
Import webmin-1.150 as sysutils/webmin.
Webmin is a web-based interface for system administration for Unix. Using any browser that supports tables and forms, you can setup user accounts, Apache, DNS, file sharing and so on. Webmin consists of a simple web server, and a number of CGI programs which directly update system files.
-rw-r--r--doc/CHANGES3
-rw-r--r--sysutils/webmin/DEINSTALL17
-rw-r--r--sysutils/webmin/DESCR5
-rw-r--r--sysutils/webmin/MESSAGE12
-rw-r--r--sysutils/webmin/Makefile72
-rw-r--r--sysutils/webmin/PLIST1
-rw-r--r--sysutils/webmin/distinfo5
-rw-r--r--sysutils/webmin/files/webmin.sh52
-rw-r--r--sysutils/webmin/patches/patch-aa20
9 files changed, 186 insertions, 1 deletions
diff --git a/doc/CHANGES b/doc/CHANGES
index efcfcffac6e..2f36f7a51b5 100644
--- a/doc/CHANGES
+++ b/doc/CHANGES
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.6658 2004/07/23 19:02:39 wiz Exp $
+$NetBSD: CHANGES,v 1.6659 2004/07/23 19:29:05 jlam Exp $
Changes to the packages collection and infrastructure in 2004:
@@ -3528,3 +3528,4 @@ Changes to the packages collection and infrastructure in 2004:
Updated ja-samba to 2.2.9.1.0nb1 [taca 2004-07-23]
Updated suse_base to 7.3nb6 [wiz 2004-07-23]
Added Cygne-SDL-0.1 [wiz 2004-07-23]
+ Added webmin-1.150 [jlam 2004-07-23]
diff --git a/sysutils/webmin/DEINSTALL b/sysutils/webmin/DEINSTALL
new file mode 100644
index 00000000000..6d597f313cf
--- /dev/null
+++ b/sysutils/webmin/DEINSTALL
@@ -0,0 +1,17 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+
+WEBMIN_DIR="@WEBMIN_DIR@"
+WEBMIN_ETCDIR="@WEBMIN_ETCDIR@"
+
+case ${STAGE} in
+DEINSTALL)
+ uninstall="${WEBMIN_ETCDIR}/uninstall.sh"
+ if [ -x ${uninstall} ]; then
+ ${ECHO} "Removing ${PKGNAME}..."
+ ${ECHO} "y" | ${uninstall}
+ else
+ ${ECHO} "Removing ${WEBMIN_DIR}..."
+ ${RM} -rf ${WEBMIN_DIR}
+ fi
+ ;;
+esac
diff --git a/sysutils/webmin/DESCR b/sysutils/webmin/DESCR
new file mode 100644
index 00000000000..85dcf2e48a7
--- /dev/null
+++ b/sysutils/webmin/DESCR
@@ -0,0 +1,5 @@
+Webmin is a web-based interface for system administration for Unix.
+Using any browser that supports tables and forms, you can setup user
+accounts, Apache, DNS, file sharing and so on. Webmin consists of a
+simple web server, and a number of CGI programs which directly update
+system files.
diff --git a/sysutils/webmin/MESSAGE b/sysutils/webmin/MESSAGE
new file mode 100644
index 00000000000..badab6b0465
--- /dev/null
+++ b/sysutils/webmin/MESSAGE
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+
+To configure Webmin for the first time or to upgrade, you will need to
+run the following command as ${ROOT_USER}:
+
+ ${WEBMIN_DIR}/setup.sh
+
+If you are configuring Webmin for the first time, then you can safely
+accept all of the defaults for options prompted by the setup script.
+
+===========================================================================
diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile
new file mode 100644
index 00000000000..7379b321ab4
--- /dev/null
+++ b/sysutils/webmin/Makefile
@@ -0,0 +1,72 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+
+DISTNAME= webmin-1.150-minimal
+PKGNAME= ${DISTNAME:S/-minimal$//}
+CATEGORIES= sysutils www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webadmin/}
+
+MAINTAINER= jlam@NetBSD.org
+HOMEPAGE= http://www.webmin.com/
+COMMENT= Perl web server and CGI for Unix system administration
+
+DEPENDS+= p5-Net-SSLeay-[0-9]*:../../security/p5-Net-SSLeay
+DEPENDS+= openssl-[0-9]*:../../security/openssl
+
+USE_LANGUAGES= # empty
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+NO_BUILDLINK= yes
+NO_BUILD= yes
+
+USE_PERL5= yes
+REPLACE_PERL= *.cgi */*.cgi *.pl */*.pl
+
+WEBMIN_DIR= ${PREFIX}/${WEBMIN_SUBDIR}
+WEBMIN_SUBDIR= share/webmin
+WEBMIN_ETCDIR?= ${PKG_SYSCONFDIR}/webmin
+WEBMIN_LOGDIR?= ${VARBASE}/log/webmin
+FILES_SUBST+= WEBMIN_DIR=${WEBMIN_DIR}
+FILES_SUBST+= WEBMIN_ETCDIR=${WEBMIN_ETCDIR}
+FILES_SUBST+= WEBMIN_LOGDIR=${WEBMIN_LOGDIR}
+MESSAGE_SUBST+= WEBMIN_DIR=${WEBMIN_DIR}
+
+USE_PKGINSTALL= yes
+DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
+RCD_SCRIPTS= webmin
+OWN_DIRS= ${WEBMIN_ETCDIR} ${WEBMIN_LOGDIR} ${WEBMIN_DIR}
+
+## Don't register any of the files in ${WEBMIN_DIR}. We'll use Webmin's
+## own uninstall script to remove itself.
+##
+## # Dynamically generate the Webmin PLIST from the installed files.
+## WEBMIN_PLIST_FILES= \
+## ( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} \! -type d -print ) \
+## | ${SORT} -u
+## WEBMIN_PLIST_DIRS= \
+## ( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} -type d -print ) \
+## | ${SED} -e "s,^,@unexec ${RMDIR} -p %D/," \
+## -e "s,$$, 2>/dev/null || ${TRUE}," \
+## | ${SORT} -ur
+## GENERATE_PLIST+= ${WEBMIN_PLIST_FILES}; ${WEBMIN_PLIST_DIRS};
+
+do-configure:
+ for file in ${WRKSRC}/setup.sh; do \
+ ${SED} -e "s|/etc/webmin|${WEBMIN_ETCDIR}|g" \
+ -e "s|/var/webmin|${WEBMIN_LOGDIR}|g" \
+ -e "s|/usr/bin/perl|${PERL5}|g" \
+ -e "/chown.*root/s|root|${ROOT_USER}|g" \
+ -e "/chgrp.*bin/s|bin|${ROOT_GROUP}|g" \
+ $$file > $$file.new; \
+ if [ -x $$file ]; then \
+ ${CHMOD} +x $$file.new; \
+ fi; \
+ ${MV} -f $$file.new $$file; \
+ done
+
+pre-install:
+ ${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
+
+do-install:
+ ${INSTALL_DATA_DIR} ${WEBMIN_DIR}
+ ${CP} -R ${WRKSRC}/* ${WEBMIN_DIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/webmin/PLIST b/sysutils/webmin/PLIST
new file mode 100644
index 00000000000..c2c5d499a08
--- /dev/null
+++ b/sysutils/webmin/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
diff --git a/sysutils/webmin/distinfo b/sysutils/webmin/distinfo
new file mode 100644
index 00000000000..2f3e10b0793
--- /dev/null
+++ b/sysutils/webmin/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+
+SHA1 (webmin-1.150-minimal.tar.gz) = 2bcc9ae2c9dddce70117d0061d5db3faed349019
+Size (webmin-1.150-minimal.tar.gz) = 955826 bytes
+SHA1 (patch-aa) = 55dbbd25f3d5e3eddcabe86809da6f780703b617
diff --git a/sysutils/webmin/files/webmin.sh b/sysutils/webmin/files/webmin.sh
new file mode 100644
index 00000000000..7983b23bcce
--- /dev/null
+++ b/sysutils/webmin/files/webmin.sh
@@ -0,0 +1,52 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: webmin.sh,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+#
+# PROVIDE: webmin
+# REQUIRE: LOGIN
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="webmin"
+rcvar=${name}
+command="@WEBMIN_DIR@/miniserv.pl"
+command_interpreter="@PERL5@"
+webmin_etcdir="@WEBMIN_ETCDIR@"
+required_files="@WEBMIN_ETCDIR@/miniserv.conf"
+
+start_cmd="webmin_doit"
+stop_cmd="webmin_doit"
+
+webmin_doit()
+{
+ script="${webmin_etcdir}/${rc_arg}"
+ required_files="${required_files} ${script}"
+ for f in $required_files; do
+ if [ ! -r "$f" ]; then
+ @ECHO@ 1>&2 "$0: WARNING: $f is not readable"
+ if [ -z $rc_force ]; then
+ return 1
+ fi
+ fi
+ done
+ ${script}
+}
+
+if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ if [ -f /etc/rc.conf ]; then
+ . /etc/rc.conf
+ fi
+ case "$1" in
+ stop)
+ eval ${stop_cmd}
+ ;;
+ start)
+ eval ${start_cmd}
+ ;;
+ esac
+fi
diff --git a/sysutils/webmin/patches/patch-aa b/sysutils/webmin/patches/patch-aa
new file mode 100644
index 00000000000..af6b0cbfba5
--- /dev/null
+++ b/sysutils/webmin/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+
+--- setup.sh.orig Wed Jun 2 01:33:09 2004
++++ setup.sh
+@@ -419,6 +419,7 @@ else
+ fi
+
+ # Ask whether to run at boot time
++ atboot=0
+ if [ "$atboot" = "" ]; then
+ initsupp=`grep "^os_support=" "$srcdir/init/module.info" | sed -e 's/os_support=//g' | grep $os_type`
+ atboot=0
+@@ -535,6 +536,7 @@ EOF
+ fi
+ fi
+
++noperlpath=yes
+ if [ "$noperlpath" = "" ]; then
+ echo "Inserting path to perl into scripts.."
+ (find "$wadir" -name '*.cgi' -print ; find "$wadir" -name '*.pl' -print) | $perl "$wadir/perlpath.pl" $perl -