From de9be78d2e3533c32f1797a487fef9a6f9e922a9 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 7 Sep 2015 21:15:26 +0100 Subject: Remove autoreconf files, remove dh-autoreconf from control file, split makefile patch so functions become more clear: --- debian/patches/folder-update | 6 ++-- debian/patches/install-dir-creation | 14 +++++++++ debian/patches/makefile | 55 ----------------------------------- debian/patches/no-install-gz-manpages | 33 +++++++++++++++++++++ debian/patches/remove-cflags | 17 +++++++++++ debian/patches/series | 4 ++- 6 files changed, 70 insertions(+), 59 deletions(-) create mode 100644 debian/patches/install-dir-creation delete mode 100644 debian/patches/makefile create mode 100644 debian/patches/no-install-gz-manpages create mode 100644 debian/patches/remove-cflags (limited to 'debian/patches') diff --git a/debian/patches/folder-update b/debian/patches/folder-update index 7308edd..2ed3d63 100644 --- a/debian/patches/folder-update +++ b/debian/patches/folder-update @@ -1,7 +1,7 @@ -Description: Update the folders this is installed to +Description: Update the folders in which Uronode is installed Author: Dave Hibberd ---- -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Last-Update: 2015-09-07 + --- a/configure +++ b/configure @@ -1,5 +1,5 @@ diff --git a/debian/patches/install-dir-creation b/debian/patches/install-dir-creation new file mode 100644 index 0000000..8fd3aa5 --- /dev/null +++ b/debian/patches/install-dir-creation @@ -0,0 +1,14 @@ +Description: Create proper SBIN_DIR directory at install time +Author: Dave Hibberd +Last-Update: 2015-09-07 + +--- a/Makefile.in ++++ b/Makefile.in +@@ -33,6 +33,7 @@ + install -m 644 -p etc/gateways $(VAR_DIR)/flex + + installbin: all ++ install -m 755 -D -d $(SBIN_DIR) + install -m 755 -s -p uronode $(SBIN_DIR) + install -m 755 -s -p nodeusers $(SBIN_DIR) + install -m 755 -s -p axdigi $(SBIN_DIR) diff --git a/debian/patches/makefile b/debian/patches/makefile deleted file mode 100644 index 30a86d4..0000000 --- a/debian/patches/makefile +++ /dev/null @@ -1,55 +0,0 @@ -Description: Remove CFLAG and LDFlags for hardening, remove installman -to stop installation of gzipped manpages, added directory install for -SBIN_DIR -Author: Dave Hibberd ---- -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ - ---- 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 @@ - .c.o: - $(CC) $(CFLAGS) -c $< - --install: installbin installman installhelp installconf -+install: installbin installhelp installconf - install -m 755 -D -d $(VAR_DIR) - install -m 755 -D -d $(VAR_DIR)/node - install -m 644 -p etc/loggedin $(VAR_DIR)/node -@@ -33,6 +33,7 @@ - install -m 644 -p etc/gateways $(VAR_DIR)/flex - - installbin: all -+ install -m 755 -D -d $(SBIN_DIR) - install -m 755 -s -p uronode $(SBIN_DIR) - install -m 755 -s -p nodeusers $(SBIN_DIR) - install -m 755 -s -p axdigi $(SBIN_DIR) -@@ -53,16 +54,7 @@ - install -m 600 -p etc/uronode.routes $(ETC_DIR) - install -m 600 -p etc/flexd.conf $(ETC_DIR) - --installman: -- install -m 755 -D -d $(MAN_DIR)/man1 $(MAN_DIR)/man5 $(MAN_DIR)/man8 -- install -m 644 -p man/nodeusers.1.gz $(MAN_DIR)/man1 -- install -m 644 -p man/uronode.conf.5.gz $(MAN_DIR)/man5 -- install -m 644 -p man/uronode.perms.5.gz $(MAN_DIR)/man5 -- install -m 644 -p man/flexd.conf.5.gz $(MAN_DIR)/man5 -- install -m 644 -p man/uronode.8.gz $(MAN_DIR)/man8 -- install -m 644 -p man/axdigi.8.gz $(MAN_DIR)/man8 -- --upgrade: installman -+upgrade: - install -m 755 -p uronode $(SBIN_DIR) - install -m 755 -p nodeusers $(SBIN_DIR) - install -m 755 -p flexd $(SBIN_DIR) diff --git a/debian/patches/no-install-gz-manpages b/debian/patches/no-install-gz-manpages new file mode 100644 index 0000000..be06029 --- /dev/null +++ b/debian/patches/no-install-gz-manpages @@ -0,0 +1,33 @@ +Description: Prevent installation of gzipped manpages, they have been moved to the debian folder and unzipped +Author: Dave Hibberd +Last-Update: 2015-09-07 + +--- a/Makefile.in ++++ b/Makefile.in +@@ -24,7 +24,7 @@ + .c.o: + $(CC) $(CFLAGS) -c $< + +-install: installbin installman installhelp installconf ++install: installbin installhelp installconf + install -m 755 -D -d $(VAR_DIR) + install -m 755 -D -d $(VAR_DIR)/node + install -m 644 -p etc/loggedin $(VAR_DIR)/node +@@ -53,16 +53,7 @@ + install -m 600 -p etc/uronode.routes $(ETC_DIR) + install -m 600 -p etc/flexd.conf $(ETC_DIR) + +-installman: +- install -m 755 -D -d $(MAN_DIR)/man1 $(MAN_DIR)/man5 $(MAN_DIR)/man8 +- install -m 644 -p man/nodeusers.1.gz $(MAN_DIR)/man1 +- install -m 644 -p man/uronode.conf.5.gz $(MAN_DIR)/man5 +- install -m 644 -p man/uronode.perms.5.gz $(MAN_DIR)/man5 +- install -m 644 -p man/flexd.conf.5.gz $(MAN_DIR)/man5 +- install -m 644 -p man/uronode.8.gz $(MAN_DIR)/man8 +- install -m 644 -p man/axdigi.8.gz $(MAN_DIR)/man8 +- +-upgrade: installman ++upgrade: + install -m 755 -p uronode $(SBIN_DIR) + install -m 755 -p nodeusers $(SBIN_DIR) + install -m 755 -p flexd $(SBIN_DIR) diff --git a/debian/patches/remove-cflags b/debian/patches/remove-cflags new file mode 100644 index 0000000..2ffdb5d --- /dev/null +++ b/debian/patches/remove-cflags @@ -0,0 +1,17 @@ +Description: Remove CFLAGS and LDFLAGS to fix Lintian hardening errors +Author: Dave Hibberd +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 diff --git a/debian/patches/series b/debian/patches/series index 3023be6..065f5bd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,4 @@ +remove-cflags folder-update -makefile +no-install-gz-manpages +install-dir-creation -- cgit v1.2.3