[Pkg-opt-media-team] [dvd+rw-tools] 01/01: debian/rules: Use a smaller dh-style rules file (still not good).

Rogério Brito rbrito-guest at moszumanska.debian.org
Sat Feb 21 01:16:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

rbrito-guest pushed a commit to branch master
in repository dvd+rw-tools.

commit ae375747dcb80632cde54291fe04b36dfcd4d144
Author: Rogério Brito <rbrito at ime.usp.br>
Date:   Fri Feb 20 23:14:29 2015 -0200

    debian/rules: Use a smaller dh-style rules file (still not good).
    
    In particular, this now respects the hardening options passed via CFLAGS and
    siblings.
    
    Git-Dch: Full
---
 debian/rules | 47 ++++++-----------------------------------------
 1 file changed, 6 insertions(+), 41 deletions(-)

diff --git a/debian/rules b/debian/rules
index e61668e..b289915 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,52 +1,17 @@
 #!/usr/bin/make -f
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
-
-	[ ! -f Makefile ] || $(MAKE) clean
-	rm -f ChangeLog
-
-	dh_clean
-
-build: build-stamp
-build-stamp:
-	dh_testdir
+%:
+	dh $@
 
+override_dh_auto_build:
 	CFLAGS="$(CFLAGS)" $(MAKE) WARN=-DI_KNOW_ALL_ABOUT_SUDO
 	CFLAGS="$(CFLAGS)" $(MAKE) +btcflash
 	CFLAGS="$(CFLAGS)" $(MAKE) rpl8
 	sed -n "/^%changelog$$/,$$ p" dvd+rw-tools.spec > ChangeLog
+	dh_auto_build
 
-	touch $@
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
+override_dh_auto_install:
 	$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
 
-binary: binary-arch
-
-binary-arch: install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs ChangeLog
-	dh_installdocs
-	dh_installman
-	dh_install
+override_dh_strip:
 	dh_strip --dbg-package=dvd+rw-tools-dbg
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary-indep:
-
-.PHONY: clean build install binary binary-arch binary-indep

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opt-media/dvd+rw-tools.git



More information about the Pkg-opt-media-team mailing list