aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-06-19 09:21:34 +0000
committerEric Andersen <andersen@codepoet.org>2000-06-19 09:21:34 +0000
commitb108a5b780a130b34aff4260583444e163fd6bd2 (patch)
treea4fd9464af4329277055e0b2cab83b8057b84ade
parent110fc0caccd033b653e099ebbd79889e50bb3643 (diff)
downloadbusybox-w32-b108a5b780a130b34aff4260583444e163fd6bd2.tar.gz
busybox-w32-b108a5b780a130b34aff4260583444e163fd6bd2.tar.bz2
busybox-w32-b108a5b780a130b34aff4260583444e163fd6bd2.zip
Added support for building debian packages.
-Erik
-rw-r--r--debian/README.debian10
-rw-r--r--debian/changelog18
-rw-r--r--debian/control46
-rw-r--r--debian/copyright7
-rwxr-xr-xdebian/rules119
5 files changed, 200 insertions, 0 deletions
diff --git a/debian/README.debian b/debian/README.debian
new file mode 100644
index 000000000..f210a3e39
--- /dev/null
+++ b/debian/README.debian
@@ -0,0 +1,10 @@
1BusyBox for Debian
2----------------------
3
4BusyBox is being developed and maintained by Erik Andersen
5<andersee@debian.org>.
6
7If you have a problem with BusyBox, send email to the Debian bug tracking
8system that lives at <submit@bugs.lineo.com>
9
10Erik Andersen <andersee@debian.org>, Sun, 18 Jun 2000 21:52:00 -0600
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 000000000..d042bb23f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,18 @@
1busybox (0.44-1) frozen; urgency=low
2
3 * First attempt at packaging BusyBox as a .deb. This has been in
4 in the Debian boot-floppies CVS tree forever. Hopefully, having it as a
5 standalone app will make life easier for me, the debian-installer team, and
6 everyone else as well...
7 * I have created a busybox-static that can be used as a rescue shell when you
8 hose your system. Just invoke "busybox sh" to fir up the shell. This has
9 every app provided by busybox staically linked in. There have been several
10 times in the past that I would have loved to have this sitting on my system
11 (i.e. when libc gets screwed up.)
12
13 -- Erik Andersen <andersee@debian.org> Sun, 18 Jun 2000 21:45:47 -0600
14
15Local variables:
16mode: debian-changelog
17add-log-mailing-address: "andersee@debian.org"
18End:
diff --git a/debian/control b/debian/control
new file mode 100644
index 000000000..4cc8634e9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
1Source: busybox
2Priority: optional
3Maintainer: Erik Andersen <andersee@debian.org>
4Build-Depends: debhelper (>= 2.0.80)
5Standards-Version: 3.1.1
6
7Package: busybox
8Architecture: any
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
11Replaces: dpkg, netbase
12Section: utils
13Description: Tiny utilities for the debian-installer and for embedded systems.
14 BusyBox combines tiny versions of many common UNIX utilities into a single
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,
17 mount, tar, etc). The utilities in BusyBox generally have fewer options than
18 their full-featured GNU cousins; however, the options that are included
19 provide the expected functionality and behave very much like their GNU
20 counterparts.
21 .
22 BusyBox is used by the debian-installer. Installing BusyBox onto your Debian
23 system is not recommended, unless you are intended to make a very small embedded
24 system. Chances are good that for embedded systems, you will want to recompile
25 to only include the tools and utilities you wish to include.
26
27Package: busybox-static
28Architecture: any
29Depends: ${shlibs:Depends}
30Section: shells
31Description: Provides a stand alone rescue shell with tons of builtin utilities.
32 BusyBox combines tiny versions of many common UNIX utilities into a single
33 small executable. It provides minimalist replacements for the most common
34 utilities you would usually find on your desktop system (i.e. ls, cp, mv,
35 mount, tar, etc). The utilities in BusyBox generally have fewer options than
36 their full-featured GNU cousins; however, the options that are included
37 provide the expected functionality and behave very much like their GNU
38 counterparts.
39 .
40 BusyBox-static provides you with a statically linked simple stand alone shell
41 that provides all the utilities available in BusyBox. This package is
42 intended to be used as a rescue shell, in the event that you screw up your
43 system. Invoke "busybox sh" and you have a standalone shell ready to save
44 your system from certain destruction. Invoke "busybox", and it will list the
45 available builtin commands.
46
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 000000000..68a96e68b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,7 @@
1This package was debianized by Erik Andersen <andersee@debian.org> on
2Sun, 18 Jun 2000 23:31:02 -0600
3
4It was downloaded from ftp://ftp.lineo.com/pub/busybox
5HomePage is at: http://busybox.lineo.com/
6
7Copyright: GPL
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..163f1d0d4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,119 @@
1#!/usr/bin/make -f
2
3# This is a bit unusual, in that I have to completely recompile everything
4# twice. The first is the normal, dynamically linked package. The second is
5# for the statically linked package. This file has been adjusted accordingly.
6
7# This is the debhelper compatability version to use.
8export DH_COMPAT=1
9
10bb=debian/tmp
11bbs=debian/busybox-static
12
13clean:
14 dh_testdir
15 dh_testroot
16 rm -f build-stamp-busybox build-stamp-busybox-static
17 -$(MAKE) clean
18 -rm -rf $(bb) $(bbs)
19 dh_clean
20
21half_clean:
22 dh_testdir
23 dh_testroot
24 rm -rf $(bbs) build-stamp-busybox-static
25 -$(MAKE) clean
26
27build: build-stamp-busybox
28build-stamp-busybox:
29 dh_testdir
30 $(MAKE)
31 touch build-stamp-busybox
32
33install: build
34 dh_testdir
35 dh_testroot
36 dh_clean -k
37 dh_installdirs
38 $(MAKE) "PREFIX=$(bb)" install
39 mkdir -p $(bb)/usr/share/man/man1
40 cp docs/BusyBox.1 $(bb)/usr/share/man/man1/busybox.1
41
42# Now for the statically linked stuff
43build-static: build-stamp-busybox-static
44build-stamp-busybox-static:
45 dh_testdir
46 $(MAKE) DOSTATIC=true
47 touch build-stamp-busybox-static
48
49install-static: build
50 dh_testdir
51 dh_testroot
52 dh_clean -k
53 dh_installdirs
54 # Do not run 'make install', since we do not want all the symlinks.
55 # This just installes the busybox binary...
56 #$(MAKE) "PREFIX=$(bbs)" install
57 mkdir -p $(bbs)/bin/
58 cp busybox $(bbs)/bin/busybox
59 mkdir -p $(bbs)/usr/share/man/man1/
60 cp docs/BusyBox.1 $(bbs)/usr/share/man/man1/busybox.1
61
62do_static: half_clean build-static install-static
63
64
65# Build architecture-independent files here.
66binary-indep:
67# We have nothing to do by default.
68
69# Build architecture-dependent files here.
70binary-arch: busybox busybox-static clean
71
72busybox: install
73 @echo "--- Building: $@"
74 dh_testdir
75 dh_testroot
76 dh_installdirs
77 dh_installdocs -p$@ docs/BusyBox.txt \
78 docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
79 rm -rf $(bb)/usr/share/doc/busybox/busybox.lineo.com/CVS \
80 $(bb)/usr/share/doc/busybox/busybox.lineo.com/.cvsignore \
81 $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \
82 $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore
83 #dh_undocumented -p$@
84 dh_installchangelogs -p$@ Changelog
85 dh_strip -p$@
86 dh_compress -p$@
87 dh_fixperms -p$@
88 dh_installdeb -p$@
89 dh_shlibdeps -p$@
90 dh_gencontrol -p$@
91 dh_md5sums -p$@
92 dh_builddeb -p$@
93
94
95busybox-static: do_static
96 @echo "--- Building: $@"
97 dh_testdir
98 dh_testroot
99 dh_installdirs
100 dh_installdocs -p$@ docs/BusyBox.txt \
101 docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
102 rm -rf $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/CVS \
103 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/.cvsignore \
104 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/images/CVS \
105 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/images/.cvsignore
106 dh_undocumented -p$@
107 dh_installchangelogs -p$@ Changelog
108 dh_strip -p$@
109 dh_compress -p$@
110 dh_fixperms -p$@
111 dh_installdeb -p$@
112 dh_shlibdeps -p$@
113 dh_gencontrol -p$@
114 dh_md5sums -p$@
115 dh_builddeb -p$@
116
117
118binary: binary-indep binary-arch
119.PHONY: build clean binary-indep binary-arch binary install