diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-01 22:55:04 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-01 22:55:04 +0300 |
commit | e2f6e1221330f2944d467cad2fb630deb5ef6f0a (patch) | |
tree | f52409c3b56c1f2a5a54996dc2542c7941574e20 /debian | |
parent | 09a34e536896ecbe3e81618c7a45f9f1998bd8aa (diff) |
More pristine source directory updates. It now works
for me (including doing install). How about you?
-Erik
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | debian/control | 36 | ||||
-rwxr-xr-x | debian/rules | 60 |
3 files changed, 85 insertions, 15 deletions
diff --git a/debian/changelog b/debian/changelog index c1c9cb2bd..3300927e8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ busybox (0.48pre-1) unstable; urgency=low - * New version released. See changelog for details. + * Non-release. + * See changelog for details. + * Now includes .udeb support for the debian-installer. -- Erik Andersen <andersee@debian.org> Mon, 25 Sep 2000 23:00:56 -0600 diff --git a/debian/control b/debian/control index bbbf86e09..54475b799 100644 --- a/debian/control +++ b/debian/control @@ -1,16 +1,16 @@ Source: busybox Priority: optional Maintainer: Erik Andersen <andersee@debian.org> -Build-Depends: debhelper -Standards-Version: 3.1.1 +Build-Depends: debhelper (>= 2.1.18), dpkg-dev (1.7.0) +Standards-Version: 3.2.1.0 Package: busybox Architecture: any Depends: ${shlibs:Depends} -Conflicts: binutils, bsdutils, console-tools, cpio, debianutils, dnsutils, dpkg, fbset, fdflush, fileutils, grep, gzip, hostname, modutils, mount, netbase, procps, psmisc, sed, sharutils, shellutils, sysklogd, sysvinit, tar, textutils, update, util-linux -Replaces: netbase +Conflicts: +Replaces: Section: utils -Description: Tiny utilities for the debian-installer and for embedded systems. +Description: Tiny utilities for small and embedded systems. BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for the most common utilities you would usually find on your desktop system (i.e. ls, cp, mv, @@ -19,10 +19,10 @@ Description: Tiny utilities for the debian-installer and for embedded systems. provide the expected functionality and behave very much like their GNU counterparts. . - BusyBox is used by the debian-installer. Installing BusyBox onto your Debian - system is not recommended, unless you are intended to make a very small - embedded system. Chances are good that for embedded systems, you will want to - recompile to only include the tools and utilities you wish to include. + This package installs the BusyBox binary but does not install symlinks + for any of the supported utilities. You can use /bin/busybox --install + to install BusyBox to the current directory (you do not want to do this + in / on your Debian system!). Package: busybox-static Architecture: any @@ -44,3 +44,21 @@ Description: Provides a stand alone rescue shell with tons of builtin utilities. your system from certain destruction. Invoke "busybox", and it will list the available builtin commands. +Package: busybox-udeb +Architecture: any +Depends: ${shlibs:Depends} +Section: debian-installer +Description: Tiny utilities for the debian-installer and for embedded systems. + BusyBox combines tiny versions of many common UNIX utilities into a single + small executable. It provides minimalist replacements for the most common + utilities you would usually find on your desktop system (i.e. ls, cp, mv, + mount, tar, etc). The utilities in BusyBox generally have fewer options than + their full-featured GNU cousins; however, the options that are included + provide the expected functionality and behave very much like their GNU + counterparts. + . + BusyBox is used by the debian-installer. Installing BusyBox onto your Debian + system is not recommended, unless you are intended to make a very small + embedded system. Chances are good that for embedded systems, you will want to + recompile to only include the tools and utilities you wish to include. + diff --git a/debian/rules b/debian/rules index ffa9b5c36..67741b19f 100755 --- a/debian/rules +++ b/debian/rules @@ -8,14 +8,23 @@ export DH_COMPAT=1 bb=debian/tmp +bbbd=debian/bb_builddir bbs=debian/busybox-static +bbsbd=debian/bb-static_builddir + +#For the debian-installer .udeb package +PACKAGE=busybox-udeb +VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) +ARCH=$(shell dpkg --print-architecture) +FILENAME=$(PACKAGE)_$(VERSION)_$(ARCH).udeb +PRIORITY=$(shell grep ^Priority: debian/control | cut -d ' ' -f 2) clean: dh_testdir dh_testroot rm -f build-stamp-busybox build-stamp-busybox-static -$(MAKE) clean - -rm -rf $(bb) $(bbs) + -rm -rf $(bb) $(bbbd) $(bbs) $(bbsbd) dh_clean half_clean: @@ -27,7 +36,9 @@ half_clean: build: build-stamp-busybox build-stamp-busybox: dh_testdir - $(MAKE) + mkdir -p $(bbbd) + cp Makefile Config.h $(bbbd) + (cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../") touch build-stamp-busybox install: build @@ -35,7 +46,7 @@ install: build dh_testroot dh_clean -k dh_installdirs - $(MAKE) "PREFIX=$(bb)" install + (cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../" "PREFIX=../../$(bb)" install) mkdir -p $(bb)/usr/share/man/man1 cp docs/BusyBox.1 $(bb)/usr/share/man/man1/busybox.1 @@ -67,7 +78,7 @@ binary-indep: # We have nothing to do by default. # Build architecture-dependent files here. -binary-arch: busybox busybox-static +binary-arch: busybox busybox-static busybox-udeb busybox: install @echo "--- Building: $@" @@ -87,7 +98,7 @@ busybox: install # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \ # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore #dh_undocumented -p$@ - dh_installchangelogs -p$@ Changelog + #dh_installchangelogs -p$@ Changelog dh_strip -p$@ dh_compress -p$@ dh_fixperms -p$@ @@ -126,5 +137,44 @@ busybox-static: do_static dh_builddeb -p$@ +# Note that this builds a .udeb, which is not policy compliant or anything. +# +busybox-udeb: install + @echo "--- Building: $@" + dh_testdir + dh_testroot + dh_installdirs + # + #Note that for busybox, we do not install any docs, + # or man apges or anything else. This is in blatent violation of every + # Debian policy out there, since this package is intended to be used + # _only_ by the debian-installer. + # + #dh_installdocs -p$@ docs/BusyBox.txt \ + # docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO + #rm -rf $(bb)/usr/share/doc/busybox/busybox.lineo.com/CVS \ + # $(bb)/usr/share/doc/busybox/busybox.lineo.com/.cvsignore \ + # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \ + # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore + #dh_undocumented -p$@ + #dh_installchangelogs -p$@ Changelog + dh_strip -p$@ + dh_compress -p$@ + dh_fixperms -p$@ + dh_installdeb -p$@ + dh_shlibdeps -p$@ + # + #Make _very_ sure there are no docs lurking about. + # + rm -rf $(bb)/usr/share/doc + rm -rf $(bb)/usr/share/man + dh_gencontrol -p$@ + # Don't write your stupid guesses to debian/files. + #dh_gencontrol -p$@ -- -fdebian/files~ + # Register file manually. + dpkg-distaddfile $(FILENAME) debian-installer $(PRIORITY) + dh_md5sums -p$@ + dh_builddeb -p$@ --filename=$(FILENAME) + binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install |