Updated for hardening errors, fixed watch file, tidied up URLs in control,

renamed remove-cflags to hardening patch
This commit is contained in:
Dave Hibberd 2016-04-05 00:38:50 +01:00
parent ed1ae8ef50
commit 461bb6d23b
7 changed files with 46 additions and 24 deletions

13
debian/changelog vendored
View File

@ -1,3 +1,16 @@
uronode (2.5.1-2) unstable; urgency=medium
* debian/control
- Updated Standards Version to 3.9.7
- Changed VCS-* to secure URIs
* debian/patches/hardening
- patch renamed (previously called remove-cflags)
- patch adds CPPFlags and LDFlags to compiler instructions
* debian/rules
- Exporting hardening=+all to enable fPIE and bindnow
-- Dave Hibberd <d@vehibberd.com> Tue, 05 Apr 2016 00:48:49 +0100
uronode (2.5.1-1) unstable; urgency=medium uronode (2.5.1-1) unstable; urgency=medium
* New upstream release * New upstream release

4
debian/control vendored
View File

@ -5,8 +5,8 @@ Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
Uploaders: Dave Hibberd <d@vehibberd.com> Uploaders: Dave Hibberd <d@vehibberd.com>
Build-Depends: debhelper (>= 9), libax25-dev, zlib1g-dev Build-Depends: debhelper (>= 9), libax25-dev, zlib1g-dev
Standards-Version: 3.9.7 Standards-Version: 3.9.7
Vcs-Browser: http://anonscm.debian.org/cgit/pkg-hamradio/uronode.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-hamradio/uronode.git
Vcs-Git: http://anonscm.debian.org/git/pkg-hamradio/uronode.git Vcs-Git: https://anonscm.debian.org/git/pkg-hamradio/uronode.git
Homepage: http://uronode.sourceforge.net/ Homepage: http://uronode.sourceforge.net/
Package: uronode Package: uronode

27
debian/patches/hardening vendored Normal file
View File

@ -0,0 +1,27 @@
Description: Fix Lintian hardening errors caused by flags not being passed to compiler,
use debhelper compiler flags
Author: Dave Hibberd <d@vehibberd.com>
Last-Update: 2016-04-05
--- a/Makefile.in
+++ b/Makefile.in
@@ -3,8 +3,8 @@
CC = gcc
LD = gcc
# CFLAGS = -O2 -g -s -Wstrict-prototypes
-CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes
-LDFLAGS =
+#CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes
+#LDFLAGS =
LIBS = -lax25 -lax25io
include Makefile.include
@@ -24,7 +24,7 @@
DIGI_OBJS = $(DIGI_SRC:.c=.o)
CALIBRATE_OBJS = $(CALIBRATE_SRC:.c=.o)
.c.o:
- $(CC) $(CFLAGS) -c $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
install: installbin installman installhelp installconf
install -b -m 755 -D -d $(VAR_DIR)

View File

@ -1,17 +0,0 @@
Description: Remove CFLAGS and LDFLAGS to fix Lintian hardening errors
Author: Dave Hibberd <d@vehibberd.com>
Last-Update: 2015-09-07
--- a/Makefile.in
+++ b/Makefile.in
@@ -3,8 +3,8 @@
CC = gcc
LD = gcc
# CFLAGS = -O2 -g -s -Wstrict-prototypes
-CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes
-LDFLAGS =
+#CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes
+#LDFLAGS =
LIBS = -lax25 -lax25io
include Makefile.include

View File

@ -1,4 +1,4 @@
remove-cflags hardening
folder-update folder-update
install-dir-creation install-dir-creation
makefile-install-locations makefile-install-locations

1
debian/rules vendored
View File

@ -1,5 +1,6 @@
#!/usr/bin/make -f #!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%: %:
dh $@ dh $@

4
debian/watch vendored
View File

@ -1,5 +1,3 @@
version=3 version=3
opts=dversionmangle=s/\+dfsg$// \
http://sf.net/uronode/uronode-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) http://sf.net/uronode/uronode-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
export REPACK_SH=debian/repack.sh
debian sh debian/repack.stub