aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-12-01 02:09:19 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-12-01 02:09:19 +0000
commit6fc6d7fe4fb4945b44389aa34ed1174bc4defd69 (patch)
treee48d9ecf7859ceb09af8d290ee2d862ddbe31de1
parent4d4ef19c76cdb93865347529e21d609ad055ecda (diff)
downloadbusybox-w32-6fc6d7fe4fb4945b44389aa34ed1174bc4defd69.tar.gz
busybox-w32-6fc6d7fe4fb4945b44389aa34ed1174bc4defd69.tar.bz2
busybox-w32-6fc6d7fe4fb4945b44389aa34ed1174bc4defd69.zip
Patch from Bastian Blank (waldi) for debian installer
-rw-r--r--debian/changelog4
-rw-r--r--debian/config-deb1
-rw-r--r--debian/config-static16
-rw-r--r--debian/config-udeb35
-rw-r--r--debian/control18
-rwxr-xr-xdebian/rules179
6 files changed, 137 insertions, 116 deletions
diff --git a/debian/changelog b/debian/changelog
index cd9214460..35dd189b8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,9 @@
1busybox-unstable (1:0.61.pre.custom) unstable; urgency=low 1busybox-cvs (0.61.pre-custom1) unstable; urgency=low
2 2
3 * This is just to make it easier to make custom debs 3 * This is just to make it easier to make custom debs
4 * Replace this changelog before makeing offical debs 4 * Replace this changelog before makeing offical debs
5 5
6 -- Glenn McGrath <bug1@home> Thu, 28 Nov 2002 10:25:43 +1100 6 -- Bastian Blank <waldi@debian.org> Sun, 01 Dec 2002 02:02:46 +0100
7 7
8busybox (1:0.60.0-1) unstable; urgency=low 8busybox (1:0.60.0-1) unstable; urgency=low
9 9
diff --git a/debian/config-deb b/debian/config-deb
index e13ec7b30..0108108cd 100644
--- a/debian/config-deb
+++ b/debian/config-deb
@@ -300,6 +300,7 @@ CONFIG_WC=y
300CONFIG_DMESG=y 300CONFIG_DMESG=y
301# CONFIG_FBSET is not set 301# CONFIG_FBSET is not set
302# CONFIG_FDFLUSH is not set 302# CONFIG_FDFLUSH is not set
303# CONFIG_FDISK is not set
303# CONFIG_FREERAMDISK is not set 304# CONFIG_FREERAMDISK is not set
304# CONFIG_FSCK_MINIX is not set 305# CONFIG_FSCK_MINIX is not set
305# CONFIG_MKFS_MINIX is not set 306# CONFIG_MKFS_MINIX is not set
diff --git a/debian/config-static b/debian/config-static
index 62867fd8e..cecefa452 100644
--- a/debian/config-static
+++ b/debian/config-static
@@ -177,17 +177,10 @@ CONFIG_WATCHDOG=y
177# 177#
178# Module Utilities 178# Module Utilities
179# 179#
180CONFIG_INSMOD=y 180# CONFIG_INSMOD is not set
181CONFIG_LSMOD=y 181# CONFIG_LSMOD is not set
182CONFIG_MODPROBE=y 182# CONFIG_MODPROBE is not set
183CONFIG_RMMOD=y 183# CONFIG_RMMOD is not set
184# CONFIG_FEATURE_OLD_MODULE_INTERFACE is not set
185CONFIG_FEATURE_NEW_MODULE_INTERFACE=y
186CONFIG_FEATURE_NEW_MODULE_INTERFACE=y
187CONFIG_FEATURE_INSMOD_VERSION_CHECKING=y
188# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
189CONFIG_FEATURE_QUERY_MODULE_INTERFACE=y
190CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
191 184
192# 185#
193# Networking Utilities 186# Networking Utilities
@@ -357,6 +350,7 @@ CONFIG_FBSET=y
357CONFIG_FEATURE_FBSET_FANCY=y 350CONFIG_FEATURE_FBSET_FANCY=y
358CONFIG_FEATURE_FBSET_READMODE=y 351CONFIG_FEATURE_FBSET_READMODE=y
359CONFIG_FDFLUSH=y 352CONFIG_FDFLUSH=y
353# CONFIG_FDISK is not set
360CONFIG_FREERAMDISK=y 354CONFIG_FREERAMDISK=y
361CONFIG_FSCK_MINIX=y 355CONFIG_FSCK_MINIX=y
362CONFIG_MKFS_MINIX=y 356CONFIG_MKFS_MINIX=y
diff --git a/debian/config-udeb b/debian/config-udeb
index 207fba62f..8376ed090 100644
--- a/debian/config-udeb
+++ b/debian/config-udeb
@@ -121,7 +121,7 @@ CONFIG_FEATURE_USE_INITTAB=y
121CONFIG_FEATURE_INITRD=y 121CONFIG_FEATURE_INITRD=y
122# CONFIG_FEATURE_INIT_COREDUMPS is not set 122# CONFIG_FEATURE_INIT_COREDUMPS is not set
123# CONFIG_FEATURE_EXTRA_QUIET is not set 123# CONFIG_FEATURE_EXTRA_QUIET is not set
124# CONFIG_HALT is not set 124CONFIG_HALT=y
125# CONFIG_POWEROFF is not set 125# CONFIG_POWEROFF is not set
126CONFIG_REBOOT=y 126CONFIG_REBOOT=y
127# CONFIG_START_STOP_DAEMON is not set 127# CONFIG_START_STOP_DAEMON is not set
@@ -161,22 +161,16 @@ CONFIG_REBOOT=y
161# Module Utilities 161# Module Utilities
162# 162#
163# CONFIG_INSMOD is not set 163# CONFIG_INSMOD is not set
164CONFIG_LSMOD=y 164# CONFIG_LSMOD is not set
165# CONFIG_MODPROBE is not set 165# CONFIG_MODPROBE is not set
166# CONFIG_RMMOD is not set 166# CONFIG_RMMOD is not set
167# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
168 167
169# 168#
170# Networking Utilities 169# Networking Utilities
171# 170#
172# CONFIG_FEATURE_IPV6 is not set 171# CONFIG_FEATURE_IPV6 is not set
173# CONFIG_HOSTNAME is not set 172# CONFIG_HOSTNAME is not set
174CONFIG_IFCONFIG=y 173# CONFIG_IFCONFIG is not set
175CONFIG_FEATURE_IFCONFIG_STATUS=y
176# CONFIG_FEATURE_IFCONFIG_SLIP is not set
177CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y
178CONFIG_FEATURE_IFCONFIG_HW=y
179# CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS is not set
180# CONFIG_IFUPDOWN is not set 174# CONFIG_IFUPDOWN is not set
181CONFIG_IP=y 175CONFIG_IP=y
182CONFIG_FEATURE_IP_ADDRESS=y 176CONFIG_FEATURE_IP_ADDRESS=y
@@ -189,10 +183,10 @@ CONFIG_FEATURE_IP_ROUTE=y
189# CONFIG_NSLOOKUP is not set 183# CONFIG_NSLOOKUP is not set
190CONFIG_PING=y 184CONFIG_PING=y
191CONFIG_FEATURE_FANCY_PING=y 185CONFIG_FEATURE_FANCY_PING=y
192CONFIG_ROUTE=y 186# CONFIG_ROUTE is not set
193CONFIG_TELNET=y 187CONFIG_TELNET=y
194CONFIG_FEATURE_TELNET_TTYPE=y 188CONFIG_FEATURE_TELNET_TTYPE=y
195# CONFIG_TELNETD is not set 189CONFIG_TELNETD=y
196# CONFIG_TFTP is not set 190# CONFIG_TFTP is not set
197# CONFIG_TRACEROUTE is not set 191# CONFIG_TRACEROUTE is not set
198CONFIG_WGET=y 192CONFIG_WGET=y
@@ -222,20 +216,12 @@ CONFIG_PS=y
222# 216#
223# Bourne Shell 217# Bourne Shell
224# 218#
225CONFIG_FEATURE_SH_IS_ASH=y 219# CONFIG_FEATURE_SH_IS_ASH is not set
226# CONFIG_FEATURE_SH_IS_HUSH is not set 220# CONFIG_FEATURE_SH_IS_HUSH is not set
227# CONFIG_FEATURE_SH_IS_LASH is not set 221# CONFIG_FEATURE_SH_IS_LASH is not set
228# CONFIG_FEATURE_SH_IS_MSH is not set 222# CONFIG_FEATURE_SH_IS_MSH is not set
229# CONFIG_FEATURE_SH_IS_NONE is not set 223CONFIG_FEATURE_SH_IS_NONE=y
230CONFIG_ASH=y 224# CONFIG_ASH is not set
231CONFIG_ASH=y
232# CONFIG_ASH_JOB_CONTROL is not set
233CONFIG_ASH_ALIAS=y
234# CONFIG_ASH_MATH_SUPPORT is not set
235# CONFIG_ASH_GETOPTS is not set
236# CONFIG_ASH_CMDCMD is not set
237# CONFIG_ASH_MAIL is not set
238CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
239# CONFIG_HUSH is not set 225# CONFIG_HUSH is not set
240# CONFIG_LASH is not set 226# CONFIG_LASH is not set
241# CONFIG_MSH is not set 227# CONFIG_MSH is not set
@@ -291,11 +277,11 @@ CONFIG_SYSLOGD=y
291# 277#
292CONFIG_CAT=y 278CONFIG_CAT=y
293# CONFIG_CMP is not set 279# CONFIG_CMP is not set
294CONFIG_CUT=y 280# CONFIG_CUT is not set
295# CONFIG_DOS2UNIX is not set 281# CONFIG_DOS2UNIX is not set
296CONFIG_HEAD=y 282CONFIG_HEAD=y
297# CONFIG_LENGTH is not set 283# CONFIG_LENGTH is not set
298CONFIG_MD5SUM=y 284# CONFIG_MD5SUM is not set
299# CONFIG_OD is not set 285# CONFIG_OD is not set
300CONFIG_SORT=y 286CONFIG_SORT=y
301# CONFIG_FEATURE_SORT_REVERSE is not set 287# CONFIG_FEATURE_SORT_REVERSE is not set
@@ -314,6 +300,7 @@ CONFIG_WC=y
314CONFIG_DMESG=y 300CONFIG_DMESG=y
315# CONFIG_FBSET is not set 301# CONFIG_FBSET is not set
316# CONFIG_FDFLUSH is not set 302# CONFIG_FDFLUSH is not set
303# CONFIG_FDISK is not set
317CONFIG_FREERAMDISK=y 304CONFIG_FREERAMDISK=y
318# CONFIG_FSCK_MINIX is not set 305# CONFIG_FSCK_MINIX is not set
319# CONFIG_MKFS_MINIX is not set 306# CONFIG_MKFS_MINIX is not set
diff --git a/debian/control b/debian/control
index d619b82ba..5b9f8f676 100644
--- a/debian/control
+++ b/debian/control
@@ -1,21 +1,21 @@
1Source: busybox-unstable 1Source: busybox-cvs
2Priority: optional 2Priority: optional
3Maintainer: Erik Andersen <andersee@debian.org> 3Maintainer: Erik Andersen <andersee@debian.org>
4Build-Depends: debhelper (>= 2.1.18), dpkg-dev (>= 1.7.0) 4Build-Depends: debhelper (>= 2.1.18), dpkg-dev (>= 1.7.0)
5Build-Depends-Indep: sgmltools-lite, w3m 5Build-Depends-Indep: sgmltools-lite, w3m
6Standards-Version: 3.2.1.0 6Standards-Version: 3.2.1.0
7 7
8Package: busybox-unstable-doc 8Package: busybox-cvs-doc
9Architecture: all 9Architecture: all
10Section: doc 10Section: doc
11Description: Documentation for busybox 11Description: Documentation for busybox
12 Documentation in various formats on busybox commands and their options. 12 Documentation in various formats on busybox commands and their options.
13 13
14Package: busybox-unstable 14Package: busybox-cvs
15Architecture: any 15Architecture: any
16Depends: ${shlibs:Depends} 16Depends: ${shlibs:Depends}
17Conflicts: busybox-unstable-static, busybox, busybox-static 17Conflicts: busybox-cvs-static, busybox, busybox-static
18Replaces: busybox-unstable-static, busybox, busybox-static 18Replaces: busybox-cvs-static, busybox, busybox-static
19Section: utils 19Section: utils
20Description: Tiny utilities for small and embedded systems. 20Description: Tiny utilities for small and embedded systems.
21 BusyBox combines tiny versions of many common UNIX utilities into a single 21 BusyBox combines tiny versions of many common UNIX utilities into a single
@@ -31,11 +31,11 @@ Description: Tiny utilities for small and embedded systems.
31 to install BusyBox to the current directory (you do not want to do this 31 to install BusyBox to the current directory (you do not want to do this
32 in / on your Debian system!). 32 in / on your Debian system!).
33 33
34Package: busybox-unstable-static 34Package: busybox-cvs-static
35Architecture: any 35Architecture: any
36Depends: ${shlibs:Depends} 36Depends: ${shlibs:Depends}
37Conflicts: busybox-unstable, busybox-static, busybox 37Conflicts: busybox-cvs, busybox-static, busybox
38Replaces: busybox-unstable, busybox-static, busybox 38Replaces: busybox-cvs, busybox-static, busybox
39Section: shells 39Section: shells
40Description: Standalone rescue shell with tons of builtin utilities. 40Description: Standalone rescue shell with tons of builtin utilities.
41 BusyBox combines tiny versions of many common UNIX utilities into a single 41 BusyBox combines tiny versions of many common UNIX utilities into a single
@@ -53,7 +53,7 @@ Description: Standalone rescue shell with tons of builtin utilities.
53 your system from certain destruction. Invoke "busybox", and it will list the 53 your system from certain destruction. Invoke "busybox", and it will list the
54 available builtin commands. 54 available builtin commands.
55 55
56Package: busybox-unstable-udeb 56Package: busybox-cvs-udeb
57Architecture: any 57Architecture: any
58Depends: ${shlibs:Depends} 58Depends: ${shlibs:Depends}
59Section: debian-installer 59Section: debian-installer
diff --git a/debian/rules b/debian/rules
index a15ddef41..5c2bcf207 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,90 +1,129 @@
1#!/usr/bin/make -f 1#!/usr/bin/make -f
2 2
3export DH_VERBOSE=1 3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
6# This is the debhelper compatibility version to use.
4export DH_COMPAT=3 7export DH_COMPAT=3
5 8
6# These wont actually do anything yet, need to hack Rules.mak 9VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
10ARCH = $(shell dpkg --print-architecture)
11
7ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) 12ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
8 CFLAGS += -g 13 DODEBUG = true
9endif 14endif
10ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) 15ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
11 INSTALL_PROGRAM += -s 16 DODEBUG = true
12endif 17endif
13 18
14busybox-deb: 19build-arch: build-arch-stamp
15 dh_testdir 20build-arch-stamp:
16 dh_testroot
17 $(MAKE) clean 21 $(MAKE) clean
18 cp ./debian/config-deb .config 22 cp ./debian/config-deb .config
19 cp ./debian/Rules.mak.shared Rules.mak
20 $(MAKE) dep 23 $(MAKE) dep
21 $(MAKE) 24 $(MAKE) DODEBUG=$(DODEBUG)
22 install -D busybox ./debian/busybox-unstable/bin/busybox 25 install busybox busybox-deb
23 dh_installchangelogs Changelog -pbusybox-unstable 26
24 dh_installdocs -pbusybox-unstable 27 $(MAKE) clean
25 dh_strip -pbusybox-unstable 28 cp ./debian/config-static .config
26 dh_compress -pbusybox-unstable 29 $(MAKE) dep
27 dh_fixperms -pbusybox-unstable 30 $(MAKE) DOSTATIC=true DODEBUG=$(DODEBUG)
28 dh_installdeb -pbusybox-unstable 31 install busybox busybox-static
29 dh_shlibdeps -pbusybox-unstable 32
30 dh_gencontrol -pbusybox-unstable
31 dh_md5sums -pbusybox-unstable
32 dh_builddeb -pbusybox-unstable
33
34busybox-udeb:
35 dh_testdir
36 dh_testroot
37 $(MAKE) clean 33 $(MAKE) clean
38 cp ./debian/config-udeb .config 34 cp ./debian/config-udeb .config
39 cp ./debian/Rules.mak.shared Rules.mak
40 $(MAKE) dep 35 $(MAKE) dep
41 $(MAKE) 36 $(MAKE) DODEBUG=$(DODEBUG)
42 $(MAKE) PREFIX=./debian/busybox-udeb/ install 37
43 dh_strip -pbusybox-unstable-udeb 38 touch build-arch-stamp
44 dh_compress -pbusybox-unstable-udeb 39
45 dh_fixperms -pbusybox-unstable-udeb 40build-indep: build-indep-stamp
46 dh_installdeb -pbusybox-unstable-udeb 41build-indep-stamp:
47 dh_shlibdeps -pbusybox-unstable-udeb 42 $(MAKE) newdoc
48 dh_gencontrol -pbusybox-unstable-udeb 43
49 dh_md5sums -pbusybox-unstable-udeb 44 touch build-indep-stamp
50 dh_builddeb -pbusybox-unstable-udeb 45
51 46build: build-arch build-indep
52 47
53busybox-static: 48clean:
54 dh_testdir 49 dh_testdir
55 dh_testroot 50 dh_testroot
56 $(MAKE) clean 51 rm -f build-arch-stamp build-indep-stamp
57 cp ./debian/config-static .config 52
58 cp ./debian/Rules.mak.static Rules.mak 53 $(MAKE) distclean
59 $(MAKE) dep 54 -rm -f busybox-deb busybox-static
60 $(MAKE) 55
61 install -D busybox ./debian/busybox-unstable-static/bin/busybox 56 dh_clean
62 dh_installchangelogs Changelog -pbusybox-unstable-static 57
63 dh_installdocs -pbusybox-unstable-static 58install: build-arch
64 dh_strip -pbusybox-unstable-static
65 dh_compress -pbusybox-unstable-static
66 dh_fixperms -pbusybox-unstable-static
67 dh_installdeb -pbusybox-unstable-static
68 dh_shlibdeps -pbusybox-unstable-static
69 dh_gencontrol -pbusybox-unstable-static
70 dh_md5sums -pbusybox-unstable-static
71 dh_builddeb -pbusybox-unstable-static
72
73binary-arch: busybox-deb busybox-udeb busybox-static
74
75binary-indep:
76 dh_testdir 59 dh_testdir
77 dh_testroot 60 dh_testroot
78 $(MAKE) clean 61 dh_clean -k
79 $(MAKE) newdoc 62 dh_installdirs
80 dh_installdocs -pbusybox-unstable-doc 63
81 dh_installchangelogs Changelog -pbusybox-unstable-doc 64 install busybox-deb $(CURDIR)/debian/busybox-cvs/bin/busybox
82 dh_compress -pbusybox-unstable-doc 65 install busybox-static $(CURDIR)/debian/busybox-cvs-static/bin/busybox
83 dh_fixperms -pbusybox-unstable-doc 66 $(MAKE) PREFIX=$(CURDIR)/debian/busybox-cvs-udeb install
84 dh_installdeb -pbusybox-unstable-doc 67
85 dh_gencontrol -pbusybox-unstable-doc 68# Build architecture-independent files here.
86 dh_md5sums -pbusybox-unstable-doc 69# Pass -i to all debhelper commands in this target to reduce clutter.
87 dh_builddeb -pbusybox-unstable-doc 70binary-indep: build
71 dh_testdir -i
72 dh_testroot -i
73# dh_installdebconf -i
74 dh_installdocs -i
75# dh_installexamples -i
76# dh_installmenu -i
77# dh_installlogrotate -i
78# dh_installemacsen -i
79# dh_installpam -i
80# dh_installmime -i
81# dh_installinit -i
82# dh_installcron -i
83# dh_installman -i
84# dh_installinfo -i
85# dh_undocumented -i
86 dh_installchangelogs Changelog -i
87 dh_link -i
88 dh_compress -i
89 dh_fixperms -i
90 dh_installdeb -i
91# dh_perl -i
92 dh_gencontrol -i
93 dh_md5sums -i
94 dh_builddeb -i
95
96# Build architecture-dependent files here.
97binary-arch: build-arch install
98 dh_testdir -a
99 dh_testroot -a
100# dh_installdebconf -a
101 dh_installdocs -a -Nbusybox-cvs-udeb
102# dh_installexamples -a
103# dh_installmenu -a
104# dh_installlogrotate -a
105# dh_installemacsen -a
106# dh_installpam -a
107# dh_installmime -a
108# dh_installinit -a
109# dh_installcron -a
110# dh_installman -a
111# dh_installinfo -a
112# dh_undocumented -a
113 dh_installchangelogs Changelog -a -Nbusybox-cvs-udeb
114 dh_strip -a
115 dh_link -a
116 dh_compress -a
117 dh_fixperms -a
118# dh_makeshlibs -a
119 dh_installdeb -a
120# dh_perl -a
121 dh_shlibdeps -a
122 dh_gencontrol -a
123 dh_md5sums -a -Nbusybox-cvs-udeb
124 dh_builddeb -a -Nbusybox-cvs-udeb
125 dpkg-distaddfile busybox-cvs-udeb-$(VERSION)_$(ARCH).udeb debian-installer optional
126 dh_builddeb -pbusybox-cvs-udeb --filename=busybox-cvs-udeb-$(VERSION)_$(ARCH).udeb
88 127
89binary: binary-indep binary-arch 128binary: binary-indep binary-arch
90.PHONY: build clean binary-indep binary-arch binary install configure 129.PHONY: build clean binary-indep binary-arch binary install