Bug#502305: Temporary packages for ulogd2 : Configuration changes

2011-01-07 Thread Jim Barber

Hi.

Further to my previous email, I've now installed the newly built package 
and here are some observations.


There is a lack of documentation in the built package.
If the build also formatted the doc/ulogd.sgml file in the source area 
into txt and html files to be installed under the /usr/share/doc/ulogd/ 
directory, then there will be a lot more useful information on how to 
configure the new ulogd daemon.


I made the following changes to the /etc/ulogd.conf file.
Take and leave each of them as you like.
I've attached the patch that makes all of these changes to the final 
installed configuration file.


- I've made changes to produce logs in the /var/log/ulogd/ directory 
like the old ulogd v1.23 did.
This way users upgrading from the old ulogd to the new ulogd will still 
find the files in the same location as before.
Likewise I adjusted log file names to match what they were before 
(removed leading ulogd_)
If the package doesn't create the /var/log/ulogd/ directory as part of 
its install, then it would need to be modified to do this as well.


- I changed the log level to notice. I guess you can ignore this, but 
I've left it in the patch.


- I've enabled the ULOG support. This way, people upgrading from the old 
ulogd daemon to the new one will still have their logging working. This 
will give them a chance to transition over from ULOG to NFLOG at their 
convenience.


- There was no XML output plugin built with the package.
So I've commented that plugin out to remove the error message about it 
not being found.
I guess the other approach is to get the package to build that plugin if 
possible.


- I added commented out plugin entries for the SQLITE3 output plugin, 
and the PWSNIFF filter plugin (which maybe you don't want to include).


- Added a [sqlite3] section for the SQLITE3 plugin to match the example 
for SQLLITE3 on the old version of ulogd.


Regards,

--
--
Jim Barber
DDI Health
--- /etc/ulogd.conf.dpkg-dist   2011-01-07 14:00:16.0 +0800
+++ /etc/ulogd.conf 2011-01-07 14:54:57.0 +0800
@@ -9,10 +9,10 @@
 
 
 # logfile for status messages
-logfile=/var/log/ulogd.log
+logfile=/var/log/ulog/ulogd.log
 
 # loglevel: debug(1), info(3), notice(5), error(7) or fatal(8)
-loglevel=1
+loglevel=5
 
 ##
 # PLUGIN OPTIONS
@@ -26,7 +26,7 @@
 
 
 plugin=/usr/lib/ulogd/ulogd_inppkt_NFLOG.so
-#plugin=/usr/lib/ulogd/ulogd_inppkt_ULOG.so
+plugin=/usr/lib/ulogd/ulogd_inppkt_ULOG.so
 plugin=/usr/lib/ulogd/ulogd_inpflow_NFCT.so
 plugin=/usr/lib/ulogd/ulogd_filter_IFINDEX.so
 plugin=/usr/lib/ulogd/ulogd_filter_IP2STR.so
@@ -35,15 +35,17 @@
 plugin=/usr/lib/ulogd/ulogd_filter_HWHDR.so
 plugin=/usr/lib/ulogd/ulogd_filter_PRINTFLOW.so
 #plugin=/usr/lib/ulogd/ulogd_filter_MARK.so
+#plugin=/usr/lib/ulogd/ulogd_filter_PWSNIFF.so
 plugin=/usr/lib/ulogd/ulogd_output_LOGEMU.so
 plugin=/usr/lib/ulogd/ulogd_output_SYSLOG.so
-plugin=/usr/lib/ulogd/ulogd_output_XML.so
+#plugin=/usr/lib/ulogd/ulogd_output_XML.so
 #plugin=/usr/lib/ulogd/ulogd_output_OPRINT.so
 #plugin=/usr/lib/ulogd/ulogd_output_NACCT.so
 #plugin=/usr/lib/ulogd/ulogd_output_PCAP.so
 #plugin=/usr/lib/ulogd/ulogd_output_PGSQL.so
 #plugin=/usr/lib/ulogd/ulogd_output_MYSQL.so
 #plugin=/usr/lib/ulogd/ulogd_output_DBI.so
+#plugin=/usr/lib/ulogd/ulogd_output_SQLITE3.so
 plugin=/usr/lib/ulogd/ulogd_raw2packet_BASE.so
 
 # this is a stack for logging packet send by system via LOGEMU
@@ -53,7 +55,7 @@
 
#stack=log2:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU
 
 # this is a stack for ULOG packet-based logging via LOGEMU
-#stack=ulog1:ULOG,base1:BASE,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU
+stack=ulog1:ULOG,base1:BASE,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU
 
 # this is a stack for packet-based logging via LOGEMU with filtering on MARK
 
#stack=log2:NFLOG,mark1:MARK,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU
@@ -148,15 +150,15 @@
 #numeric_label=0 # optional argument
 
 [emu1]
-file=/var/log/ulogd_syslogemu.log
+file=/var/log/ulog/syslogemu.log
 sync=1
 
 [op1]
-file=/var/log/ulogd_oprint.log
+file=/var/log/ulog/oprint.log
 sync=1
 
 [xml1]
-directory=/var/log/
+directory=/var/log/ulog/
 sync=1
 
 [pcap1]
@@ -202,6 +204,11 @@
 pass=changeme
 procedure=INSERT_OR_REPLACE_CT
 
+[sqlite3]
+table=ulog
+db=/path/to/sqlite/db
+buffer=200
+
 [dbi1]
 db=ulog2
 dbtype=pgsql


Bug#502305: Temporary packages for ulogd2 : Build dependency wrong

2011-01-06 Thread Jim Barber

Hi.

I just tried to build your packages on a Debian unstable (sid) server 
for the i386 architecture.


I used the following technique...

- Downloaded the following files from:
  https://www.wzdftpd.net/downloads/ulogd2-deb/

ulogd_2.0.0~beta4-1.debian.tar.gz
ulogd_2.0.0~beta4-1.dsc
ulogd_2.0.0~beta4.orig.tar.bz2

- Unpacked the sources and moved into the unpacked directory:

dpkg-source -x ulogd_2.0.0~beta4-1.dsc
cd ulogd-2.0.0~beta4

- Made sure I had the build dependencies installed:

dpkg-checkbuilddeps

  It revealed I had to install the following packages:

autotools-dev
libdbi0-dev
libmysqlclient15-dev | libmysqlclient-dev
libnetfilter-conntrack-dev
libnetfilter-log-dev
libpcap-dev
libpq-dev
libsqlite-dev

  I satisfied the libsqlite-dev dependency by installing libsqlite0-dev.

  The libmysqlclient15-dev package does not exist in sid.
  But libmysqlclient16-dev does instead.
  I installed the libmysqlclient-dev package which pulls it in anyway.

- Built it using the following:

dpkg-buildpackage -b -tc -uc -us

The build failed because it needed the libsqlite3-dev package installed.
Note that the libsqlite3-dev package does not supply the libsqlite-dev 
dependency as mentioned in the Build-Depends.

Further I noticed the package doesn't need libsqlite0-dev at all.

So I redid the steps above, but in the debian/control control file I 
changed the libsqlite-dev build dependency to libsqlite3-dev.

I then uninstalled libsqlite0-dev from my system to prove it wasn't needed.

Now the build worked successfully.

So in summary, the changes to the Build-Depends line in the 
debian/control file to correct the build are:


- Change sqlite-dev to sqlite3-dev

- Remove libmysqlclient15-dev OR change it to libmysqlclient16-dev

Regards,

--
--
Jim Barber
DDI Health



--
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d26ab2b.2070...@ddihealth.com



Bug#502305: Temporary packages for ulogd2

2010-12-27 Thread Pierre Chifflier
Hi (and merry Christmas),

Now that libnetfilter-log has been uploaded to sid, I can now work again
on the packages for ulogd2.

I've uploaded my current packages for ulogd2 at this location:
https://www.wzdftpd.net/downloads/ulogd2-deb/

I've rewritten the packaging from scratch, it was easier, (the packaging
stuff is almost empty). I've not taken the previous changelog / authors
/ uploaders etc., but it's part of the things I want to do.

The plan would be to upload to experimental, but before doing that, can
you check the packages and tell me if you agree with the current ones or
have any comment ?

Regards,
Pierre



-- 
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d1875f6.1070...@debian.org