summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rw-r--r--debian/patches/01-pass-cppflags-and-ldflags-to-compiler.patch42
-rw-r--r--debian/patches/02-remove-extra-copyright-file.patch (renamed from debian/patches/01-remove-extra-copyright-file.patch)4
-rw-r--r--debian/patches/series3
4 files changed, 48 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 5050cda..4088fec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ wavemon (0.7.5-2) UNRELEASED; urgency=low
* Mark as linux-any to save CPU cycles on KFreeBSD/Hurd buildds
* Bump debhelper to v9
+ * Added 01-pass-cppflags-and-ldflags-to-compiler.patch to enable build
+ hardening
-- Jonathan McCrohan <jmccrohan@gmail.com> Sat, 09 Jun 2012 11:53:56 +0100
diff --git a/debian/patches/01-pass-cppflags-and-ldflags-to-compiler.patch b/debian/patches/01-pass-cppflags-and-ldflags-to-compiler.patch
new file mode 100644
index 0000000..41d7cdb
--- /dev/null
+++ b/debian/patches/01-pass-cppflags-and-ldflags-to-compiler.patch
@@ -0,0 +1,42 @@
+From c64fb125cbfa16c8c15f3ae0f56ee6bbda84ec8a Mon Sep 17 00:00:00 2001
+From: Jonathan McCrohan <jmccrohan@gmail.com>
+Date: Sun, 10 Jun 2012 00:25:56 +0100
+Subject: [PATCH] Pass CPPFLAGS and LDFLAGS to compiler
+
+Required by Debian Debhelper to enable build hardening:
+http://wiki.debian.org/Hardening
+
+Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
+---
+ Makefile.in | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index b7d8ece..6b06437 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -10,9 +10,12 @@ install-suid-root: exec_perms = 4755
+
+ CC = @CC@
+ CFLAGS = @CFLAGS@
++CPPFLAGS = @CPPFLAGS@
++LDFLAGS = @LDFLAGS@
+ DEFS = @DEFS@
+ LDLIBS = @LIBS@
+
++
+ INSTALL = @INSTALL@
+ RM = rm -vf
+
+@@ -23,7 +26,7 @@ OBJS = $(PURESRC:.c=.o)
+ DOCS = README NEWS THANKS AUTHORS COPYING ChangeLog
+
+ %.o: %.c $(HEADERS)
+- $(CC) $(CFLAGS) $(DEFS) -c -o $@ $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) -c -o $@ $<
+
+ all: @PACKAGE_NAME@
+ @PACKAGE_NAME@: $(MAIN) $(OBJS)
+--
+1.7.10
+
diff --git a/debian/patches/01-remove-extra-copyright-file.patch b/debian/patches/02-remove-extra-copyright-file.patch
index da057bd..3afe515 100644
--- a/debian/patches/01-remove-extra-copyright-file.patch
+++ b/debian/patches/02-remove-extra-copyright-file.patch
@@ -1,5 +1,5 @@
From: Jonathan McCrohan <jmccrohan@gmail.com>
-Date: Tue, 21 Feb 2012 22:00:15 +0000
+Date: Sun, 10 Jun 2012 00:31:09 +0100
Subject: Remove extra copyright file from Makefile
diff --git a/Makefile.in b/Makefile.in
@@ -14,4 +14,4 @@ index b7d8ece..fceed72 100644
+DOCS = README NEWS THANKS AUTHORS ChangeLog
%.o: %.c $(HEADERS)
- $(CC) $(CFLAGS) $(DEFS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) -c -o $@ $<
diff --git a/debian/patches/series b/debian/patches/series
index f5eb0a6..d710877 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
-01-remove-extra-copyright-file.patch
+01-pass-cppflags-and-ldflags-to-compiler.patch
+02-remove-extra-copyright-file.patch
9f66f1f 2011-01-05fix for a bug introduced in the DE-LD021 drivermichael1-3/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1140 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-04indentationmichael2-3/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1139 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-04support for Sure Electronics DE-LD021 by Natanael Olaizmichael1-10/+8 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1138 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-02driver for EFN LED modules by Tilman Glötznermichael9-21/+469 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1137 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-28commented, corrected and beautified both timer and timer group codemzuther11-197/+511 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1136 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-27finished commenting the timer codemzuther2-46/+138 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1135 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-20started commenting the timer codemzuther5-52/+170 I'm not done yet, but my system is currently very unstable, and I don't want the changes to get lost... :( git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1134 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-19Added brightness support for GLCD2USBharbaum5-28/+8014 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1133 3ae390bd-cb1e-0410-b409-cd5a39f66f1f