pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Import webmin-1.150 as sysutils/webmin.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5089a02c9213
branches:  trunk
changeset: 478437:5089a02c9213
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jul 23 19:28:32 2004 +0000

description:
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.

diffstat:

 doc/CHANGES                      |   3 +-
 sysutils/webmin/DEINSTALL        |  17 +++++++++
 sysutils/webmin/DESCR            |   5 ++
 sysutils/webmin/MESSAGE          |  12 ++++++
 sysutils/webmin/Makefile         |  72 ++++++++++++++++++++++++++++++++++++++++
 sysutils/webmin/PLIST            |   1 +
 sysutils/webmin/distinfo         |   5 ++
 sysutils/webmin/files/webmin.sh  |  52 ++++++++++++++++++++++++++++
 sysutils/webmin/patches/patch-aa |  20 +++++++++++
 9 files changed, 186 insertions(+), 1 deletions(-)

diffs (230 lines):

diff -r e3d855bf7d16 -r 5089a02c9213 doc/CHANGES
--- a/doc/CHANGES       Fri Jul 23 19:02:39 2004 +0000
+++ b/doc/CHANGES       Fri Jul 23 19:28:32 2004 +0000
@@ -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 @@
        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 -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/DEINSTALL Fri Jul 23 19:28:32 2004 +0000
@@ -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 -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/DESCR     Fri Jul 23 19:28:32 2004 +0000
@@ -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 -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/MESSAGE   Fri Jul 23 19:28:32 2004 +0000
@@ -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 -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/Makefile  Fri Jul 23 19:28:32 2004 +0000
@@ -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@localhost
+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 -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/PLIST     Fri Jul 23 19:28:32 2004 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
diff -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/distinfo  Fri Jul 23 19:28:32 2004 +0000
@@ -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 -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/files/webmin.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/files/webmin.sh   Fri Jul 23 19:28:32 2004 +0000
@@ -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 -r e3d855bf7d16 -r 5089a02c9213 sysutils/webmin/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/webmin/patches/patch-aa  Fri Jul 23 19:28:32 2004 +0000
@@ -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 -



Home | Main Index | Thread Index | Old Index