[Glibc-bsd-commits] r4928 - trunk/freebsd-manpages/debian

Axel Beckert abe at alioth.debian.org
Sat Aug 31 00:40:12 UTC 2013


Author: abe
Date: 2013-08-31 00:40:11 +0000 (Sat, 31 Aug 2013)
New Revision: 4928

Modified:
   trunk/freebsd-manpages/debian/changelog
   trunk/freebsd-manpages/debian/rules
Log:
Switch to minimal dh7 style debian/rules file

Modified: trunk/freebsd-manpages/debian/changelog
===================================================================
--- trunk/freebsd-manpages/debian/changelog	2013-08-31 00:28:34 UTC (rev 4927)
+++ trunk/freebsd-manpages/debian/changelog	2013-08-31 00:40:11 UTC (rev 4928)
@@ -13,6 +13,7 @@
     dh_installman's recoding again.
     + Reduces package size by more than 60%
     + Add build-dependency on hardlink
+  * Switch to minimal dh7 style debian/rules file.
 
  -- Axel Beckert <abe at debian.org>  Sat, 31 Aug 2013 00:47:15 +0200
 

Modified: trunk/freebsd-manpages/debian/rules
===================================================================
--- trunk/freebsd-manpages/debian/rules	2013-08-31 00:28:34 UTC (rev 4927)
+++ trunk/freebsd-manpages/debian/rules	2013-08-31 00:40:11 UTC (rev 4928)
@@ -1,61 +1,33 @@
 #!/usr/bin/make -f
 # Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 
 DESTDIR=$(CURDIR)/debian/freebsd-manpages
 VER=9.1
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
+%:
+	dh $@
 
-# make -f debian/rules get-orig-source
-../base.txz:
-	cd ../;wget http://ftp.freebsd.org/pub/FreeBSD/releases/i386/$(VER)-RELEASE/base.txz
-../freebsd-manpages_$(VER).orig.tar.xz: ../base.txz
-	mkdir -pv debian/repack
-	# Ignore tar's exit code as both, BSD and GNU tar errors out
-	# on unknown extended header keywords as present in FreeBSD's
-	# tar balls.
-	cd debian/repack; tar xvJf ../../../base.txz ./usr/share/man/man2 ./usr/share/man/man3 ./usr/share/man/man4 ./usr/share/man/man9 || exit 0
-	cd debian/repack; tar cvJf ../../../freebsd-manpages_$(VER).orig.tar.xz ./usr/share/man
-	rm -rf debian/repack
-get-orig-source: ../freebsd-manpages_$(VER).orig.tar.xz
-
-build-stamp:
-	dh_testdir
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
+override_dh_install:
 	dh_install
 	# Use i386 directory for architecture-dependent man pages
 	mv $(DESTDIR)/usr/share/man/man4/i386/* $(DESTDIR)/usr/share/man/man4/
 	rm -rf $(DESTDIR)/usr/share/man/man4/*/
 	prename -v 's/\.(\d)($|\.gz)/.$${1}freebsd$${2}/' $(DESTDIR)/usr/share/man/man*/*
 
-binary-arch: build install
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs
-	dh_installdocs
+override_dh_installman:
 	dh_installman
 	hardlink -m -t $(DESTDIR)/usr/share/man
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+# make -f debian/rules get-orig-source
+get-orig-source: ../freebsd-manpages_$(VER).orig.tar.xz
+../freebsd-manpages_$(VER).orig.tar.xz: ../base.txz
+	mkdir -pv debian/repack
+	# Ignore tar's exit code as both, BSD and GNU tar errors out
+	# on unknown extended header keywords as present in FreeBSD's
+	# tar balls.
+	cd debian/repack; tar xvJf ../../../base.txz ./usr/share/man/man2 ./usr/share/man/man3 ./usr/share/man/man4 ./usr/share/man/man9 || exit 0
+	cd debian/repack; tar cvJf ../../../freebsd-manpages_$(VER).orig.tar.xz ./usr/share/man
+	rm -rf debian/repack
+../base.txz:
+	cd ../;wget http://ftp.freebsd.org/pub/FreeBSD/releases/i386/$(VER)-RELEASE/base.txz




More information about the Glibc-bsd-commits mailing list