From 20fd3a954dac82ae2752467e3c9bdd0fa29b0ee2 Mon Sep 17 00:00:00 2001
From: Dinko Korunic <kreator@carnet.hr>
Date: Mon, 21 Mar 2011 12:48:12 +0100
Subject: [PATCH] - #19996: popravljeni bugovi iz lintian reporta (Valentin
 Vidic)

---
 debian/changelog |    6 ++++++
 debian/compat    |    2 +-
 debian/control   |    7 ++++---
 debian/rules     |   13 +++++++------
 4 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 849b74a..a28698c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ossec-hids (2.5.1-2) stable; urgency=low
+
+  * #19996: popravljeni bugovi iz lintian reporta (Valentin Vidic)
+
+ -- Dinko Korunic <kreator@carnet.hr>  Mon, 21 Mar 2011 12:43:23 +0100
+
 ossec-hids (2.5.1-1) stable; urgency=low
 
   * new upstream release (2.5.1)
diff --git a/debian/compat b/debian/compat
index b8626c4..7f8f011 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+7
diff --git a/debian/control b/debian/control
index a04e4bd..4af5ace 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,13 @@ Source: ossec-hids
 Section: admin
 Priority: extra
 Maintainer: Dinko Korunic <kreator@carnet.hr>
-Build-Depends: debhelper (>= 4)
-Standards-Version: 3.8.0
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.9.1
 
 Package: ossec-hids
 Architecture: any
-Depends: postfix | mail-transport-agent, expect (>= 5.43.0-17), adduser (>= 3.110), libc6 (>= 2.7-18lenny2)
+Depends: postfix | mail-transport-agent, expect (>= 5.43.0-17), 
+ adduser (>= 3.110), ${misc:Depends}, ${shlibs:Depends}
 Priority: extra
 Section: admin
 Description: OSSEC HIDS
diff --git a/debian/rules b/debian/rules
index 6150881..4e01349 100755
--- a/debian/rules
+++ b/debian/rules
@@ -44,7 +44,7 @@ clean:
 install: build
 	dh_testdir
 	dh_testroot
-	dh_clean -k
+	dh_prep
 	dh_installdirs
 
 	# ugly directory creation
@@ -94,7 +94,7 @@ install: build
 	chmod 550 $(DESTDIR)/bin/*
 	chmod 440 $(DESTDIR)/etc/ossec.conf
 
-    # fixups: no need for execute bits on files there
+	# fixups: no need for execute bits on files there
 	find $(DESTDIR)/rules -type f -exec chmod ugo-x '{}' ';'
 	find $(DESTDIR)/etc -type f -exec chmod ugo-x '{}' ';'
 
@@ -116,6 +116,10 @@ install: build
 
 # Build architecture-independent files here.
 binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
 	dh_testdir
 	dh_testroot
 	dh_installchangelogs
@@ -139,13 +143,10 @@ binary-indep: build install
 #	dh_perl
 #	dh_python
 	dh_installdeb
+	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install
-- 
1.7.10.4