Make a seperate busybox-doc package
authorGlenn L McGrath <bug1@ihug.co.nz>
Tue, 26 Nov 2002 02:16:06 +0000 (02:16 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Tue, 26 Nov 2002 02:16:06 +0000 (02:16 -0000)
debian/control
debian/rules

index 3626718da9e1c6acac1671e53027ea6dfd462317..2a0ffa8bf190a5afdf87c92a4a0e79934d90a495 100644 (file)
@@ -2,8 +2,15 @@ Source: busybox
 Priority: optional
 Maintainer: Erik Andersen <andersee@debian.org>
 Build-Depends: debhelper (>= 2.1.18), dpkg-dev (>= 1.7.0)
+Build-Depends-Indep: sgmltools-lite, w3m
 Standards-Version: 3.2.1.0
 
+Package: busybox-doc
+Architecture: all
+Section: doc
+Description: Documentation for busybox
+ Documentation in various formats on busybox commands and their options.
+
 Package: busybox
 Architecture: any
 Depends: ${shlibs:Depends}
index b812bc249bb9db2ed6db4ded69c7872dfeac8676..2a0b48f24246bcbc8ba95f9fa8f570718a0c0061 100755 (executable)
@@ -21,6 +21,7 @@ busybox-deb:
        $(MAKE)
        install -D busybox ./debian/busybox/bin/busybox
        dh_installchangelogs Changelog -pbusybox
+       dh_installdocs -pbusybox
        dh_strip -pbusybox
        dh_compress -pbusybox
        dh_fixperms -pbusybox
@@ -58,6 +59,7 @@ busybox-static:
        $(MAKE)
        install -D busybox ./debian/busybox-static/bin/busybox
        dh_installchangelogs Changelog -pbusybox-static
+       dh_installdocs -pbusybox-static
        dh_strip -pbusybox-static
        dh_compress -pbusybox-static
        dh_fixperms -pbusybox-static
@@ -69,5 +71,19 @@ busybox-static:
 
 binary-arch: busybox-deb busybox-udeb busybox-static
 
+binary-indep:
+       dh_testdir
+       dh_testroot
+       $(MAKE) clean
+       $(MAKE) newdoc
+       dh_installdocs -pbusybox-doc
+       dh_installchangelogs Changelog -pbusybox-doc
+       dh_compress -pbusybox-doc
+       dh_fixperms -pbusybox-doc
+       dh_installdeb -pbusybox-doc
+       dh_gencontrol -pbusybox-doc
+       dh_md5sums -pbusybox-doc
+       dh_builddeb -pbusybox-doc
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure