From 9b5622f8f289613ce806f390aa8fa4622d2a9a5c Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Mar 29 2020 04:07:47 +0000 Subject: Deb.pm: Use dh sequencer in rules file; bump debhelper requirement to 10+ --- diff --git a/Alien/Package/Deb.pm b/Alien/Package/Deb.pm index 08bd683..3d64384 100644 --- a/Alien/Package/Deb.pm +++ b/Alien/Package/Deb.pm @@ -459,7 +459,7 @@ sub prep { # Use debhelper v7 open (OUT, ">$dir/debian/compat") || die "$dir/debian/compat: $!"; - print OUT "7\n"; + print OUT "10\n"; close OUT; # A minimal rules file. @@ -471,48 +471,35 @@ sub prep { PACKAGE=\$(shell dh_listpackages) -build: - dh_testdir +%: + dh $@ -clean: - dh_testdir - dh_testroot +override_dh_clean: dh_clean -d -binary-indep: build +override_dh_auto_configure: -binary-arch: build - dh_testdir - dh_testroot - dh_prep - dh_installdirs +override_dh_auto_build: - dh_installdocs - dh_installchangelogs - -# Copy the packages's files. +override_dh_auto_install: + # Copy the packages's files. find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \\ xargs -0 -r -i cp -a {} debian/\$(PACKAGE) - # # If you need to move files around in debian/\$(PACKAGE) or do some # binary patching, do it here # - +override_dh_strip: # This has been known to break on some wacky binaries. -# dh_strip - dh_compress + # dh_strip + +override_dh_fixperms: $fixpermscomment dh_fixperms - dh_makeshlibs - dh_installdeb + +override_dh_shlibdeps: -dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary EOF close OUT; $this->do("chmod", 755, "$dir/debian/rules"); diff --git a/debian/control b/debian/control index 7145fca..5cd9bec 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Homepage: http://kitenet.net/~joey/code/alien/ Package: alien Architecture: all -Depends: debhelper (>= 7), ${misc:Depends}, ${perl:Depends}, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio +Depends: debhelper (>= 10), ${misc:Depends}, ${perl:Depends}, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio Suggests: patch, bzip2, lintian, lzma Description: convert and install rpm and other packages Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages