diff -Nru xchain-1.0.1/debian/changelog xchain-1.0.1/debian/changelog --- xchain-1.0.1/debian/changelog 2011-09-20 16:05:57.000000000 +0000 +++ xchain-1.0.1/debian/changelog 2017-01-15 22:25:46.000000000 +0000 @@ -1,3 +1,31 @@ +xchain (1.0.1-7) unstable; urgency=medium + + * QA upload. + * Migrations: + - debian/copyright to 1.0 format. + - debian/rules to new (reduced) format. + - DH level to 10. + * debian/control: + - Bumped Standards-Version to 3.9.8. + - Updated the Vcs-* fields. + * debian/copyright: updated all information. + * debian/manpages: created to install the manpage. + * debian/patches/: + - 0001-Makefile-fixed-typo-of-the-target-name.patch: + ~ Updated to improve the GCC Hardening. + ~ Updated the header and added index. + - 0003-warn-against-format-errors-and-fix-one.patch: + ~ Updated the header and added index. + * debian/rules: + - Added DEB_BUILD_MAINT_OPTIONS to improve the GCC hardening. + - Added override_dh_install to romeve useless files. + * debian/watch: + - Bumped to version 4. + - Added a fake site to explain about the current status of the + original upstream homepage. + + -- Giovani Augusto Ferreira Sun, 15 Jan 2017 20:25:46 -0200 + xchain (1.0.1-6) unstable; urgency=low * QA upload diff -Nru xchain-1.0.1/debian/compat xchain-1.0.1/debian/compat --- xchain-1.0.1/debian/compat 2011-09-20 15:43:03.000000000 +0000 +++ xchain-1.0.1/debian/compat 2017-01-15 22:25:46.000000000 +0000 @@ -1 +1 @@ -7 +10 diff -Nru xchain-1.0.1/debian/control xchain-1.0.1/debian/control --- xchain-1.0.1/debian/control 2011-09-20 16:04:48.000000000 +0000 +++ xchain-1.0.1/debian/control 2017-01-15 22:25:46.000000000 +0000 @@ -2,10 +2,10 @@ Section: games Priority: extra Maintainer: Debian QA Group -Standards-Version: 3.9.2 -Build-Depends: debhelper (>> 7) -Vcs-Browser: http://anonscm.debian.org/git/collab-maint/xchain.git -Vcs-Git: git://anonscm.debian.org/collab-maint/xchain.git +Standards-Version: 3.9.8 +Build-Depends: debhelper (>= 10) +Vcs-Browser: https://anonscm.debian.org/git/collab-maint/xchain.git +Vcs-Git: https://anonscm.debian.org/git/collab-maint/xchain.git Package: xchain Architecture: any diff -Nru xchain-1.0.1/debian/copyright xchain-1.0.1/debian/copyright --- xchain-1.0.1/debian/copyright 2011-09-20 16:14:17.000000000 +0000 +++ xchain-1.0.1/debian/copyright 2017-01-15 22:25:46.000000000 +0000 @@ -1,19 +1,31 @@ -This is Chain Reaction V1.0 for X11. +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-name: xchain -Copyright (C) 1998 Alistair Cunningham +Files: * +Copyright: 1998 Alistair Cunningham +License: GPL-2+ -License -------- -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. +Files: debian/* +Copyright: 1998 Alistair Cunningham + 2001 Colin Watson + 2002-2004 Oohara Yuuma + 2011 Bernhard R. Link + 2017 Giovani Augusto Ferreira +License: GPL-2+ -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License with -your Debian GNU/Linux system, in /usr/share/common-licenses/GPL-2. -If not, see http://www.gnu.org/licenses/ +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff -Nru xchain-1.0.1/debian/manpages xchain-1.0.1/debian/manpages --- xchain-1.0.1/debian/manpages 1970-01-01 00:00:00.000000000 +0000 +++ xchain-1.0.1/debian/manpages 2017-01-15 22:25:46.000000000 +0000 @@ -0,0 +1 @@ +debian/xchain.6 diff -Nru xchain-1.0.1/debian/patches/0001-Makefile-fixed-typo-of-the-target-name.patch xchain-1.0.1/debian/patches/0001-Makefile-fixed-typo-of-the-target-name.patch --- xchain-1.0.1/debian/patches/0001-Makefile-fixed-typo-of-the-target-name.patch 2011-09-20 15:43:03.000000000 +0000 +++ xchain-1.0.1/debian/patches/0001-Makefile-fixed-typo-of-the-target-name.patch 2017-01-15 22:25:46.000000000 +0000 @@ -1,22 +1,32 @@ -From 85cfbc2cc8ebb4d20f429b9a9edd680b88ee76ce Mon Sep 17 00:00:00 2001 -From: Oohara Yuuma -Date: Wed, 17 Apr 2002 10:21:37 +0900 -Subject: Makefile: fixed typo of the target name - ---- - Makefile | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/Makefile b/Makefile -index 6aa5f71..8c1ee20 100644 ---- a/Makefile -+++ b/Makefile -@@ -11,7 +11,7 @@ OBJS= xchain.o +Description: Fixed typo of the target name and improved GCC hardening. +Author: Oohara Yuuma +Reviewed-by: Giovani Agusuto Ferreira +Last Update: 2017-01-15 +Index: xchain-1.0.1/Makefile +=================================================================== +--- xchain-1.0.1.orig/Makefile ++++ xchain-1.0.1/Makefile +@@ -2,17 +2,19 @@ DESTDIR = / + # This is so dpkg-buildpackage can build in the correct dir + + CC=gcc +-CFLAGS=-O2 -Wall ++CFLAGS += -O2 -Wall -fPIE + + OBJS= xchain.o + + .c.o: +- $(CC) -c $(CFLAGS) $< ++ $(CC) -c $(CFLAGS) $(CPPFLAGS) $< all: xchain -chain: $(OBJS) +- $(CC) -o xchain $(CFLAGS) $(OBJS) ++LDFLAGS += -pie ++ +xchain: $(OBJS) - $(CC) -o xchain $(CFLAGS) $(OBJS) ++ $(CC) -o xchain $(CFLAGS) $(LDFLAGS) $(OBJS) chmod 0755 xchain + install: xchain diff -Nru xchain-1.0.1/debian/patches/0003-warn-against-format-errors-and-fix-one.patch xchain-1.0.1/debian/patches/0003-warn-against-format-errors-and-fix-one.patch --- xchain-1.0.1/debian/patches/0003-warn-against-format-errors-and-fix-one.patch 2011-09-20 15:43:03.000000000 +0000 +++ xchain-1.0.1/debian/patches/0003-warn-against-format-errors-and-fix-one.patch 2017-01-15 22:25:46.000000000 +0000 @@ -7,11 +7,11 @@ xchain.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -diff --git a/xchain.c b/xchain.c -index cbe4e56..d578a16 100644 ---- a/xchain.c -+++ b/xchain.c -@@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +Index: xchain-1.0.1/xchain.c +=================================================================== +--- xchain-1.0.1.orig/xchain.c ++++ xchain-1.0.1/xchain.c +@@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suit #define DEF_WISH_PATH "/usr/bin/wish" diff -Nru xchain-1.0.1/debian/rules xchain-1.0.1/debian/rules --- xchain-1.0.1/debian/rules 2011-09-20 15:43:03.000000000 +0000 +++ xchain-1.0.1/debian/rules 2017-01-15 22:25:46.000000000 +0000 @@ -1,51 +1,14 @@ #!/usr/bin/make -f -# Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) -LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) +export DEB_BUILD_MAINT_OPTIONS = hardening=+all -CFLAGS += -Wall +%: + dh $@ -build: build-arch build-indep -build-indep: -build-arch: build-stamp -build-stamp: - dh_testdir - $(MAKE) CFLAGS='$(CPPFLAGS) $(CFLAGS)' xchain.o - $(MAKE) CFLAGS='$(CFLAGS) $(LDFLAGS)' xchain - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - $(MAKE) clean - dh_clean - -binary-indep: - -binary-arch: build-stamp - dh_testdir - dh_testroot - dh_prep +override_dh_install: dh_install - dh_installdocs README - dh_installexamples - dh_installmenu - dh_installman debian/xchain.6 - dh_installchangelogs - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build build-arch build-indep clean binary-indep binary-arch binary + rm -rf $(CURDIR)/debian/xchain/usr/doc + rm -rf $(CURDIR)/debian/xchain/usr/lib + rm -rf $(CURDIR)/debian/xchain/usr/man diff -Nru xchain-1.0.1/debian/watch xchain-1.0.1/debian/watch --- xchain-1.0.1/debian/watch 2011-09-20 16:13:37.000000000 +0000 +++ xchain-1.0.1/debian/watch 2017-01-15 22:25:46.000000000 +0000 @@ -1 +1,3 @@ -# No upstream location known +version=4 +opts=dversionmangle=s/.*/0.No-Site/ \ +https://people.debian.org/~eriberto/ FakeWatchNoUpstreamSiteForThisPackage-(\d\S+)\.gz