[Forensics-changes] [fcrackzip] 17/93: debian/rules: rewrite for dh(1)
Giovani Augusto Ferreira
giovani-guest at moszumanska.debian.org
Wed Dec 28 03:06:35 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 a353fd504b3dcc4865fba403784fb642e1c5ca73
Author: Jari Aalto <jari.aalto at cante.net>
Date: Tue Dec 29 14:17:39 2009 +0200
debian/rules: rewrite for dh(1)
---
debian/rules | 117 ++++++++++++++++++-----------------------------------------
1 file changed, 36 insertions(+), 81 deletions(-)
diff --git a/debian/rules b/debian/rules
index fac92ec..43038ae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,104 +1,54 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+PACKAGE = fcrackzip
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+include debian/debian-vars.mk
+include debian/debian-compile.mk
+include debian/debian-autotools.mk
+man:
+ $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
-CFLAGS = -Wall -g
+override_dh_auto_test:
+ # Run no tests, because:
+ # fcrackzip --benchmark
+ # /bin/bash: fcrackzip: command not found
-# We don't need these because of the program's optimization is hard-coded
-#
-#ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-# CFLAGS += -O0
-#else
-# CFLAGS += -O2
-#endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-
-ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- confflags += --build $(DEB_HOST_GNU_TYPE)
-else
- confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-endif
-
-config.status: configure autotools
+config.status:
dh_testdir
- # Add here commands to configure the package.
- CFLAGS="$(CFLAGS)" ./configure $(confflags) \
- --prefix=/usr \
- --mandir=\$${prefix}/share/man
-
-autotools:
- -rm -f config.sub config.guess
- ln -s /usr/share/misc/config.sub
- ln -s /usr/share/misc/config.guess
-
-build: build-stamp
-
-build-stamp: config.status
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
- #/usr/bin/docbook-to-man debian/fcrackzip.sgml > fcrackzip.1
+ $(config-save)
+ $(config-patch)
+ CFLAGS="$(CFLAGS)" ./configure \
+ --prefix=/usr \
+ --mandir=\$${prefix}/share/man
- touch build-stamp
+configure: config.status
-clean:
+install: build man
+ # target: install
dh_testdir
dh_testroot
- rm -f build-stamp
-
- # Add here commands to clean up after the build process.
- -$(MAKE) distclean
-#We do not want config.* to be copied, instead we'll just create
-#symbolic links to them
-#ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-# cp -f /usr/share/misc/config.sub config.sub
-#endif
-#ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-# cp -f /usr/share/misc/config.guess config.guess
-#endif
- -rm -f config.sub config.guess
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
+ dh_prep
dh_installdirs
- # Add here commands to install the package into debian/fcrackzip.
- $(MAKE) install DESTDIR=$(CURDIR)/debian/fcrackzip
- #
- #As a program called zipinfo is already present in the "unzip" package,
- #we'll rename our own in fcrackzipinfo
- mv debian/fcrackzip/usr/bin/zipinfo debian/fcrackzip/usr/bin/fcrackzipinfo
+ $(MAKE) install DESTDIR=$(PKGDIR)
+ # As a program called zipinfo is already present in the "unzip" package,
+ # we'll rename our own in fcrackzipinfo
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
+ mv $(BINDIR)/zipinfo $(BINDIR)/fcrackzipinfo
-# Build architecture-dependent files here.
-binary-arch: build install
+binary: install
+ # target: binary (binary-arch) -- Build architecture-dependent files
+ $(config-restore)
dh_testdir
dh_testroot
dh_installchangelogs NEWS
dh_installdocs
- dh_installexamples noradi.zip
- dh_installman debian/fcrackzipinfo.1
+ dh_installexamples
+ dh_installman
dh_strip
dh_compress
dh_fixperms
@@ -108,5 +58,10 @@ binary-arch: build install
dh_md5sums
dh_builddeb
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install autotools
+%:
+ dh $@
+
+.PHONY: install configure man
+.PHONY: binary-indep binary-arch binary
+
+# 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