* Move signGP.c from a patch to a file in debian/. * Drop boilerplate from rules. * Add mention of signGP.c homepage to copyright; it might be GPLv2 but this is not certain. * Drop bogus $(sh) in rules. * List files to clean in debian/clean. * Set priority to optional. * Set CROSS_COMPILE= to $(DEB_HOST_GNU_TYPE)- when DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE differ and also export it (albeit empty) when they are equal; this fixes cross-compilation and allows dropping patch no_cross_compile.diff. * rules: the upstream build passes LDFLAGS directly to ld instead of calling gcc for linking; so instead of passing -Wl,foo in LDFLAGS as in automake builds, one should set LDFLAGS to foo directly; add some Makefile to foo to convert the flags on the fly. * Pass CC="$(CROSS_COMPILE)gcc $(CFLAGS)" HOST_CC="gcc $(CFLAGS)" to the build as to pass our CFLAGS; add -fno-stack-protector to CFLAGS in rules and drop no_patch_protector.diff patch.