...
 
Commits (9)
nfsen (1.3.6p1-9wheezy3) unstable; urgency=low
* Patch for annoyingly verbose error messages about redefined Perl symbols.
-- Morten Brekkevold <morten.brekkevold@uninett.no> Thu, 17 Mar 2016 11:28:24 +0100
nfsen (1.3.6p1-9wheezy2) unstable; urgency=low
* Packaged for Debian Jessie.
* Patched for removing spurious frontend - backend version mismatch messages.
- https://sourceforge.net/p/nfsen/mailman/message/28747274/
-- Morten Brekkevold <morten.brekkevold@uninett.no> Wed, 09 Mar 2016 13:12:20 +0100
nfsen (1.3.6p1-2ubuntu1) lucid; urgency=low
* Log to conole during install so build isn't dependant on syslog
......
Source: nfsen
Section: net
Priority: optional
Maintainer: John Francesco Ferlito <johnf@inodes.org>
Maintainer: Morten Brekkevold <morten.brekkevold@uninett.no>
Build-Depends: debhelper (>= 8.0.0), quilt, librrds-perl (>= 1.2.11), libmailtools-perl, libsocket6-perl
Standards-Version: 3.9.3
Homepage: http://nfsen.sourceforge.net/
......
#!/bin/sh
set -e
PKG=nfsen
if [ "$1" = configure ] ; then
# Place an initial profile.dat if one doesn't exist from before
DISTRIB=/usr/share/nfsen/profile.dat.distrib
LIVE=/var/lib/nfsen/profiles-stat/live/profile.dat
[ \! -e "$LIVE" ] && cp "$DISTRIB" "$LIVE"
fi
#DEBHELPER#
exit 0
......@@ -8,11 +8,18 @@ Subject: Add config snippet functionality
2 files changed, 6 insertions(+)
create mode 100644 etc/nfsen.d/README
diff --git a/etc/nfsen-dist.conf b/etc/nfsen-dist.conf
index ebd0650..9d7c761 100644
--- a/etc/nfsen-dist.conf
+++ b/etc/nfsen-dist.conf
@@ -300,4 +300,9 @@ Alert '@alert@' triggered at timeslot @timeslot@
@@ -188,7 +188,7 @@
# ( works for Solaris 10 and newer Sys::Syslog module
#
# If not defined at all, 'unix' is assumed unless for Solaris, which defaults to 'stream'
-# $LogSocket = 'unix';
+$LogSocket = 'console';
#
# Plugins
@@ -300,4 +300,9 @@
# 'cycletime' => '30', # 30s per 5min slot
# );
......@@ -22,9 +29,6 @@ index ebd0650..9d7c761 100644
+}
+
1;
diff --git a/etc/nfsen.d/README b/etc/nfsen.d/README
new file mode 100644
index 0000000..d159e56
--- /dev/null
+++ b/etc/nfsen.d/README
@@ -0,0 +1 @@
......
--- a/html/nfsen.php
+++ b/html/nfsen.php
@@ -42,7 +42,7 @@
$expected_version = "1.3.6p1";
// Session check
-if ( !array_key_exists('backend_version', $_SESSION ) || $_SESSION['backend_version'] != $expected_version ) {
+if ( array_key_exists('backend_version', $_SESSION ) && $_SESSION['backend_version'] != $expected_version ) {
session_destroy();
session_start();
$_SESSION['version'] = $expected_version;
--- a/libexec/AbuseWhois.pm
+++ b/libexec/AbuseWhois.pm
@@ -39,7 +39,6 @@
use strict;
use warnings;
use Socket;
-use Socket6;
use Sys::Syslog;
use IO::Socket::INET;
use Log;
--- a/libexec/Lookup.pm
+++ b/libexec/Lookup.pm
@@ -40,7 +40,6 @@
use Socket;
use IO::Socket::INET;
use Socket;
-use Socket6;
use AbuseWhois;
use Log;
......@@ -3,3 +3,5 @@
0003-Debianise-install-script.patch
0004-Add-manpages.patch
0005-Add-config-snippet-functionality.patch
0006-Fix-Spurious-Version-Mismatch-Message.patch
0007-Fix-Redefined-Symbol-Errors.patch
......@@ -27,6 +27,7 @@ override_dh_auto_install:
sed -i "s:\$$LogSocket = 'console';:# \$$LogSocket = 'unix';:" debian/nfsen/etc/nfsen/nfsen.conf
# Move files around
mv debian/nfsen/usr/bin/RebuildHierarchy.pl debian/nfsen/usr/bin/RebuildHierarchy
mv debian/nfsen/var/lib/nfsen/profiles-stat/live/profile.dat debian/nfsen/usr/share/nfsen/profile.dat.distrib
override_dh_installchangelogs:
dh_installchangelogs ChangeLog upstream