about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-11-03 19:56:44 +0100
committerMichael Biebl <biebl@debian.org>2011-11-03 22:20:31 +0100
commit38f4ab1c605cb13278e525f4505a77594c8bdaaa (patch)
tree920deed695440a8b87f68500914d1a69638d026e
parentd2e1855ebe554a50d44121ad8dd37e1be5702356 (diff)
Enable default hardening options from dpkg-buildflags.
  - Use buildflags.mk snippet in debian/rules.
  - Add Build-Depends on dpkg-dev (>= 1.6.1).
-rw-r--r--debian/changelog3
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules3
3 files changed, 7 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index d6ea1d05..7416dbfd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,9 @@ network-manager (0.9.1.95-1) UNRELEASED; urgency=low
       any devices. (Closes: #546893, #624159, #637005, #641904)
   * debian/control: Add Build-Depends on libglib2.0-doc for proper
     cross-references in the gtk-doc API documentation.
+  * Enable default hardening options from dpkg-buildflags.
+    - Use buildflags.mk snippet in debian/rules.
+    - Add Build-Depends on dpkg-dev (>= 1.6.1).
 
  -- Michael Biebl <biebl@debian.org>  Fri, 28 Oct 2011 23:04:35 +0200
 
diff --git a/debian/control b/debian/control
index 402defc8..abd3e663 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.
 Uploaders: Michael Biebl <biebl@debian.org>
 Build-Depends:
  debhelper (>= 8),
+ dpkg-dev (>= 1.6.1),
  autotools-dev,
  pkg-config,
  intltool,
diff --git a/debian/rules b/debian/rules
index 0ba1c806..4ee224f9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
 %:
 	dh $@