[debian-edu-commits] debian-edu/pkg-team/ 06/07: Add new hardening.patch to enable hardening (Closes: #763536). Update to debhelper compat level 9 for this.

Petter Reinholdtsen pere at moszumanska.debian.org
Wed Oct 1 05:29:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository ldap2zone.

commit 6f1054453eaa58a49660b189d7b5d5629e41b62f
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed Oct 1 06:54:00 2014 +0200

    Add new hardening.patch to enable hardening (Closes: #763536).
    Update to debhelper compat level 9 for this.
---
 debian/compat                  |  2 +-
 debian/control                 |  2 +-
 debian/patches/hardening.patch | 23 +++++++++++++++++++++++
 debian/patches/series          |  1 +
 4 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/debian/control b/debian/control
index d2985b8..b289996 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Uploaders:
  Petter Reinholdtsen <pere at debian.org>,
  Benoit Mortier <benoit.mortier at opensides.be>,
 Standards-Version: 3.9.2
-Build-Depends: debhelper (>= 7.0.50~), libldap2-dev, ldap-utils
+Build-Depends: debhelper (>= 9~), libldap2-dev, ldap-utils
 Homepage: https://oss.gonicus.de/labs/gosa
 Vcs-Browser: https://oss.gonicus.de/repositories/goto/trunk/ldap2zone
 Vcs-Svn: https://oss.gonicus.de/repositories/goto/trunk/ldap2zone
diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..05d4dd3
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,23 @@
+Description: Enable hardening
+Author: Petter Reinholdtsen <pere at hungry.com>
+Bug-Debian: http://bugs.debian.org/763536
+Last-Update: 2014-09-30
+
+--- ldap2zone-0.2.orig/Makefile
++++ ldap2zone-0.2/Makefile
+@@ -1,4 +1,14 @@
+ all: ldap2zone
+ 
++CFLAGS = -W -Wall -g
++LIBS = -lldap -llber
++LDFLAGS =
++
++CFLAGS += `dpkg-buildflags --get CFLAGS`
++CFLAGS += `dpkg-buildflags --get CPPFLAGS`
++LDFLAGS += `dpkg-buildflags --get LDFLAGS`
++
+ ldap2zone: ldap2zone.c
+-	gcc -Wall ldap2zone.c -o ldap2zone -lldap -llber
++	gcc $(CFLAGS) ldap2zone.c -o ldap2zone $(LDFLAGS) $(LIBS)
++clean:
++	rm -f ldap2zone
diff --git a/debian/patches/series b/debian/patches/series
index 72bf287..8bda0ff 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ heap-corruption.patch
 revert-broken-zones.patch
 stable-zone-ordering.patch
 avoid-signed-unsigned-warning.patch
+hardening.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/ldap2zone.git



More information about the debian-edu-commits mailing list