[oe-commits] org.oe.dev busybox: unify

Laibsch commit openembedded-commits at lists.openembedded.org
Tue Dec 19 13:55:19 UTC 2006


busybox: unify

Author: Laibsch at openembedded.org
Branch: org.openembedded.dev
Revision: 1df6d041b2c60bf99f158bc629911c2bd43cb76b
ViewMTN: http://monotone.openembedded.org/revision.psp?id=1df6d041b2c60bf99f158bc629911c2bd43cb76b
Files:
1
packages/busybox/busybox.inc
packages/busybox/busybox_1.00.bb
packages/busybox/busybox_1.01.bb
packages/busybox/busybox_1.2.0.bb
packages/busybox/busybox_1.2.1.bb
packages/busybox/busybox_1.2.2.bb
Diffs:

#
# mt diff -rf9c74af4fdbb5a7f4683a09277fb938c3a2dd987 -r1df6d041b2c60bf99f158bc629911c2bd43cb76b
#
# 
# 
# add_file "packages/busybox/busybox.inc"
#  content [71d37b6cf563ebb8043c6c2916ff7ad25691edeb]
# 
# patch "packages/busybox/busybox_1.00.bb"
#  from [41ad13a8a72bcad463b63f3497460961e8c96d9d]
#    to [085ca9aecedbf27ede29225e2c0e25094d39c1a6]
# 
# patch "packages/busybox/busybox_1.01.bb"
#  from [d097d7782fd60adb5bfd5c2d8af0e1e39c5805dd]
#    to [2b9c50992c8297fd1abe21c416e71f0d9c628398]
# 
# patch "packages/busybox/busybox_1.2.0.bb"
#  from [a59cd819245b5ee793e5c0e4a33af4c346bd8a92]
#    to [f7fbba74124ad5b4a485f974b260f3e1604ea2f0]
# 
# patch "packages/busybox/busybox_1.2.1.bb"
#  from [5d3106125139a954aad4ece8168baf6fbe5ae531]
#    to [cee068273ebb49d33d57652d7165455d745da0b7]
# 
# patch "packages/busybox/busybox_1.2.2.bb"
#  from [8d7f6023deed912b5e3a09c652d6be64ab06e70d]
#    to [8d853baa83616ca275cfd2f3c52321b38bb8abb9]
# 
============================================================
--- packages/busybox/busybox.inc	71d37b6cf563ebb8043c6c2916ff7ad25691edeb
+++ packages/busybox/busybox.inc	71d37b6cf563ebb8043c6c2916ff7ad25691edeb
@@ -0,0 +1,64 @@
+DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into a single \
+small executable. It provides minimalist replacements for most of the \
+utilities you usually find in GNU fileutils, shellutils, 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 \
+provides a fairly complete POSIX environment for any small or embedded \
+system."
+HOMEPAGE = "http://www.busybox.net"
+LICENSE = "GPL"
+SECTION = "base"
+PRIORITY = "required"
+
+SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
+           file://busybox-cron \
+	   file://busybox-httpd \
+	   file://busybox-udhcpd \
+	   file://default.script \
+	   file://dhcp-hostname.patch;patch=1 \
+           file://hwclock.sh \
+	   file://ifupdown-spurious-environ.patch;patch=1 \
+	   file://mount.busybox \
+	   file://syslog \
+	   file://syslog.conf \
+	   file://udhcpscript.patch;patch=1 \
+	   file://umount.busybox"
+
+SRC_URI_append_nylon = " file://xargs-double-size.patch;patch=1"
+
+export EXTRA_CFLAGS = "${CFLAGS}"
+EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
+PACKAGES =+ "${PN}-httpd ${PN}-udhcpd"
+
+FILES_${PN}-httpd = "${sysconfdir}/init.d/busybox-httpd /srv/www"
+FILES_${PN}-udhcpd = "${sysconfdir}/init.d/busybox-udhcpd"
+
+FILES_${PN} += " ${datadir}/udhcpc"
+
+INITSCRIPT_PACKAGES = "${PN} ${PN}-httpd ${PN}-udhcpd"
+INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd"
+INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd" 
+INITSCRIPT_NAME_${PN} = "syslog"
+CONFFILES_${PN} = "${sysconfdir}/syslog.conf"
+
+# This disables the syslog startup links in openslug (see openslug-init)
+INITSCRIPT_PARAMS_${PN}_openslug = "start 20 ."
+
+inherit cml1 update-rc.d
+
+do_compile () {
+	unset CFLAGS
+	base_do_compile
+}
+
+pkg_postinst_${PN} () {
+	# If we are not making an image we create links for the utilities that doesn't exist
+	# so the update-alternatives script will get the utilities it needs
+	# (update-alternatives have no problem replacing links later anyway)
+	test -n 2> /dev/null || alias test='busybox test'
+	if test "x$D" = "x"; then while read link; do if test ! -h "$link"; then case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; busybox ln -s $to $link; fi; done </etc/busybox.links; fi
+	
+	# This adds the links, remember that this has to work when building an image too, hence the $D
+	while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 50; done <$D/etc/busybox.links
+}
============================================================
--- packages/busybox/busybox_1.00.bb	41ad13a8a72bcad463b63f3497460961e8c96d9d
+++ packages/busybox/busybox_1.00.bb	085ca9aecedbf27ede29225e2c0e25094d39c1a6
@@ -1,85 +1,36 @@
-DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into a single \
-small executable. It provides minimalist replacements for most of the \
-utilities you usually find in GNU fileutils, shellutils, 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 \
-provides a fairly complete POSIX environment for any small or embedded \
-system."
-HOMEPAGE = "http://www.busybox.net"
-LICENSE = "GPL"
-SECTION = "base"
-PRIORITY = "required"
+require busybox.inc
+
 PR = "r37"
 
-SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
-           file://add-getkey-applet.patch;patch=1 \
-	   file://udhcpscript.patch;patch=1 \
-	   file://dhcpretrytime.patch;patch=1 \
-	   file://hdparm_M.patch;patch=1 \
-	   file://udhcppidfile.patch;patch=1 \
-	   file://udhcppidfile-breakage.patch;patch=1 \
-	   file://readlink.patch;patch=1 \
-	   file://iproute-flush-cache.patch;patch=1;pnum=0 \
-	   file://rmmod.patch;patch=1 \
-	   file://df.patch;patch=1 \
-	   file://below.patch;patch=1 \
-	   file://fbset.patch;patch=1 \
-	   file://mount-all-type.patch;patch=1 \
-	   file://dhcp-hostname.patch;patch=1 \
-	   file://gzip-spurious-const.patch;patch=1 \
-	   file://ifupdown-spurious-environ.patch;patch=1 \
-           file://uclibc_posix.patch;patch=1 \
-	   file://unzip-enhancement-and-fixes.patch;patch=1;pnum=0 \
-	   file://unzip-endian-fixes.patch;patch=1;pnum=0 \
-	   file://start-stop-daemon-oknodo-support.patch;patch=1 \
+SRC_URI += "file://add-getkey-applet.patch;patch=1 \
+           file://below.patch;patch=1 \
            file://defconfig \
-           file://busybox-cron \
-	   file://busybox-httpd \
-	   file://busybox-udhcpd \
-	   file://syslog \
-           file://hwclock.sh \
-	   file://default.script \
-	   file://syslog.conf \
-	   file://mount.busybox \
-	   file://umount.busybox"
+           file://df.patch;patch=1 \
+           file://dhcpretrytime.patch;patch=1 \
+           file://fbset.patch;patch=1 \
+           file://gzip-spurious-const.patch;patch=1 \
+           file://hdparm_M.patch;patch=1 \
+           file://iproute-flush-cache.patch;patch=1;pnum=0 \
+           file://mount-all-type.patch;patch=1 \
+           file://readlink.patch;patch=1 \
+           file://rmmod.patch;patch=1 \
+           file://start-stop-daemon-oknodo-support.patch;patch=1 \
+           file://uclibc_posix.patch;patch=1 \
+           file://udhcppidfile-breakage.patch;patch=1 \
+           file://udhcppidfile.patch;patch=1 \
+           file://unzip-endian-fixes.patch;patch=1;pnum=0 \
+           file://unzip-enhancement-and-fixes.patch;patch=1;pnum=0"
 
-SRC_URI_append_nylon = " file://xargs-double-size.patch;patch=1"
 SRC_URI_append_mtx-1 = " file://linux-types.patch;patch=1"
 SRC_URI_append_mtx-2 = " file://linux-types.patch;patch=1"
 
 S = "${WORKDIR}/busybox-${PV}"
 
-export EXTRA_CFLAGS = "${CFLAGS}"
-EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
-PACKAGES =+ "${PN}-httpd ${PN}-udhcpd"
-
-FILES_${PN}-httpd = "${sysconfdir}/init.d/busybox-httpd /srv/www"
-FILES_${PN}-udhcpd = "${sysconfdir}/init.d/busybox-udhcpd"
-
-FILES_${PN} += " ${datadir}/udhcpc"
-
-INITSCRIPT_PACKAGES = "${PN} ${PN}-httpd ${PN}-udhcpd"
-INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd"
-INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd" 
-INITSCRIPT_NAME_${PN} = "syslog"
-CONFFILES_${PN} = "${sysconfdir}/syslog.conf"
-
-# This disables the syslog startup links in slugos (see slugos-init)
-INITSCRIPT_PARAMS_${PN}_slugos = "start 20 ."
-
-inherit cml1 update-rc.d
-
 do_configure () {
 	install -m 0644 ${WORKDIR}/defconfig ${S}/.config
 	cml1_do_configure
 }
 
-do_compile () {
-	unset CFLAGS
-	base_do_compile
-}
-
 do_install () {
 	install -d ${D}${sysconfdir}/init.d
 	oe_runmake 'PREFIX=${D}' install
@@ -138,17 +89,6 @@ do_install () {
 	install -m 0644 ${S}/busybox.links ${D}${sysconfdir}
 }
 
-pkg_postinst_${PN} () {
-	# If we are not making an image we create links for the utilities that doesn't exist
-	# so the update-alternatives script will get the utilities it needs
-	# (update-alternatives have no problem replacing links later anyway)
-	test -n 2> /dev/null || alias test='busybox test'
-	if test "x$D" = "x"; then while read link; do if test ! -h "$link"; then case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; busybox ln -s $to $link; fi; done </etc/busybox.links; fi
-	
-	# This adds the links, remember that this has to work when building an image too, hence the $D
-	while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 50; done <$D/etc/busybox.links
-}
-
 pkg_prerm_${PN} () {
 	# This is so you can make busybox commit suicide - removing busybox with no other packages
 	# providing its files, this will make update-alternatives work, but the update-rc.d part
============================================================
--- packages/busybox/busybox_1.01.bb	d097d7782fd60adb5bfd5c2d8af0e1e39c5805dd
+++ packages/busybox/busybox_1.01.bb	2b9c50992c8297fd1abe21c416e71f0d9c628398
@@ -1,81 +1,32 @@
-DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into a single \
-small executable. It provides minimalist replacements for most of the \
-utilities you usually find in GNU fileutils, shellutils, 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 \
-provides a fairly complete POSIX environment for any small or embedded \
-system."
-HOMEPAGE = "http://www.busybox.net"
-LICENSE = "GPL"
-SECTION = "base"
-PRIORITY = "required"
+require busybox.inc
+
 PR = "r12"
 
-SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
-	   file://udhcppidfile.patch;patch=1 \
-	   file://udhcppidfile-breakage.patch;patch=1 \
-           file://add-getkey-applet.patch;patch=1 \
-	   file://below.patch;patch=1 \
-	   file://dhcp-hostname.patch;patch=1 \
-	   file://dhcpretrytime.patch;patch=1 \
-	   file://fbset.patch;patch=1 \
-	   file://hdparm_M.patch;patch=1 \
-	   file://ifupdown-spurious-environ.patch;patch=1 \
-	   file://iproute-flush-cache.patch;patch=1;pnum=0 \
-	   file://mount-all-type.patch;patch=1 \
-	   file://readlink.patch;patch=1 \
-	   file://rmmod.patch;patch=1 \
-	   file://udhcpscript.patch;patch=1 \
-	   file://thumb-bsdlabel.patch;patch=1 \
-	   file://glibc2.4-icmp6.patch;patch=1 \
-           file://uclibc_posix.patch;patch=1 \
+SRC_URI += "file://add-getkey-applet.patch;patch=1 \
+           file://below.patch;patch=1 \
            file://defconfig \
-           file://busybox-cron \
-	   file://busybox-httpd \
-	   file://busybox-udhcpd \
-	   file://syslog \
-           file://hwclock.sh \
-	   file://default.script \
-	   file://syslog.conf \
-	   file://mount.busybox \
-	   file://umount.busybox"
+           file://dhcpretrytime.patch;patch=1 \
+           file://fbset.patch;patch=1 \
+           file://glibc2.4-icmp6.patch;patch=1 \
+           file://hdparm_M.patch;patch=1 \
+           file://iproute-flush-cache.patch;patch=1;pnum=0 \
+           file://mount-all-type.patch;patch=1 \
+           file://readlink.patch;patch=1 \
+           file://rmmod.patch;patch=1 \
+           file://thumb-bsdlabel.patch;patch=1 \
+           file://uclibc_posix.patch;patch=1 \
+           file://udhcppidfile-breakage.patch;patch=1 \
+           file://udhcppidfile.patch;patch=1"
 
 SRC_URI_append_slugos += " file://sysctl.conf "
-SRC_URI_append_nylon = " file://xargs-double-size.patch;patch=1"
 
 S = "${WORKDIR}/busybox-${PV}"
 
-export EXTRA_CFLAGS = "${CFLAGS}"
-EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
-PACKAGES =+ "${PN}-httpd ${PN}-udhcpd"
-
-FILES_${PN}-httpd = "${sysconfdir}/init.d/busybox-httpd /srv/www"
-FILES_${PN}-udhcpd = "${sysconfdir}/init.d/busybox-udhcpd"
-
-FILES_${PN} += " ${datadir}/udhcpc"
-
-INITSCRIPT_PACKAGES = "${PN} ${PN}-httpd ${PN}-udhcpd"
-INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd"
-INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd" 
-INITSCRIPT_NAME_${PN} = "syslog"
-CONFFILES_${PN} = "${sysconfdir}/syslog.conf"
-
-# This disables the syslog startup links in slugos (see slugos-init)
-INITSCRIPT_PARAMS_${PN}_slugos = "start 20 ."
-
-inherit cml1 update-rc.d
-
 do_configure () {
 	install -m 0644 ${WORKDIR}/defconfig ${S}/.config
 	cml1_do_configure
 }
 
-do_compile () {
-	unset CFLAGS
-	base_do_compile
-}
-
 do_install () {
 	install -d ${D}${sysconfdir}/init.d
 	oe_runmake 'PREFIX=${D}' install
@@ -138,17 +89,6 @@ do_install_append_slugos() {
 	install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}
 }
 
-pkg_postinst_${PN} () {
-	# If we are not making an image we create links for the utilities that doesn't exist
-	# so the update-alternatives script will get the utilities it needs
-	# (update-alternatives have no problem replacing links later anyway)
-	test -n 2> /dev/null || alias test='busybox test'
-	if test "x$D" = "x"; then while read link; do if test ! -h "$link"; then case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; busybox ln -s $to $link; fi; done </etc/busybox.links; fi
-	
-	# This adds the links, remember that this has to work when building an image too, hence the $D
-	while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 50; done <$D/etc/busybox.links
-}
-
 pkg_prerm_${PN} () {
 	# This is so you can make busybox commit suicide - removing busybox with no other packages
 	# providing its files, this will make update-alternatives work, but the update-rc.d part
============================================================
--- packages/busybox/busybox_1.2.0.bb	a59cd819245b5ee793e5c0e4a33af4c346bd8a92
+++ packages/busybox/busybox_1.2.0.bb	f7fbba74124ad5b4a485f974b260f3e1604ea2f0
@@ -1,63 +1,11 @@
-DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into a single \
-small executable. It provides minimalist replacements for most of the \
-utilities you usually find in GNU fileutils, shellutils, 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 \
-provides a fairly complete POSIX environment for any small or embedded \
-system."
-HOMEPAGE = "http://www.busybox.net"
-LICENSE = "GPL"
-SECTION = "base"
-PRIORITY = "required"
-PR = "r1"
+require busybox.inc
 
-SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
-#	   file://udhcppidfile.patch;patch=1 \
-#	   file://udhcppidfile-breakage.patch;patch=1 \
-#	   file://below.patch;patch=1 \
-	   file://dhcp-hostname.patch;patch=1 \
-#	   file://fbset.patch;patch=1 \
-#	   file://hdparm_M.patch;patch=1 \
-	   file://ifupdown-spurious-environ.patch;patch=1 \
-#	   file://mount-all-type.patch;patch=1 \
-#	   file://rmmod.patch;patch=1 \
-	   file://udhcpscript.patch;patch=1 \
-           file://defconfig \
-           file://busybox-cron \
-	   file://busybox-httpd \
-	   file://busybox-udhcpd \
-	   file://syslog \
-           file://hwclock.sh \
-	   file://default.script \
-	   file://syslog.conf \
-	   file://mount.busybox \
-	   file://umount.busybox"
+PR = "r1"
 
-SRC_URI_append_nylon = " file://xargs-double-size.patch;patch=1"
+SRC_URI += "file://defconfig"
 
 S = "${WORKDIR}/busybox-1.2.0"
 
-export EXTRA_CFLAGS = "${CFLAGS}"
-EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
-PACKAGES =+ "${PN}-httpd ${PN}-udhcpd"
-
-FILES_${PN}-httpd = "${sysconfdir}/init.d/busybox-httpd /srv/www"
-FILES_${PN}-udhcpd = "${sysconfdir}/init.d/busybox-udhcpd"
-
-FILES_${PN} += " ${datadir}/udhcpc"
-
-INITSCRIPT_PACKAGES = "${PN} ${PN}-httpd ${PN}-udhcpd"
-INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd"
-INITSCRIPT%s
>>> DIFF TRUNCATED @ 16K






More information about the Openembedded-commits mailing list