aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-03-28 14:53:11 +0800
committerdes <des@FreeBSD.org>2007-03-28 14:53:11 +0800
commit74245e5c9dc2669040f47ad0638ec177a478633c (patch)
treeaa8a6b50f31128a722e85383c7b44720be8ac351 /net-mgmt
parent1c27552dbd822421d42350768a204e0ac61b598f (diff)
downloadfreebsd-ports-gnome-74245e5c9dc2669040f47ad0638ec177a478633c.tar.gz
freebsd-ports-gnome-74245e5c9dc2669040f47ad0638ec177a478633c.tar.zst
freebsd-ports-gnome-74245e5c9dc2669040f47ad0638ec177a478633c.zip
Upgrade to 3.2.1. There is still some work to be done wrt. auto-config,
but this ought to work at least as well as previous versions of the port.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nav/Makefile51
-rw-r--r--net-mgmt/nav/distinfo6
-rw-r--r--net-mgmt/nav/files/apache.conf1
-rw-r--r--net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl46
-rw-r--r--net-mgmt/nav/files/patch-subsystem-startstop-functions.in22
-rw-r--r--net-mgmt/nav/files/patch-subsystem-webFront-lib-nav-web-auth.py10
-rw-r--r--net-mgmt/nav/pkg-install79
-rw-r--r--net-mgmt/nav/pkg-plist155
-rw-r--r--net-mgmt/nav/scripts/fixpyenc45
9 files changed, 186 insertions, 229 deletions
diff --git a/net-mgmt/nav/Makefile b/net-mgmt/nav/Makefile
index e204049a8010..4435c1bbf0bd 100644
--- a/net-mgmt/nav/Makefile
+++ b/net-mgmt/nav/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= nav
-PORTVERSION= 3.1.0
-PORTREVISION= 1
+PORTVERSION= 3.2.1
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,29 +16,36 @@ COMMENT= Network Administration Visualized
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant \
${LOCALBASE}/bin/cheetah:${PORTSDIR}/devel/py-cheetah \
- ginstall:${PORTSDIR}/sysutils/coreutils \
gfind:${PORTSDIR}/misc/findutils \
ginstall:${PORTSDIR}/sysutils/coreutils \
${JAVALIBDIR}/snmp.jar:${PORTSDIR}/java/drexelsnmp
+# ports.mk should really take care of this for us...
.if exists(${LOCALBASE}/jakarta-tomcat4.1/bin/catalina.sh)
TOMCAT_DEPEND= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/tomcat41
CATALINA_HOME= ${LOCALBASE}/jakarta-tomcat4.1
+CLASSPATH= ${CATALINA_HOME}/common/lib/servlet.jar
.elif exists(${LOCALBASE}/jakarta-tomcat4.0.6/bin/catalina.sh)
TOMCAT_DEPEND= ${LOCALBASE}/jakarta-tomcat4.0.6:${PORTSDIR}/www/jakarta-tomcat4
CATALINA_HOME= ${LOCALBASE}/jakarta-tomcat4.0.6
+CLASSPATH= ${CATALINA_HOME}/common/lib/servlet.jar
.elif exists(${LOCALBASE}/jakarta-tomcat5.0/bin/catalina.sh)
TOMCAT_DEPEND= ${LOCALBASE}/jakarta-tomcat5.0:${PORTSDIR}/www/jakarta-tomcat5
CATALINA_HOME= ${LOCALBASE}/jakarta-tomcat5.0
-.else
+CLASSPATH= ${CATALINA_HOME}/common/lib/servlet-api.jar
+.elif exists(${LOCALBASE}/tomcat5.5/bin/catalina.sh)
TOMCAT_DEPEND= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
CATALINA_HOME= ${LOCALBASE}/tomcat5.5
+CLASSPATH= ${CATALINA_HOME}/common/lib/servlet-api.jar
+.else
+TOMCAT_DEPEND= ${LOCALBASE}/apache-tomcat6.0:${PORTSDIR}/www/tomcat6
+CATALINA_HOME= ${LOCALBASE}/apache-tomcat6.0
+CLASSPATH= ${CATALINA_HOME}/lib/servlet-api.jar
.endif
BUILD_DEPENDS+= ${TOMCAT_DEPEND}
-RUN_DEPENDS= ${LOCALBASE}/libexec/apache2/mod_python.so:${PORTSDIR}/www/mod_python3 \
- ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
+RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg \
${SITE_PERL}/${PERL_ARCH}/Pg.pm:${PORTSDIR}/databases/p5-Pg \
${PYTHON_SITELIBDIR}/rrdtool/_rrdtool.so:${PORTSDIR}/net/py-rrdtool_lgpl \
@@ -49,34 +55,30 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/apache2/mod_python.so:${PORTSDIR}/www/mod_pyth
${PYTHON_SITELIBDIR}/forgetSQL.py:${PORTSDIR}/databases/py-forgetsql \
${PYTHON_SITELIBDIR}/forgetHTML.py:${PORTSDIR}/www/py-forgethtml \
${PYTHON_SITELIBDIR}/pysnmp/v2c.py:${PORTSDIR}/net-mgmt/py-snmp2 \
+ ${PYTHON_SITELIBDIR}/IPy.py:${PORTSDIR}/net-mgmt/py-ipy \
${LOCALBASE}/bin/gammu:${PORTSDIR}/comms/gammu \
${TOMCAT_DEPEND}
-MAKE_ENV+= CLASSPATH=${CATALINA_HOME}/common/lib/servlet-api.jar
+MAKE_ENV+= CLASSPATH=${CLASSPATH}
HAS_CONFIGURE= yes
USE_PERL5= yes
USE_PYTHON= 2.3+
USE_JAVA= yes
JAVA_VERSION= 1.4+
-USE_APACHE= yes
-WITH_APACHE2= yes
+USE_APACHE= 2.0+
USE_GETTEXT= yes
USE_GMAKE= yes
-USE_PHP= yes
+USE_PHP= ctype gettext overload pcre pgsql posix \
+ session tokenizer xml zlib
+DEFAULT_PHP_VER=4
+IGNORE_WITH_PHP=5
WANT_PHP_MOD= yes
USE_REINPLACE_CMD= yes
-NO_PACKAGE= Requires manual configuration during build
CONFIGURE_ENV= INSTALL="${LOCALBASE}/bin/ginstall"
CONFIGURE_ARGS= --prefix=${PREFIX}/nav ${CONFIGURE_TARGET}
PKGDEINSTALL= ${PKGDIR}/pkg-install
-PYENCMISSING= subsystem/lib-python/src/nav/db/navprofiles.py \
- subsystem/lib-python/src/nav/db/forgotten/manage.py
-PYCRONPATH= subsystem/logger/bin/logengine.py \
- subsystem/messages/bin/maintengine.py \
- subsystem/thresholdMon/thresholdMon.py
-
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
@@ -84,15 +86,12 @@ IGNORE= This port requires perl 5.6 or newer
.endif
post-patch:
+ @(${FIND} ${WRKSRC} -name '*.py' -print0 | \
+ ${ENV} PYTHON_CMD=${PYTHON_CMD} \
+ ${XARGS} -0 ${SCRIPTDIR}/fixpyenc)
@${REINPLACE_CMD} -E -e "s@(property name=\"catalina.home\").*@\1 value=\"${CATALINA_HOME}\"/>@" ${WRKSRC}/src/webapps/*/build.xml
@${REINPLACE_CMD} -e "s@find@gfind@g" ${WRKSRC}/subsystem/alertprofiles/Makefile.in ${WRKSRC}/tools/htpython.sh ${WRKSRC}/subsystem/statTools/cleanrrds.pl
@${REINPLACE_CMD} -E -e "s@^(CRICKETDIR=).*@\1${LOCALBASE}/cricket@" ${WRKSRC}/subsystem/statTools/cricket.cron
-.for f in ${PYENCMISSING}
- @${SCRIPTDIR}/fixpyenc ${WRKSRC}/${f}
-.endfor
-.for f in ${PYCRONPATH}
- @${REINPLACE_CMD} -E -e "s@/usr/bin/env python@${LOCALBASE}/bin/python@" ${WRKSRC}/${f}
-.endfor
@${REINPLACE_CMD} -E -e "s@^(JAVA_HOME).*@\1 = ${JAVA_HOME}@" \
${WRKSRC}/doc/conf/nav.conf
@@ -108,11 +107,12 @@ pre-build:
pre-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
- @${FIND} ${WRKSRC} \( -name '*.bak' -or -name '*.orig' \) -delete
+# @${FIND} ${WRKSRC} \( -name '*.bak' -or -name '*.orig' \) -delete
post-install:
- @${INSTALL_DATA} ${FILESDIR}/apache.conf ${PREFIX}/etc/apache2/Includes/nav.conf.sample
+ @${INSTALL_DATA} ${FILESDIR}/apache.conf ${PREFIX}/${APACHEETCDIR}/Includes/nav.conf.sample
@${CHOWN} -R navcron:nav ${PREFIX}/nav/var
+.ifdef NOTDEF
@LOCALBASE=${LOCALBASE} JAVA_HOME=${JAVA_HOME} ${SH} ${SCRIPTDIR}/navenv w >${WRKSRC}/navenv.sh
@${INSTALL_SCRIPT} ${WRKSRC}/navenv.sh ${PREFIX}/nav/bin/
@${ECHO}
@@ -126,6 +126,7 @@ post-install:
@${ECHO_MSG} "PostgreSQL database in ${PREFIX}/nav/etc/db.conf. Make sure it is possible to"
@${ECHO_MSG} "log into it using TCP/IP, check tcpip_socket in postgresql.conf."
@${ECHO}
+.endif # NOTDEF
@${ECHO_MSG} "===> Consider using make auto-config. It will auto-configure NAV, setting up"
@${ECHO_MSG} "===> shell environment and PostgreSQL database."
@${ECHO}
diff --git a/net-mgmt/nav/distinfo b/net-mgmt/nav/distinfo
index abdfcdcaf688..a928b5584b11 100644
--- a/net-mgmt/nav/distinfo
+++ b/net-mgmt/nav/distinfo
@@ -1,3 +1,3 @@
-MD5 (nav-3.1.0.tar.gz) = b7039b59e8440f2bdc3aac276bffcdcc
-SHA256 (nav-3.1.0.tar.gz) = 897323996c28a5e8bda0605f75a08d81765ce6a84deb67822d8eceb8197a784f
-SIZE (nav-3.1.0.tar.gz) = 4416113
+MD5 (nav-3.2.1.tar.gz) = 5828c2ee5f0f097cb96bed6ce7b3c319
+SHA256 (nav-3.2.1.tar.gz) = a192af29b9a33359bb165fd98fd1b58943d452a82448f9fcef44bf47fd01bc67
+SIZE (nav-3.2.1.tar.gz) = 4300912
diff --git a/net-mgmt/nav/files/apache.conf b/net-mgmt/nav/files/apache.conf
index 25528344886e..3842ead2a96b 100644
--- a/net-mgmt/nav/files/apache.conf
+++ b/net-mgmt/nav/files/apache.conf
@@ -11,6 +11,7 @@
Order allow,deny
Allow from all
+ # NOTE: you may need to a LoadModule entry for mod_python to httpd.conf
AddHandler python-program .py
AddHandler cgi-script .cgi
SetHandler mod_python
diff --git a/net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl b/net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl
deleted file mode 100644
index cd698a85d7bf..000000000000
--- a/net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl
+++ /dev/null
@@ -1,46 +0,0 @@
---- subsystem/alertEngine/alertdaemon.pl.orig Fri Sep 9 10:52:00 2005
-+++ subsystem/alertEngine/alertdaemon.pl Mon Aug 21 10:16:23 2006
-@@ -37,9 +37,16 @@
- use IO::Handle;
-
- use NAV::AlertEngine::Engine;
-+use vars qw ($pscmd);
-
- #BEGIN {require "alertengine.cfg";}
-
-+if ((POSIX::uname)[0] eq "FreeBSD") {
-+ $pscmd = "ps axc -opid,tty,time,command";
-+} else {
-+ $pscmd = "ps -e";
-+}
-+
- ####################################################
- ## Engine
- ####################################################
-@@ -66,7 +73,7 @@
- die "Cannot open pidfile";
- my ($pid, $tid) = split / /, <pid_file>;
- close(pid_file);
-- open ps_file, "ps -e | grep $pid | wc -l|";
-+ open ps_file, "$pscmd | grep $pid | wc -l|";
- my $count=<ps_file>;
- close(ps_file);
- if($count==0) {
-@@ -145,7 +152,7 @@
- die "Cannot open pidfile";
- my ($pid, $tid) = split / /, <pid_file>;
- close(pid_file);
-- open ps_file, "ps -e | grep $pid | wc -l|";
-+ open ps_file, "$pscmd | grep $pid | wc -l|";
- my $count=<ps_file>;
- close(ps_file);
- if($count==0) {
-@@ -180,7 +187,7 @@
- die "Cannot open pidfile";
- my ($pid, $tid) = split / /, <pid_file>;
- close(pid_file);
-- open ps_file, "ps -e | grep $pid | wc -l|";
-+ open ps_file, "$pscmd | grep $pid | wc -l|";
- my $count=<ps_file>;
- close(ps_file);
- if($count>0) {
diff --git a/net-mgmt/nav/files/patch-subsystem-startstop-functions.in b/net-mgmt/nav/files/patch-subsystem-startstop-functions.in
deleted file mode 100644
index b39a2cfb29a0..000000000000
--- a/net-mgmt/nav/files/patch-subsystem-startstop-functions.in
+++ /dev/null
@@ -1,22 +0,0 @@
---- subsystem/startstop/functions.in.orig Thu Nov 18 13:10:22 2004
-+++ subsystem/startstop/functions.in Thu Nov 18 13:10:26 2004
-@@ -84,6 +84,10 @@
- return 1
- }
-
-+pidexists() {
-+ ps -p $1 | tail +2
-+}
-+
- pidofproc() {
- local base=${1##*/}
- local PIDOF=/sbin/pidof
-@@ -99,7 +103,7 @@
- local line p pid=
- read line < $pidfile
- for p in $line ; do
-- [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
-+ [ -z "${p//[0-9]/}" -a -n "`pidexists $p`" ] && pid="$pid $p"
- done
- if [ -n "${pid-:}" ] ; then
- echo $pid
diff --git a/net-mgmt/nav/files/patch-subsystem-webFront-lib-nav-web-auth.py b/net-mgmt/nav/files/patch-subsystem-webFront-lib-nav-web-auth.py
new file mode 100644
index 000000000000..3e7c9b4065de
--- /dev/null
+++ b/net-mgmt/nav/files/patch-subsystem-webFront-lib-nav-web-auth.py
@@ -0,0 +1,10 @@
+--- subsystem/webFront/lib/nav/web/auth.py.orig Tue Mar 13 11:59:25 2007
++++ subsystem/webFront/lib/nav/web/auth.py Wed Mar 14 12:09:35 2007
+@@ -30,6 +30,7 @@
+ import nav
+ import logging
+
++from nav import auth
+ from nav import db
+ from nav.db import navprofiles
+ from nav.web.preferences import Preferences, Link
diff --git a/net-mgmt/nav/pkg-install b/net-mgmt/nav/pkg-install
index bd0dabfd2743..f1d894715066 100644
--- a/net-mgmt/nav/pkg-install
+++ b/net-mgmt/nav/pkg-install
@@ -1,72 +1,19 @@
#! /bin/sh
-pw="/usr/sbin/pw"
-users="navcron:nav:${PKG_PREFIX}/nav"
-
-setname() {
- # $1: username $2: real name
- $pw usermod "$1" -c "$2" 2>/dev/null
-}
-
-cruser() {
- username=`echo $1 | awk -F : '{print $1}'`
- group=`echo $1 | awk -F : '{print $2}'`
- homedir=`echo $1 | awk -F : '{print $3}'`
- name=`echo $1 | awk -F : '{print $4}'`
- shell="/bin/sh"
-
- if ($pw groupshow $group >/dev/null 2>&1)
- then
- echo "Group $group exists, so I will use it."
- else
- if ($pw groupadd $group)
- then
- echo "Added group $group."
- else
- echo "Could not add group $group. Aborting."
- exit 1
- fi
- fi
-
- if ($pw usershow $username >/dev/null 2>&1)
- then
- echo "User $username exists, so I will use it."
- else
- if ($pw useradd $username -g $group -d $homedir -s $shell -w no)
- then
- echo "Added user $username."
- else
- echo "Could not add user $username. Aborting."
- exit 1
- fi
- fi
-}
-
-deluser() {
- username=`echo $1 | awk -F : '{print $1}'`
- group=`echo $1 | awk -F : '{print $2}'`
- homedir=`echo $1 | awk -F : '{print $3}'`
-
- printf "Attempting to delete user $username: "
- if (printf "" | $pw userdel $username 2>/dev/null)
- then
- echo OK
- else
- echo FAIL
- fi
- printf "Attempting to delete group $group: "
- if ($pw groupdel $group 2>/dev/null)
- then
- echo OK
- else
- echo FAIL
- fi
-}
-
case "$2" in
PRE-INSTALL)
- for user in $users; do cruser $user; done
- setname navcron "NAV User"
+ set -e
+ if ! pw groupshow nav >/dev/null 2>&1 ; then
+ pw groupadd nav -g 127
+ fi
+ if ! pw usershow navcron >/dev/null 2>&1 ; then
+ pw useradd navcron -u 127 -g nav -h - \
+ -d ${PKG_PREFIX}/nav -s /sbin/nologin \
+ -c 'Network Administration Visualized'
+ fi
+ ;;
+DEINSTALL)
+ pw userdel navcron
+ pw groupdel nav
;;
-DEINSTALL) for user in $users; do deluser $user; done;;
esac
diff --git a/net-mgmt/nav/pkg-plist b/net-mgmt/nav/pkg-plist
index 46b2b0c28964..1e1ad3b0e08b 100644
--- a/net-mgmt/nav/pkg-plist
+++ b/net-mgmt/nav/pkg-plist
@@ -1,23 +1,28 @@
-etc/apache2/Includes/nav.conf.sample
+%%APACHEETCDIR%%/Includes/nav.conf.sample
nav/apache/tools/alertprofiles.tool
nav/apache/tools/arnold.tool
-nav/apache/tools/cricket.tool
nav/apache/tools/devicemanagement.tool
nav/apache/tools/editdb.tool
nav/apache/tools/ipinfo.tool
nav/apache/tools/l2trace.tool
nav/apache/tools/logger.tool
nav/apache/tools/machinetracker.tool
+nav/apache/tools/maintenance.tool
nav/apache/tools/messages.tool
nav/apache/tools/navAdmin.tool
nav/apache/tools/report.tool
+nav/apache/tools/stats.tool
nav/apache/tools/status.tool
nav/apache/tools/useradmin.tool
nav/apache/tools/vlanPlot.tool
nav/apache/webapps/navAdmin.war
nav/apache/webapps/vPServer.war
nav/apache/webroot/.htaccess
+nav/apache/webroot/about/.htaccess
+nav/apache/webroot/about/about.html
+nav/apache/webroot/about/about.py
nav/apache/webroot/alertprofiles/.htaccess
+nav/apache/webroot/alertprofiles/Makefile.in.bak
nav/apache/webroot/alertprofiles/auth.php
nav/apache/webroot/alertprofiles/check_syntax.function.php
nav/apache/webroot/alertprofiles/config.php
@@ -162,13 +167,13 @@ nav/apache/webroot/images/lys/green.png
nav/apache/webroot/images/lys/red.png
nav/apache/webroot/images/lys/yellow.png
nav/apache/webroot/images/main/.htaccess
-nav/apache/webroot/images/main/background-fill-nologo.gif
-nav/apache/webroot/images/main/background-fill.gif
+nav/apache/webroot/images/main/background-navbar.gif
+nav/apache/webroot/images/main/background-navlogo.gif
nav/apache/webroot/images/main/navbar-separator.gif
-nav/apache/webroot/images/main/navlogo+background.gif
nav/apache/webroot/images/main/quicklink-end.gif
nav/apache/webroot/images/main/quicklink-fill.gif
nav/apache/webroot/images/main/quicklink-start.gif
+nav/apache/webroot/images/ntnu.jpg
nav/apache/webroot/images/pilned.png
nav/apache/webroot/images/pilopp.png
nav/apache/webroot/images/ragen/.htaccess
@@ -211,28 +216,38 @@ nav/apache/webroot/images/toolbox/tools/cricket.gif
nav/apache/webroot/images/toolbox/tools/devbrowser.gif
nav/apache/webroot/images/toolbox/tools/devman.gif
nav/apache/webroot/images/toolbox/tools/editdb.gif
-nav/apache/webroot/images/toolbox/tools/emotd.gif
nav/apache/webroot/images/toolbox/tools/ipinfo.png
nav/apache/webroot/images/toolbox/tools/l2trace.png
+nav/apache/webroot/images/toolbox/tools/machinetracker.png
+nav/apache/webroot/images/toolbox/tools/maintenance.png
+nav/apache/webroot/images/toolbox/tools/messages.png
nav/apache/webroot/images/toolbox/tools/network-explorer.gif
nav/apache/webroot/images/toolbox/tools/ragen.gif
nav/apache/webroot/images/toolbox/tools/searchtools.gif
-nav/apache/webroot/images/toolbox/tools/stat.gif
+nav/apache/webroot/images/toolbox/tools/stats.png
nav/apache/webroot/images/toolbox/tools/status.gif
nav/apache/webroot/images/toolbox/tools/syslog-analyzer.gif
nav/apache/webroot/images/toolbox/tools/useradmin.png
-nav/apache/webroot/images/toolbox/tools/vlanplot.gif
+nav/apache/webroot/images/toolbox/tools/vlanplot.png
+nav/apache/webroot/images/uninett.png
nav/apache/webroot/images/wrench.gif
nav/apache/webroot/index.py
nav/apache/webroot/ipinfo/.htaccess
+nav/apache/webroot/js/.htaccess
+nav/apache/webroot/js/DeviceBrowserTemplate.js
+nav/apache/webroot/js/EditTemplate.js
+nav/apache/webroot/js/default.js
+nav/apache/webroot/js/editdbTemplate.js
+nav/apache/webroot/js/table.js
nav/apache/webroot/l2trace/.htaccess
nav/apache/webroot/l2trace/l2trace.py
nav/apache/webroot/logger/.htaccess
nav/apache/webroot/logger/loggerhandler.py
nav/apache/webroot/machinetracker/.htaccess
nav/apache/webroot/machinetracker/machinetracker.py
+nav/apache/webroot/maintenance/.htaccess
nav/apache/webroot/messages/.htaccess
-nav/apache/webroot/messages/messageshandler.py
+nav/apache/webroot/mysms/.htaccess
nav/apache/webroot/navAdmin/.htaccess
nav/apache/webroot/navAdmin/index
nav/apache/webroot/preferences/.htaccess
@@ -246,24 +261,30 @@ nav/apache/webroot/report/Generator.py
nav/apache/webroot/report/Matrix.py
nav/apache/webroot/report/Report.py
nav/apache/webroot/report/reporthandler.py
-nav/apache/webroot/source/arnold.svg
-nav/apache/webroot/source/devman-toolicon.psd
-nav/apache/webroot/source/editdb-toolicon.psd
-nav/apache/webroot/source/editdb.svg
-nav/apache/webroot/source/l2trace.svg
-nav/apache/webroot/source/navbar-separator.psd
-nav/apache/webroot/source/navlogo.svg
-nav/apache/webroot/source/network-explorer-toolicon.psd
-nav/apache/webroot/source/ntnu-toolicon.psd
-nav/apache/webroot/source/router.svg
-nav/apache/webroot/source/status.svg
-nav/apache/webroot/source/toolicon-background.psd
-nav/apache/webroot/source/useradmin.svg
+nav/apache/webroot/stats/.htaccess
nav/apache/webroot/status/.htaccess
nav/apache/webroot/status/StatusDefaultPrefs.py
nav/apache/webroot/status/StatusPrefs.py
nav/apache/webroot/status/StatusSections.py
nav/apache/webroot/status/status.py
+nav/apache/webroot/style/.htaccess
+nav/apache/webroot/style/DeviceBrowserTemplate.css
+nav/apache/webroot/style/FrontpageTemplate.css
+nav/apache/webroot/style/MatrixScopesTemplate.css
+nav/apache/webroot/style/MatrixTemplate.css
+nav/apache/webroot/style/UserInfo.css
+nav/apache/webroot/style/calendar.css
+nav/apache/webroot/style/default.css
+nav/apache/webroot/style/deviceManagement.css
+nav/apache/webroot/style/editdbTemplate.css
+nav/apache/webroot/style/form.css
+nav/apache/webroot/style/ipinfo.css
+nav/apache/webroot/style/l2trace.css
+nav/apache/webroot/style/machinetracker.css
+nav/apache/webroot/style/messages.css
+nav/apache/webroot/style/table.css
+nav/apache/webroot/style/tabs.css
+nav/apache/webroot/style/tabs2.css
nav/apache/webroot/toolbox/.htaccess
nav/apache/webroot/toolbox/toolbox.py
nav/apache/webroot/useradmin.py
@@ -289,6 +310,7 @@ nav/apache/webroot/vlanPlot/icons/tildelt.gif
nav/apache/webroot/vlanPlot/icons/undef.gif
nav/apache/webroot/vlanPlot/icons/vpn-orig.png
nav/apache/webroot/vlanPlot/index.py
+nav/apache/webroot/vlanPlot/index.py.orig
nav/apache/webroot/vlanPlot/omvlanplot.html
nav/apache/webroot/vlanPlot/vlanPlot.jar
nav/bin/alertdaemon.pl
@@ -311,13 +333,10 @@ nav/bin/makecricketconfig.pl
nav/bin/nav
nav/bin/navTemplate.py
nav/bin/navclean.py
-nav/bin/navenv.sh
nav/bin/networkDiscovery.sh
-nav/bin/pg_backup.pl
nav/bin/pping.py
-nav/bin/safe_smsd.pl
nav/bin/servicemon.py
-nav/bin/smsd.pl
+nav/bin/smsd.py
nav/bin/start_arnold.pl
nav/bin/t1000.pl
nav/bin/thresholdMon.py
@@ -325,22 +344,17 @@ nav/bin/vprrd.py
nav/doc/cricket/README
nav/doc/cricket/cricket-config/.nav
nav/doc/cricket/cricket-config/Defaults
-nav/doc/cricket/cricket-config/router-interfaces-snmpv1-and-giga/.nav
-nav/doc/cricket/cricket-config/router-interfaces-snmpv1-and-giga/Defaults
nav/doc/cricket/cricket-config/router-interfaces/.nav
nav/doc/cricket/cricket-config/router-interfaces/Defaults
nav/doc/cricket/cricket-config/routers/.nav
nav/doc/cricket/cricket-config/routers/Defaults
nav/doc/cricket/cricket-config/servers/.nav
nav/doc/cricket/cricket-config/servers/Defaults
-nav/doc/cricket/cricket-config/switch-ports-snmpv1-and-giga/.nav
-nav/doc/cricket/cricket-config/switch-ports-snmpv1-and-giga/Defaults
nav/doc/cricket/cricket-config/switch-ports/.nav
nav/doc/cricket/cricket-config/switch-ports/Defaults
nav/doc/cricket/cricket-config/switches/.nav
nav/doc/cricket/cricket-config/switches/Defaults
nav/doc/cricket/cricket/subtree-sets
-nav/doc/cricket/cricket/view-groups
nav/doc/cricket/public_html/cricket.css
nav/doc/getting-started.txt
nav/doc/sql/README
@@ -349,10 +363,13 @@ nav/doc/sql/logger.sql
nav/doc/sql/manage.sql
nav/doc/sql/navprofiles.sql
nav/doc/sql/snmpoid.sql
+nav/doc/sql/types.sql
nav/doc/sql/upgrades/3.0_beta10.sql
nav/doc/sql/upgrades/3.0_beta7.sql
nav/doc/sql/upgrades/3.0_beta8.sql
nav/doc/sql/upgrades/3.0_rc1.sql
+nav/doc/sql/upgrades/3.1.0.sql
+nav/doc/sql/upgrades/3.2.0.sql
nav/doc/sql/upgrades/README
nav/etc/alertengine.cfg
nav/etc/alertmsg.conf
@@ -361,14 +378,12 @@ nav/etc/arnold/mailtemplates/README
nav/etc/arnold/nonblock.cfg
nav/etc/cricket-views.conf
nav/etc/cricketoids.txt
-nav/etc/cron.d/backup
nav/etc/cron.d/cricket
nav/etc/cron.d/iptrace
nav/etc/cron.d/logengine
nav/etc/cron.d/mactrace
nav/etc/cron.d/maintengine
nav/etc/cron.d/networkDiscovery
-nav/etc/cron.d/safe_smsd
nav/etc/cron.d/thresholdMon
nav/etc/db.conf
nav/etc/devbrowser.conf
@@ -388,7 +403,6 @@ nav/etc/l2trace.conf
nav/etc/logger.conf
nav/etc/machinetracker.conf
nav/etc/nav.conf
-nav/etc/pg_backup.conf
nav/etc/pping.conf
nav/etc/report/front.html
nav/etc/report/matrix.conf
@@ -396,6 +410,7 @@ nav/etc/report/report.conf
nav/etc/rrdBrowser.conf
nav/etc/servicemon.conf
nav/etc/smsd.conf
+nav/etc/sortedStats.conf
nav/etc/vPServer.conf
nav/etc/webfront/contact-information.txt
nav/etc/webfront/external-links.txt
@@ -464,7 +479,9 @@ nav/lib/perl/NetAddr/IP.pm
nav/lib/python/nav/Snmp.py
nav/lib/python/nav/__init__.py
nav/lib/python/nav/auth.py
+nav/lib/python/nav/buildconf.py
nav/lib/python/nav/config.py
+nav/lib/python/nav/daemon.py
nav/lib/python/nav/database.py
nav/lib/python/nav/db/__init__.py
nav/lib/python/nav/db/forgotten/__init__.py
@@ -477,10 +494,19 @@ nav/lib/python/nav/dump.py
nav/lib/python/nav/errors.py
nav/lib/python/nav/event.py
nav/lib/python/nav/getstatus.py
+nav/lib/python/nav/logconfig.py
+nav/lib/python/nav/maintenance.py
+nav/lib/python/nav/messages.py
nav/lib/python/nav/path.py
nav/lib/python/nav/pwhash.py
nav/lib/python/nav/rrd/__init__.py
nav/lib/python/nav/rrd/presenter.py
+nav/lib/python/nav/smsd/__init__.py
+nav/lib/python/nav/smsd/boostdispatcher.py
+nav/lib/python/nav/smsd/dispatcher.py
+nav/lib/python/nav/smsd/gammudispatcher.py
+nav/lib/python/nav/smsd/navdbqueue.py
+nav/lib/python/nav/smsd/uninettmaildispatcher.py
nav/lib/python/nav/startstop.py
nav/lib/python/nav/statemon/DEQueue.py
nav/lib/python/nav/statemon/DNS/Base.py
@@ -560,6 +586,7 @@ nav/lib/python/nav/web/TreeSelect.py
nav/lib/python/nav/web/URI.py
nav/lib/python/nav/web/__init__.py
nav/lib/python/nav/web/auth.py
+nav/lib/python/nav/web/cycler.py
nav/lib/python/nav/web/devBrowser/__init__.py
nav/lib/python/nav/web/devBrowser/dispatcher.py
nav/lib/python/nav/web/devBrowser/module.py
@@ -571,10 +598,12 @@ nav/lib/python/nav/web/devBrowser/servicetable.py
nav/lib/python/nav/web/ipinfo/__init__.py
nav/lib/python/nav/web/ipinfo/config.py
nav/lib/python/nav/web/ldapAuth.py
+nav/lib/python/nav/web/maintenance/__init__.py
+nav/lib/python/nav/web/maintenance/handler.py
nav/lib/python/nav/web/messages/__init__.py
-nav/lib/python/nav/web/messages/conf.py
-nav/lib/python/nav/web/messages/lib.py
-nav/lib/python/nav/web/messages/menu.py
+nav/lib/python/nav/web/messages/handler.py
+nav/lib/python/nav/web/mysms/__init__.py
+nav/lib/python/nav/web/mysms/handler.py
nav/lib/python/nav/web/preferences.py
nav/lib/python/nav/web/pyproxy/__init__.py
nav/lib/python/nav/web/pyproxy/proxy.py
@@ -582,36 +611,37 @@ nav/lib/python/nav/web/pyproxy/vlanPlot.py
nav/lib/python/nav/web/sci_exp.py
nav/lib/python/nav/web/selectTree.py
nav/lib/python/nav/web/serviceHelper.py
+nav/lib/python/nav/web/sortedStats.py
nav/lib/python/nav/web/state.py
nav/lib/python/nav/web/tableview.py
nav/lib/python/nav/web/templates/ArnoldTemplate.py
nav/lib/python/nav/web/templates/ChangeLinkTemplate.py
nav/lib/python/nav/web/templates/DeviceBrowserTemplate.py
-nav/lib/python/nav/web/templates/EditTemplate.py
-nav/lib/python/nav/web/templates/EmotdFrontpage.py
-nav/lib/python/nav/web/templates/EmotdMessageTemplate.py
-nav/lib/python/nav/web/templates/EmotdStandardTemplate.py
-nav/lib/python/nav/web/templates/EmotdTemplate.py
-nav/lib/python/nav/web/templates/FeederTemplate.py
nav/lib/python/nav/web/templates/FrontpageTemplate.py
nav/lib/python/nav/web/templates/IPInfo.py
nav/lib/python/nav/web/templates/LoggerTemplate.py
nav/lib/python/nav/web/templates/LoginTemplate.py
nav/lib/python/nav/web/templates/MachineTrackerTemplate.py
nav/lib/python/nav/web/templates/MainTemplate.py
-nav/lib/python/nav/web/templates/MaintListTemplate.py
-nav/lib/python/nav/web/templates/MaintTimeTemplate.py
+nav/lib/python/nav/web/templates/MaintenanceCalTemplate.py
+nav/lib/python/nav/web/templates/MaintenanceListTemplate.py
+nav/lib/python/nav/web/templates/MaintenanceNewTemplate.py
nav/lib/python/nav/web/templates/MaintenanceTemplate.py
nav/lib/python/nav/web/templates/MatrixScopesTemplate.py
nav/lib/python/nav/web/templates/MatrixTemplate.py
+nav/lib/python/nav/web/templates/MessagesFeedTemplate.py
+nav/lib/python/nav/web/templates/MessagesListTemplate.py
+nav/lib/python/nav/web/templates/MessagesNewTemplate.py
+nav/lib/python/nav/web/templates/MessagesTemplate.py
+nav/lib/python/nav/web/templates/MySMSTemplate.py
nav/lib/python/nav/web/templates/NavbarPreferencesTemplate.py
nav/lib/python/nav/web/templates/ReportTemplate.py
nav/lib/python/nav/web/templates/SearchBoxTemplate.py
+nav/lib/python/nav/web/templates/SortedStatsTemplate.py
nav/lib/python/nav/web/templates/StatusTemplate.py
nav/lib/python/nav/web/templates/ToolboxTemplate.py
nav/lib/python/nav/web/templates/TreeSelectTemplate.py
nav/lib/python/nav/web/templates/UserInfo.py
-nav/lib/python/nav/web/templates/ViewMessageTemplate.py
nav/lib/python/nav/web/templates/__init__.py
nav/lib/python/nav/web/templates/deviceManagementTemplate.py
nav/lib/python/nav/web/templates/editdbTemplate.py
@@ -626,27 +656,39 @@ nav/lib/python/nav/web/templates/useradmin/UserAdmin.py
nav/lib/python/nav/web/templates/useradmin/__init__.py
nav/lib/python/nav/web/toolbox.py
nav/lib/python/nav/web/urlbuilder.py
-nav/lib/python/rotater.py
-@exec install -d -m 0755 -o navcron -g nav %D/nav/var/rrd %D/nav/var/run %D/nav/var/pg_backup %D/nav/var/log
-@unexec rm %D/nav/var/log/thresholdMon.log 2>/dev/null || true
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/log
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/log/arnold
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/log/eventEngine
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/log/getDeviceData
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/log/networkDiscovery
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/pg_backup
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/rrd
+@exec install -d -m 0755 -o navcron -g nav %D/nav/var/run
@unexec rm %D/nav/var/run/*.pid 2>/dev/null || true
-@dirrmtry nav/var/log/*
-@dirrmtry nav/var/log
-@dirrmtry nav/var/rrd
@dirrmtry nav/var/run
+@dirrmtry nav/var/rrd
@dirrmtry nav/var/pg_backup
+@dirrmtry nav/var/log/networkDiscovery
+@dirrmtry nav/var/log/getDeviceData
+@dirrmtry nav/var/log/eventEngine
+@dirrmtry nav/var/log/arnold
+@dirrmtry nav/var/log
@dirrmtry nav/var
@unexec find %D/nav/lib/python/nav -type f -name "*.pyc" -delete 2>/dev/null || true
@dirrm nav/lib/python/nav/web/templates/useradmin
@dirrm nav/lib/python/nav/web/templates
@dirrm nav/lib/python/nav/web/pyproxy
+@dirrm nav/lib/python/nav/web/mysms
@dirrm nav/lib/python/nav/web/messages
+@dirrm nav/lib/python/nav/web/maintenance
@dirrm nav/lib/python/nav/web/ipinfo
@dirrm nav/lib/python/nav/web/devBrowser
@dirrm nav/lib/python/nav/web
@dirrm nav/lib/python/nav/statemon/checker
@dirrm nav/lib/python/nav/statemon/DNS
@dirrm nav/lib/python/nav/statemon
+@dirrm nav/lib/python/nav/smsd
@dirrm nav/lib/python/nav/rrd
@dirrm nav/lib/python/nav/db/forgotten
@dirrm nav/lib/python/nav/db
@@ -677,11 +719,9 @@ nav/lib/python/rotater.py
@dirrm nav/doc/sql
@dirrm nav/doc/cricket/public_html
@dirrm nav/doc/cricket/cricket-config/switches
-@dirrm nav/doc/cricket/cricket-config/switch-ports-snmpv1-and-giga
@dirrm nav/doc/cricket/cricket-config/switch-ports
@dirrm nav/doc/cricket/cricket-config/servers
@dirrm nav/doc/cricket/cricket-config/routers
-@dirrm nav/doc/cricket/cricket-config/router-interfaces-snmpv1-and-giga
@dirrm nav/doc/cricket/cricket-config/router-interfaces
@dirrm nav/doc/cricket/cricket-config
@dirrm nav/doc/cricket/cricket
@@ -693,16 +733,20 @@ nav/lib/python/rotater.py
@dirrm nav/apache/webroot/vlanPlot
@dirrm nav/apache/webroot/vPServer
@dirrm nav/apache/webroot/toolbox
+@dirrm nav/apache/webroot/style
@dirrm nav/apache/webroot/status
-@dirrm nav/apache/webroot/source
+@dirrm nav/apache/webroot/stats
@dirrm nav/apache/webroot/report
@dirrm nav/apache/webroot/preferences/navigation
@dirrm nav/apache/webroot/preferences
@dirrm nav/apache/webroot/navAdmin
+@dirrm nav/apache/webroot/mysms
@dirrm nav/apache/webroot/messages
+@dirrm nav/apache/webroot/maintenance
@dirrm nav/apache/webroot/machinetracker
@dirrm nav/apache/webroot/logger
@dirrm nav/apache/webroot/l2trace
+@dirrm nav/apache/webroot/js
@dirrm nav/apache/webroot/ipinfo
@dirrm nav/apache/webroot/images/toolbox/tools
@dirrm nav/apache/webroot/images/toolbox
@@ -730,6 +774,7 @@ nav/lib/python/rotater.py
@dirrm nav/apache/webroot/alertprofiles/documents
@dirrm nav/apache/webroot/alertprofiles/css
@dirrm nav/apache/webroot/alertprofiles
+@dirrm nav/apache/webroot/about
@dirrm nav/apache/webroot
@dirrm nav/apache/webapps
@dirrm nav/apache/tools
diff --git a/net-mgmt/nav/scripts/fixpyenc b/net-mgmt/nav/scripts/fixpyenc
index 4f6c5020004a..49968d3ce58e 100644
--- a/net-mgmt/nav/scripts/fixpyenc
+++ b/net-mgmt/nav/scripts/fixpyenc
@@ -1,12 +1,33 @@
-#! /bin/sh
-
-encstr="# -*- coding: ISO8859-1 -*-"
-
-if [ -z "`head -1 $1 | egrep '#.*!.*python'`" ]
-then
- (echo $encstr; cat $1) >$1.tmp
-else
- (head -1 $1; echo $encstr; tail +2 $1) >$1.tmp
-fi
-cp $1.tmp $1
-rm -f $1.tmp
+#!/usr/bin/perl
+
+use strict;
+
+MAIN:{
+ my $encstr = "# -*- coding: ISO8859-1 -*-\n";
+ local *FILE;
+
+ foreach my $fn (@ARGV) {
+ open(FILE, "<", $fn)
+ or die("$fn: $!\n");
+ my @lines = <FILE>;
+ close(FILE);
+
+ my $interpreter = "";
+ if ($lines[0] =~ m/^\#!/) {
+ ($interpreter = shift(@lines)) =~
+ s|!\s+/usr/bin/env\s+python|!$ENV{'PYTHON_CMD'}|;
+ }
+ if ($lines[0] =~ m/^\#.*-\*-.*coding/) {
+ # leave untouched
+ } else {
+ unshift(@lines, $encstr);
+ }
+
+ open(FILE, ">", "$fn.new")
+ or die("$fn.new: $!\n");
+ print(FILE $interpreter, @lines);
+ close(FILE);
+ link("$fn", "$fn.orig");
+ rename("$fn.new", "$fn");
+ }
+}