[Forensics-changes] [crack] 13/40: Switch to a minimal dh v7 style debian/rules file
Giovani Augusto Ferreira
giovani-guest at moszumanska.debian.org
Wed Dec 28 02:47:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
giovani-guest pushed a commit to branch debian
in repository crack.
commit 1fe0cc5d82c9a0cb685824f29cf71d068a523854
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Sun Oct 9 22:15:33 2016 +0200
Switch to a minimal dh v7 style debian/rules file
* Use debian/clean instead of manual calls to rm in clean target.
* Use dh_auto_clean instead of manual call to make.
---
debian/changelog | 3 ++
debian/clean | 1 +
debian/rules | 106 ++++++++-----------------------------------------------
3 files changed, 18 insertions(+), 92 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 35098d4..bb9839e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ crack (5.0a-10) UNRELEASED; urgency=medium
+ Create collab-maint git repo and add according Vcs-* headers.
* Revamp debian/rules:
+ Drop now obsolete manual setting of variables like CFLAGS, etc.
+ + Switch to a minimal dh v7 style debian/rules file.
+ + Use debian/clean instead of manual calls to rm in clean target.
+ + Use dh_auto_clean instead of manual call to make.
-- Axel Beckert <abe at debian.org> Sun, 09 Oct 2016 21:53:26 +0200
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..c3af857
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+lib/
diff --git a/debian/rules b/debian/rules
index 595c5a5..7e01278 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,24 +5,10 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
+%:
+ dh $@
- touch configure-stamp
-
-build-arch: build
-
-build-indep: build
-
-build: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- # Add here commands to compile the package.
- #~$(MAKE)
+override_dh_auto_build:
chmod 755 Crack.make
./Crack.make
# this is the crypt version, move it to other place
@@ -36,33 +22,15 @@ build-stamp: configure-stamp
mv src/libdes.orig src/libdes
cd src/util && cp elcid.c.orig elcid.c
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
+override_dh_auto_clean:
# This is done just in case
if [ -d src/libdes.orig ] ; then \
mv src/libdes.orig src/libdes ; \
cd src/util && cp elcid.c.orig elcid.c ;\
fi
- -$(MAKE) spotless
- -rm -rf lib
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
+ dh_auto_clean -- spotless
- # Add here commands to install the package into debian/crack.
- #$(MAKE) install DESTDIR=$(CURDIR)/debian/crack
- # For the common package
+override_dh_auto_install:
install -m755 Crack Reporter debian/crack-common/usr/share/Crack/
install -m644 Makefile debian/crack-common/usr/share/Crack/
install -m755 scripts/* debian/crack-common/usr/share/Crack/scripts/
@@ -84,60 +52,14 @@ install: build
cd debian/crack-md5/var/lib/Crack/bin/ && ln -s /usr/lib/Crack debian
install -m755 debian/Crack debian/Crack-Reporter debian/crack-md5/usr/sbin/
-# Could change into this the previous statements:
-# dh_movefiles
-# Build architecture-independent files here.
-# Pass -i to all debhelper commands in this target to reduce clutter.
-binary-indep: build install
- dh_testdir -i
- dh_testroot -i
-# dh_installdebconf -i
- dh_installdocs -i -pcrack-common doc/*
- dh_installexamples -i extra/*
- dh_installmenu -i
- dh_installcron -i
- dh_installman -i debian/Crack.8
- cd debian/crack-common/usr/share/man/man8/ && ln -s Crack.8 Crack-Reporter.8
- dh_installinfo -i
- dh_installchangelogs -i
- dh_link -i
- dh_compress -i
- dh_fixperms -i
- dh_installdeb -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i
+override_dh_installdocs:
+ dh_installdocs -pcrack-common doc/*
+ dh_installdocs --remaining
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir -a
- dh_testroot -a
-# dh_installdebconf -a
- dh_installdocs -a
- dh_installexamples -a
- dh_installmenu -a
-# dh_installlogrotate -a
-# dh_installemacsen -a
-# dh_installpam -a
-# dh_installmime -a
-# dh_installinit -a
- dh_installcron -a
-# dh_installman -a
- dh_installinfo -a
-# dh_undocumented -a -A Crack.8 Crack-Reporter.8
- dh_installchangelogs -a
- dh_strip -a
- dh_link -a
- dh_compress -a
- dh_fixperms -a
-# dh_makeshlibs -a
- dh_installdeb -a
-# dh_perl -a
- dh_shlibdeps -a
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a
+override_dh_installexamples:
+ dh_installexamples extra/*
-binary: binary-indep binary-arch
-.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install configure
+override_dh_installman:
+ dh_installman debian/Crack.8
+ cd debian/crack-common/usr/share/man/man8/ && ln -s Crack.8 Crack-Reporter.8
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/crack.git
More information about the forensics-changes
mailing list