aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-12-01 19:55:04 +0000
committerEric Andersen <andersen@codepoet.org>2000-12-01 19:55:04 +0000
commite2f6e1221330f2944d467cad2fb630deb5ef6f0a (patch)
treef52409c3b56c1f2a5a54996dc2542c7941574e20
parent09a34e536896ecbe3e81618c7a45f9f1998bd8aa (diff)
downloadbusybox-w32-e2f6e1221330f2944d467cad2fb630deb5ef6f0a.tar.gz
busybox-w32-e2f6e1221330f2944d467cad2fb630deb5ef6f0a.tar.bz2
busybox-w32-e2f6e1221330f2944d467cad2fb630deb5ef6f0a.zip
More pristine source directory updates. It now works
for me (including doing install). How about you? -Erik
-rw-r--r--Makefile14
-rwxr-xr-xapplets/busybox.mkll6
-rwxr-xr-xapplets/busybox.sh12
-rwxr-xr-xbusybox.mkll6
-rwxr-xr-xbusybox.sh12
-rw-r--r--debian/changelog4
-rw-r--r--debian/control36
-rwxr-xr-xdebian/rules60
8 files changed, 116 insertions, 34 deletions
diff --git a/Makefile b/Makefile
index d43547e5f..bea9614a6 100644
--- a/Makefile
+++ b/Makefile
@@ -167,14 +167,14 @@ docs/BusyBox.1: docs/busybox.pod
167 docs/busybox.pod ) > docs/BusyBox.1 167 docs/busybox.pod ) > docs/BusyBox.1
168 168
169docs/BusyBox.html: docs/busybox.lineo.com/BusyBox.html 169docs/BusyBox.html: docs/busybox.lineo.com/BusyBox.html
170 - rm -f docs/BusyBox.html 170 -@ rm -f docs/BusyBox.html
171 - ln -s docs/busybox.lineo.com/BusyBox.html docs/BusyBox.html 171 -@ ln -s docs/busybox.lineo.com/BusyBox.html docs/BusyBox.html
172 172
173docs/busybox.lineo.com/BusyBox.html: docs/busybox.pod 173docs/busybox.lineo.com/BusyBox.html: docs/busybox.pod
174 - mkdir -p docs/busybox.lineo.com 174 -@ mkdir -p docs/busybox.lineo.com
175 - (cd $(BB_SRC_DIR); pod2html --noindex docs/busybox.pod ) \ 175 - (cd $(BB_SRC_DIR); pod2html --noindex docs/busybox.pod ) \
176 > docs/busybox.lineo.com/BusyBox.html 176 > docs/busybox.lineo.com/BusyBox.html
177 - rm -f pod2html* 177 -@ rm -f pod2html*
178 178
179 179
180# New docs based on DOCBOOK SGML 180# New docs based on DOCBOOK SGML
@@ -210,7 +210,7 @@ busybox: $(OBJECTS)
210 $(STRIP) 210 $(STRIP)
211 211
212busybox.links: Config.h 212busybox.links: Config.h
213 -(cd $(BB_SRC_DIR); ./busybox.mkll ) | sort >$@ 213 -$(BB_SRC_DIR)/busybox.mkll $(BB_SRC_DIR)applets.h | sort >$@
214 214
215nfsmount.o cmdedit.o: %.o: %.h 215nfsmount.o cmdedit.o: %.o: %.h
216$(OBJECTS): %.o: %.c Config.h busybox.h Makefile 216$(OBJECTS): %.o: %.c Config.h busybox.h Makefile
@@ -237,10 +237,10 @@ distclean: clean
237 - cd tests && $(MAKE) distclean 237 - cd tests && $(MAKE) distclean
238 238
239install: busybox busybox.links 239install: busybox busybox.links
240 ./install.sh $(PREFIX) 240 $(BB_SRC_DIR)/install.sh $(PREFIX)
241 241
242install-hardlinks: busybox busybox.links 242install-hardlinks: busybox busybox.links
243 ./install.sh $(PREFIX) --hardlinks 243 $(BB_SRC_DIR)/install.sh $(PREFIX) --hardlinks
244 244
245debug_pristine: 245debug_pristine:
246 @ echo VPATH=\"$(VPATH)\" 246 @ echo VPATH=\"$(VPATH)\"
diff --git a/applets/busybox.mkll b/applets/busybox.mkll
index d7b9ec539..922dcdd81 100755
--- a/applets/busybox.mkll
+++ b/applets/busybox.mkll
@@ -2,7 +2,11 @@
2# Make busybox links list file. 2# Make busybox links list file.
3 3
4DF="Config.h" 4DF="Config.h"
5MF="applets.h" 5
6MF=$1
7if [ "$MF" = "" ]; then
8 MF="applets.h"
9fi
6 10
7LIST="$(gcc -E -dM $DF | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/BB_\1/gp;' | sort)" 11LIST="$(gcc -E -dM $DF | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/BB_\1/gp;' | sort)"
8 12
diff --git a/applets/busybox.sh b/applets/busybox.sh
index e01b88162..22493bf59 100755
--- a/applets/busybox.sh
+++ b/applets/busybox.sh
@@ -1,10 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# I added in the extra "ls" so only source files that 3RAW=` \
4# actually exist will show up in the compile list. 4 gcc -E -dM ${1:-Config.h} | \
5ls -1 ` \
6 gcc -E -dM Config.h | \
7 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ 5 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
8 | tr '[:upper:]' '[:lower:]' | sort 6 | tr '[:upper:]' '[:lower:]' | sort
9` 2>/dev/null | sed -e 's/\.c$/\.o/g' 7`
8cd ${2:-.}
9# I added in the extra "ls" so only source files that
10# actually exist will show up in the compile list.
11ls -1 $RAW 2>/dev/null | sed -e 's/\.c$/\.o/g'
10 12
diff --git a/busybox.mkll b/busybox.mkll
index d7b9ec539..922dcdd81 100755
--- a/busybox.mkll
+++ b/busybox.mkll
@@ -2,7 +2,11 @@
2# Make busybox links list file. 2# Make busybox links list file.
3 3
4DF="Config.h" 4DF="Config.h"
5MF="applets.h" 5
6MF=$1
7if [ "$MF" = "" ]; then
8 MF="applets.h"
9fi
6 10
7LIST="$(gcc -E -dM $DF | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/BB_\1/gp;' | sort)" 11LIST="$(gcc -E -dM $DF | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/BB_\1/gp;' | sort)"
8 12
diff --git a/busybox.sh b/busybox.sh
index e01b88162..22493bf59 100755
--- a/busybox.sh
+++ b/busybox.sh
@@ -1,10 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# I added in the extra "ls" so only source files that 3RAW=` \
4# actually exist will show up in the compile list. 4 gcc -E -dM ${1:-Config.h} | \
5ls -1 ` \
6 gcc -E -dM Config.h | \
7 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ 5 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
8 | tr '[:upper:]' '[:lower:]' | sort 6 | tr '[:upper:]' '[:lower:]' | sort
9` 2>/dev/null | sed -e 's/\.c$/\.o/g' 7`
8cd ${2:-.}
9# I added in the extra "ls" so only source files that
10# actually exist will show up in the compile list.
11ls -1 $RAW 2>/dev/null | sed -e 's/\.c$/\.o/g'
10 12
diff --git a/debian/changelog b/debian/changelog
index c1c9cb2bd..3300927e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
1busybox (0.48pre-1) unstable; urgency=low 1busybox (0.48pre-1) unstable; urgency=low
2 2
3 * New version released. See changelog for details. 3 * Non-release.
4 * See changelog for details.
5 * Now includes .udeb support for the debian-installer.
4 6
5 -- Erik Andersen <andersee@debian.org> Mon, 25 Sep 2000 23:00:56 -0600 7 -- Erik Andersen <andersee@debian.org> Mon, 25 Sep 2000 23:00:56 -0600
6 8
diff --git a/debian/control b/debian/control
index bbbf86e09..54475b799 100644
--- a/debian/control
+++ b/debian/control
@@ -1,16 +1,16 @@
1Source: busybox 1Source: busybox
2Priority: optional 2Priority: optional
3Maintainer: Erik Andersen <andersee@debian.org> 3Maintainer: Erik Andersen <andersee@debian.org>
4Build-Depends: debhelper 4Build-Depends: debhelper (>= 2.1.18), dpkg-dev (1.7.0)
5Standards-Version: 3.1.1 5Standards-Version: 3.2.1.0
6 6
7Package: busybox 7Package: busybox
8Architecture: any 8Architecture: any
9Depends: ${shlibs:Depends} 9Depends: ${shlibs:Depends}
10Conflicts: 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 10Conflicts:
11Replaces: netbase 11Replaces:
12Section: utils 12Section: utils
13Description: Tiny utilities for the debian-installer and for embedded systems. 13Description: Tiny utilities for small and embedded systems.
14 BusyBox combines tiny versions of many common UNIX utilities into a single 14 BusyBox combines tiny versions of many common UNIX utilities into a single
15 small executable. It provides minimalist replacements for the most common 15 small executable. It provides minimalist replacements for the most common
16 utilities you would usually find on your desktop system (i.e. ls, cp, mv, 16 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.
19 provide the expected functionality and behave very much like their GNU 19 provide the expected functionality and behave very much like their GNU
20 counterparts. 20 counterparts.
21 . 21 .
22 BusyBox is used by the debian-installer. Installing BusyBox onto your Debian 22 This package installs the BusyBox binary but does not install symlinks
23 system is not recommended, unless you are intended to make a very small 23 for any of the supported utilities. You can use /bin/busybox --install
24 embedded system. Chances are good that for embedded systems, you will want to 24 to install BusyBox to the current directory (you do not want to do this
25 recompile to only include the tools and utilities you wish to include. 25 in / on your Debian system!).
26 26
27Package: busybox-static 27Package: busybox-static
28Architecture: any 28Architecture: any
@@ -44,3 +44,21 @@ Description: Provides a stand alone rescue shell with tons of builtin utilities.
44 your system from certain destruction. Invoke "busybox", and it will list the 44 your system from certain destruction. Invoke "busybox", and it will list the
45 available builtin commands. 45 available builtin commands.
46 46
47Package: busybox-udeb
48Architecture: any
49Depends: ${shlibs:Depends}
50Section: debian-installer
51Description: Tiny utilities for the debian-installer and for embedded systems.
52 BusyBox combines tiny versions of many common UNIX utilities into a single
53 small executable. It provides minimalist replacements for the most common
54 utilities you would usually find on your desktop system (i.e. ls, cp, mv,
55 mount, tar, etc). The utilities in BusyBox generally have fewer options than
56 their full-featured GNU cousins; however, the options that are included
57 provide the expected functionality and behave very much like their GNU
58 counterparts.
59 .
60 BusyBox is used by the debian-installer. Installing BusyBox onto your Debian
61 system is not recommended, unless you are intended to make a very small
62 embedded system. Chances are good that for embedded systems, you will want to
63 recompile to only include the tools and utilities you wish to include.
64
diff --git a/debian/rules b/debian/rules
index ffa9b5c36..67741b19f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,14 +8,23 @@
8export DH_COMPAT=1 8export DH_COMPAT=1
9 9
10bb=debian/tmp 10bb=debian/tmp
11bbbd=debian/bb_builddir
11bbs=debian/busybox-static 12bbs=debian/busybox-static
13bbsbd=debian/bb-static_builddir
14
15#For the debian-installer .udeb package
16PACKAGE=busybox-udeb
17VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
18ARCH=$(shell dpkg --print-architecture)
19FILENAME=$(PACKAGE)_$(VERSION)_$(ARCH).udeb
20PRIORITY=$(shell grep ^Priority: debian/control | cut -d ' ' -f 2)
12 21
13clean: 22clean:
14 dh_testdir 23 dh_testdir
15 dh_testroot 24 dh_testroot
16 rm -f build-stamp-busybox build-stamp-busybox-static 25 rm -f build-stamp-busybox build-stamp-busybox-static
17 -$(MAKE) clean 26 -$(MAKE) clean
18 -rm -rf $(bb) $(bbs) 27 -rm -rf $(bb) $(bbbd) $(bbs) $(bbsbd)
19 dh_clean 28 dh_clean
20 29
21half_clean: 30half_clean:
@@ -27,7 +36,9 @@ half_clean:
27build: build-stamp-busybox 36build: build-stamp-busybox
28build-stamp-busybox: 37build-stamp-busybox:
29 dh_testdir 38 dh_testdir
30 $(MAKE) 39 mkdir -p $(bbbd)
40 cp Makefile Config.h $(bbbd)
41 (cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../")
31 touch build-stamp-busybox 42 touch build-stamp-busybox
32 43
33install: build 44install: build
@@ -35,7 +46,7 @@ install: build
35 dh_testroot 46 dh_testroot
36 dh_clean -k 47 dh_clean -k
37 dh_installdirs 48 dh_installdirs
38 $(MAKE) "PREFIX=$(bb)" install 49 (cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../" "PREFIX=../../$(bb)" install)
39 mkdir -p $(bb)/usr/share/man/man1 50 mkdir -p $(bb)/usr/share/man/man1
40 cp docs/BusyBox.1 $(bb)/usr/share/man/man1/busybox.1 51 cp docs/BusyBox.1 $(bb)/usr/share/man/man1/busybox.1
41 52
@@ -67,7 +78,7 @@ binary-indep:
67# We have nothing to do by default. 78# We have nothing to do by default.
68 79
69# Build architecture-dependent files here. 80# Build architecture-dependent files here.
70binary-arch: busybox busybox-static 81binary-arch: busybox busybox-static busybox-udeb
71 82
72busybox: install 83busybox: install
73 @echo "--- Building: $@" 84 @echo "--- Building: $@"
@@ -87,7 +98,7 @@ busybox: install
87 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \ 98 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \
88 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore 99 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore
89 #dh_undocumented -p$@ 100 #dh_undocumented -p$@
90 dh_installchangelogs -p$@ Changelog 101 #dh_installchangelogs -p$@ Changelog
91 dh_strip -p$@ 102 dh_strip -p$@
92 dh_compress -p$@ 103 dh_compress -p$@
93 dh_fixperms -p$@ 104 dh_fixperms -p$@
@@ -126,5 +137,44 @@ busybox-static: do_static
126 dh_builddeb -p$@ 137 dh_builddeb -p$@
127 138
128 139
140# Note that this builds a .udeb, which is not policy compliant or anything.
141#
142busybox-udeb: install
143 @echo "--- Building: $@"
144 dh_testdir
145 dh_testroot
146 dh_installdirs
147 #
148 #Note that for busybox, we do not install any docs,
149 # or man apges or anything else. This is in blatent violation of every
150 # Debian policy out there, since this package is intended to be used
151 # _only_ by the debian-installer.
152 #
153 #dh_installdocs -p$@ docs/BusyBox.txt \
154 # docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
155 #rm -rf $(bb)/usr/share/doc/busybox/busybox.lineo.com/CVS \
156 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/.cvsignore \
157 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \
158 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore
159 #dh_undocumented -p$@
160 #dh_installchangelogs -p$@ Changelog
161 dh_strip -p$@
162 dh_compress -p$@
163 dh_fixperms -p$@
164 dh_installdeb -p$@
165 dh_shlibdeps -p$@
166 #
167 #Make _very_ sure there are no docs lurking about.
168 #
169 rm -rf $(bb)/usr/share/doc
170 rm -rf $(bb)/usr/share/man
171 dh_gencontrol -p$@
172 # Don't write your stupid guesses to debian/files.
173 #dh_gencontrol -p$@ -- -fdebian/files~
174 # Register file manually.
175 dpkg-distaddfile $(FILENAME) debian-installer $(PRIORITY)
176 dh_md5sums -p$@
177 dh_builddeb -p$@ --filename=$(FILENAME)
178
129binary: binary-indep binary-arch 179binary: binary-indep binary-arch
130.PHONY: build clean binary-indep binary-arch binary install 180.PHONY: build clean binary-indep binary-arch binary install