hlbr (1.7.2-2) debian-dir only changes

Summary

 debian/README.Debian               |   40 +++++++++++++
 debian/README.source               |    2 
 debian/changelog                   |  107 +++++++++++++++++++++++++++++++++++++
 debian/compat                      |    1 
 debian/control                     |   33 +++++++++++
 debian/copyright                   |   41 ++++++++++++++
 debian/dirs                        |    6 ++
 debian/docs                        |    3 +
 debian/patches/00list              |    1 
 debian/patches/01_configure.dpatch |   19 ++++++
 debian/rules                       |   63 +++++++++++++++++++++
 debian/watch                       |    2 
 12 files changed, 318 insertions(+)

    
download this patch

Patch contents

--- hlbr-1.7.2.orig/debian/control
+++ hlbr-1.7.2/debian/control
@@ -0,0 +1,33 @@
+Source: hlbr
+Section: net
+Priority: optional
+Maintainer: Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+Uploaders: Andre Bertelli Araujo <bertelli.andre@gmail.com>
+Build-Depends: debhelper (>= 7), dpatch, libpcre3-dev
+Standards-Version: 3.8.4
+Vcs-Svn: svn://svn.debian.org/svn/debian-br-team/packages/hlbr
+Vcs-Browser: http://svn.debian.org/wsvn/debian-br-team/packages/hlbr
+Homepage: http://hlbr.sourceforge.net
+
+Package: hlbr
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: hlbrw
+Recommends: tcpdump
+Description: IPS that runs over layer 2 (no TCP/IP stack required)
+ HLBR stands for Hogwash Light BR. It is a Brazilian fork of Jason Larsen's
+ Hogwash Intrusion Prevention System (IPS). Its main feature is that it can
+ run directly over OSI model layer 2, which means it doesn't even require a
+ TCP/IP stack, running as a bridge.
+ .
+ HLBR comes with a set of rules to detect known malicious network traffic,
+ and you can define your own rules as well. Packet handling include options
+ like dropping or diverting it to another machine (such as a honeypot).
+ Since it works like a bridge and doesn't requires an IP address, it is
+ invisible to intruders. HLBR is a firewall component and must be put before
+ a Intrusion Detection System (IDS). The IDS (Snort or other) will show all
+ suspect traffic doesn't blocked and it can be used to compose new rules
+ to IPS.
+ .
+ HLBR rule definition language has support for regular expressions (Perl).
+ All blocked traffic is dumped in log under tcpdump format.
--- hlbr-1.7.2.orig/debian/changelog
+++ hlbr-1.7.2/debian/changelog
@@ -0,0 +1,107 @@
+hlbr (1.7.2-2) unstable; urgency=low
+
+  * debian/control:
+      - Added hlbrw in Suggests field.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Mon, 08 Mar 2010 10:50:36 -0300
+
+hlbr (1.7.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control:
+      - Added ${misc:Depends} as dependency.
+      - Updated Standards-Version from 3.8.3 to 3.8.4.
+  * debian/copyright: updated upstream and packaging copyright dates.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Sat, 27 Feb 2010 20:42:36 -0300
+
+hlbr (1.7-1) unstable; urgency=low
+
+  * New upstream release
+  * Added debian/README.source file.
+  * scripts/hlbr.init:
+      - Fixed problems when replacing old version. Thanks to Michal
+        Politowski. (Closes, #489351)
+      - Removed bashism in start option. Thanks to Raphael Geissert.
+        (Closes, #530098)
+  * debian/control:
+      - Improved the long description.
+      - Removed the 'Conflicts' field.
+      - Updated Standards-Version from 3.7.2 to 3.8.3.
+  * debian/copyright:
+      - Updated program copyright from 2005-2008 to 2005-2009.
+      - Updated packaging copyright by JEMF from 2008 to 2008-2009.
+  * debian/docs:
+      - Removed TODO because this file doesn't exist anymore in
+        upstream tarball.
+  * debian/patches:
+       - Removed 02 and 03 patches. The upstream fixed the code.
+  * debian/README.Debian:
+       - Added a reference about using an IDS after HLBR.
+  * debian/rules:
+       - Added /debian/README.source reference to dh_installdocs.
+       - Changed from 'dh_clean -k' to 'dh_prep' in install target.
+       - Removed build redundancy from binary-arch target.
+       - Removed lines related to autotools. HLBR doesn't use
+         autotools anymore.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Tue, 08 Dec 2009 14:07:56 -0200
+
+hlbr (1.6-2) unstable; urgency=low
+
+  * Patch 02: add PATH variable in init.d script to avoid command not found
+    message.
+  * Patch 03: change tcp nocase to tcp regex in rule www-2, fixing an upstream
+    mistake.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Thu, 11 Sep 2008 17:55:29 -0300
+
+hlbr (1.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added the debian/README.Debian file.
+  * Added README.tcpdump in debian/docs.
+  * Updated debian/copyright.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Thu, 24 Jul 2008 21:15:50 +0000
+
+hlbr (1.6~rc1-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+  * Upgraded the debhelper compatibility to 7.
+  * Added the Recommends field in debian/control.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Fri, 18 Jul 2008 23:18:19 +0000
+
+hlbr (1.5~rc2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Removed old patches (needless now).
+  * Updated to debhelper 6.
+  * Added hlbr.config.pt_BR to examples dir.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Tue, 17 Jun 2008 17:37:06 -0300
+
+hlbr (1.5~rc1-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+  * New maintainer and uploader (switched).
+  * Changed mail address of Andre Bertelli (uploader now).
+  * Bumped Standards-Version to 3.8.0 (without modifications).
+  * Removed an article from short description.
+  * Added Vcs-Svn, Vcs-Browser and Homepage fields in debian/control.
+  * debian/{docs,rules} was adapted to use new CHANGELOG and TODO versions
+    because upstream changes.
+  * Removed debian/hlbr.{manpages,pt_Br.1} files.
+  * Removed debian/patche file.
+  * Modified debian/rules to adapt it to above changes.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Thu, 05 Jun 2008 13:44:01 -0300
+
+hlbr (1.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #390408)
+  * Changed language selection in configure script
+  * Changed Makefile to not touch the log directory
+
+ -- Andre Bertelli Araujo <andre@bertelli.name>  Sun, 01 Oct 2006 13:11:44 +0000
--- hlbr-1.7.2.orig/debian/copyright
+++ hlbr-1.7.2/debian/copyright
@@ -0,0 +1,41 @@
+This package was debianized in the first time by Andre Bertelli Araujo
+<bertelli.andre@gmail.com> on Sun, 24 Sep 2006 13:11:44 +0000 and is
+being maintained by Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+since Jun 06, 2008 10:00:00 -0300.
+
+It was downloaded from http://hlbr.sourceforge.net
+
+Upstream Authors: Andre Bertelli Araujo <bertelli.andre@gmail.com>
+		  Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+		  Pedro Arthur P. R. Duarte <pedroarthur.jedi@gmail.com>
+
+Copyright: 2005-2010, Andre Bertelli Araujo
+		      Artur Duque de Souza
+		      Gabriel E. Arellano
+		      Joao Eriberto Mota Filho
+		      Pedro Arthur P. R. Duarte
+	              Rodrigo de Oliveira Vivi
+
+License:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+About the Debian packaging:
+  Copyright (C) 2006-2007 Andre Bertelli Araujo <bertelli.andre@gmail.com>
+  Copyright (C) 2008-2010 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+  The work is licensed under the GPL 2 or later.
--- hlbr-1.7.2.orig/debian/watch
+++ hlbr-1.7.2/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/hlbr/hlbr-(.*)\.tar\.gz
--- hlbr-1.7.2.orig/debian/README.Debian
+++ hlbr-1.7.2/debian/README.Debian
@@ -0,0 +1,40 @@
+hlbr for Debian
+---------------
+
+
+Using an IDS after HLBR
+-----------------------
+
+You can put an IDS as Snort after HLBR to know suspect traffic doesn't blocked
+by HLBR. It will help you to make new rules. You can use a Linux bridge machine
+as base to an IDS. In that case, you will have an IDS in circuit level.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Tue, 08 Dec 2009 14:49:20 -0200
+
+
+Upgrading from HLBR 1.5 and older
+---------------------------------
+
+You will need to manually remove HLBR's preinst if you receive the following
+message while installing/upgrading to a new version:
+
+    Parando o HLBR / Stopping HLBR
+    /usr/sbin/invoke-rc.d: line 437: 13409 Terminated
+    "${INITDPREFIX}${INITSCRIPTID}" "${saction}" "$@"
+    invoke-rc.d: initscript hlbr, action "stop" failed.
+
+
+To fix it, follow the next steps:
+
+    # /etc/init.d/hlbr stop
+    # rm /var/lib/dpkg/info/hlbr.prerm
+    # apt-get remove hlbr
+
+
+After this, install new HLBR version with
+
+    # apt-get install hlbr
+
+Thanks.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Sat, 19 Jul 2008 16:26:30 -0200
--- hlbr-1.7.2.orig/debian/rules
+++ hlbr-1.7.2/debian/rules
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+config.status: patch-stamp configure
+	dh_testdir
+	./configure $(CROSS) CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+	touch $@
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+	$(MAKE)
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp config.status
+	[ ! -f Makefile ] || $(MAKE) clean
+	rm -f config.sub config.guess
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	$(MAKE) PREFIX=$(CURDIR)/debian/hlbr install
+
+binary-arch: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGELOG
+	dh_installdocs
+	dh_installexamples hlbr.config.pt_BR
+	dh_installinit -o --update-rcd-params='start 98 2 3 4 5 . stop 04 0 1 6 .'
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- hlbr-1.7.2.orig/debian/README.source
+++ hlbr-1.7.2/debian/README.source
@@ -0,0 +1,2 @@
+This package uses dpatch to fix some errors. To know more about dpatch see
+/usr/share/doc/dpatch/README.source.gz file.
--- hlbr-1.7.2.orig/debian/compat
+++ hlbr-1.7.2/debian/compat
@@ -0,0 +1 @@
+7
--- hlbr-1.7.2.orig/debian/dirs
+++ hlbr-1.7.2/debian/dirs
@@ -0,0 +1,6 @@
+etc/cron.weekly
+etc/init.d
+usr/lib
+usr/sbin
+usr/share/man/man8
+var/log
--- hlbr-1.7.2.orig/debian/docs
+++ hlbr-1.7.2/debian/docs
@@ -0,0 +1,3 @@
+README.en
+README.pt_BR
+README.tcpdump
--- hlbr-1.7.2.orig/debian/patches/01_configure.dpatch
+++ hlbr-1.7.2/debian/patches/01_configure.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_configure.dpatch by Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Turns English the default language.
+
+@DPATCH@
+diff -urNad hlbr-1.5-rc2~/configure hlbr-1.5-rc2/configure
+--- hlbr-1.5-rc2~/configure	2008-05-29 18:52:04.000000000 -0300
++++ hlbr-1.5-rc2/configure	2008-06-17 17:47:25.000000000 -0300
+@@ -138,7 +138,7 @@
+ echo 'English - Press ENTER'
+ echo '-----------------------------------------------------------'
+ echo
+-read INSTALL_LANG
++#read INSTALL_LANG
+ 
+ if [ "$INSTALL_LANG" = "p" ]
+     then echo 'INSTALL_LANG=portuguese' >> Makefile; echo 'Idioma: portugues.'
--- hlbr-1.7.2.orig/debian/patches/00list
+++ hlbr-1.7.2/debian/patches/00list
@@ -0,0 +1 @@
+01_configure.dpatch