diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-19 09:21:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-19 09:21:34 +0000 |
commit | b108a5b780a130b34aff4260583444e163fd6bd2 (patch) | |
tree | a4fd9464af4329277055e0b2cab83b8057b84ade | |
parent | 110fc0caccd033b653e099ebbd79889e50bb3643 (diff) | |
download | busybox-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.debian | 10 | ||||
-rw-r--r-- | debian/changelog | 18 | ||||
-rw-r--r-- | debian/control | 46 | ||||
-rw-r--r-- | debian/copyright | 7 | ||||
-rwxr-xr-x | debian/rules | 119 |
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 @@ | |||
1 | BusyBox for Debian | ||
2 | ---------------------- | ||
3 | |||
4 | BusyBox is being developed and maintained by Erik Andersen | ||
5 | <andersee@debian.org>. | ||
6 | |||
7 | If you have a problem with BusyBox, send email to the Debian bug tracking | ||
8 | system that lives at <submit@bugs.lineo.com> | ||
9 | |||
10 | Erik 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 @@ | |||
1 | busybox (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 | |||
15 | Local variables: | ||
16 | mode: debian-changelog | ||
17 | add-log-mailing-address: "andersee@debian.org" | ||
18 | End: | ||
diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..4cc8634e9 --- /dev/null +++ b/debian/control | |||
@@ -0,0 +1,46 @@ | |||
1 | Source: busybox | ||
2 | Priority: optional | ||
3 | Maintainer: Erik Andersen <andersee@debian.org> | ||
4 | Build-Depends: debhelper (>= 2.0.80) | ||
5 | Standards-Version: 3.1.1 | ||
6 | |||
7 | Package: busybox | ||
8 | Architecture: any | ||
9 | Depends: ${shlibs:Depends} | ||
10 | 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 | ||
11 | Replaces: dpkg, netbase | ||
12 | Section: utils | ||
13 | Description: 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 | |||
27 | Package: busybox-static | ||
28 | Architecture: any | ||
29 | Depends: ${shlibs:Depends} | ||
30 | Section: shells | ||
31 | Description: 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 @@ | |||
1 | This package was debianized by Erik Andersen <andersee@debian.org> on | ||
2 | Sun, 18 Jun 2000 23:31:02 -0600 | ||
3 | |||
4 | It was downloaded from ftp://ftp.lineo.com/pub/busybox | ||
5 | HomePage is at: http://busybox.lineo.com/ | ||
6 | |||
7 | Copyright: 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. | ||
8 | export DH_COMPAT=1 | ||
9 | |||
10 | bb=debian/tmp | ||
11 | bbs=debian/busybox-static | ||
12 | |||
13 | clean: | ||
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 | |||
21 | half_clean: | ||
22 | dh_testdir | ||
23 | dh_testroot | ||
24 | rm -rf $(bbs) build-stamp-busybox-static | ||
25 | -$(MAKE) clean | ||
26 | |||
27 | build: build-stamp-busybox | ||
28 | build-stamp-busybox: | ||
29 | dh_testdir | ||
30 | $(MAKE) | ||
31 | touch build-stamp-busybox | ||
32 | |||
33 | install: 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 | ||
43 | build-static: build-stamp-busybox-static | ||
44 | build-stamp-busybox-static: | ||
45 | dh_testdir | ||
46 | $(MAKE) DOSTATIC=true | ||
47 | touch build-stamp-busybox-static | ||
48 | |||
49 | install-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 | |||
62 | do_static: half_clean build-static install-static | ||
63 | |||
64 | |||
65 | # Build architecture-independent files here. | ||
66 | binary-indep: | ||
67 | # We have nothing to do by default. | ||
68 | |||
69 | # Build architecture-dependent files here. | ||
70 | binary-arch: busybox busybox-static clean | ||
71 | |||
72 | busybox: 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 | |||
95 | busybox-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 | |||
118 | binary: binary-indep binary-arch | ||
119 | .PHONY: build clean binary-indep binary-arch binary install | ||