[Forensics-changes] [fcrackzip] 59/93: debian/rules: Hardened CFLAGS
Giovani Augusto Ferreira
giovani-guest at moszumanska.debian.org
Wed Dec 28 03:06:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
giovani-guest pushed a commit to branch debian
in repository fcrackzip.
commit 579f12198008e1fff3fbbfa9fd41f62888614115
Author: Jari Aalto <jari.aalto at cante.net>
Date: Sat Feb 11 04:41:51 2012 -0500
debian/rules: Hardened CFLAGS
---
debian/rules | 45 +++++++++++++--------------------------------
1 file changed, 13 insertions(+), 32 deletions(-)
diff --git a/debian/rules b/debian/rules
index f82032f..9119008 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,12 @@
PACKAGE = fcrackzip
include debian/debian-vars.mk
-include debian/debian-compile.mk
include debian/debian-autotools.mk
+include /usr/share/dpkg/buildflags.mk
+CFLAGS += -Wall -pedantic
+LDFLAGS += -Wl,--as-needed
+
man:
$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE)info makeman
@@ -16,57 +19,35 @@ override_dh_auto_test:
# fcrackzip --benchmark
# /bin/bash: fcrackzip: command not found
-config.status:
- dh_testdir
+override_dh_auto_configure:
$(config-save)
$(config-patch)
- CFLAGS="$(CFLAGS)" ./configure \
+ CFLAGS="$(CFLAGS)" \
+ LDFLAGS="$(LDFLAGS)" \
+ ./configure \
--prefix=/usr \
--mandir=\$${prefix}/share/man
-configure: config.status
-
override_dh_installdocs:
# No need to install manual page in HTML format
dh_installdocs -X fcrackzip.html
-install: build man
- # target: install
- dh_testdir
- dh_testroot
- dh_prep
-
- $(MAKE) install DESTDIR=$(PKGDIR)
+override_dh_auto_install: build man
+ dh_auto_install
+ # $(MAKE) install DESTDIR=$(PKGDIR)
# As a program called zipinfo is already present in the "unzip" package,
# we'll rename our own in fcrackzipinfo
mv $(BINDIR)/zipinfo $(BINDIR)/fcrackzipinfo
-binary-arch: install override_dh_installdocs
- # target: binary-arch -- Build architecture-dependent files
+override_dh_installchangelogs:
$(config-restore)
- dh_testdir
- dh_testroot
- dh_installdirs
dh_installchangelogs NEWS
- dh_installexamples
- dh_installman
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-arch
%:
dh $@
-.PHONY: install configure man
-.PHONY: binary-arch binary
+.PHONY: man
# End of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/fcrackzip.git
More information about the forensics-changes
mailing list