summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-12-19 14:18:17 +0000
committerRod Whitby <rod@whitby.id.au>2006-12-19 14:18:17 +0000
commitf21938dfe001bd4573fce53cc1343082f8822d39 (patch)
tree7f15448c06eb96a1115fe9c1ae31e81c65822f39
parent0e23ba5414db61ccfd8a07d7ce59aefa08880053 (diff)
parent8997c7132b2f2c681a25869862787bbfcb2a1baf (diff)
merge of 03286e05287c9be2dc05021f2b6006efd7d30f3a
and a6590ff2f21ebb43ab29209d0580dc897c1c1993
-rw-r--r--packages/atk/atk.inc13
-rw-r--r--packages/atk/atk_1.10.3.bb18
-rw-r--r--packages/atk/atk_1.2.0.bb15
-rw-r--r--packages/atk/atk_1.6.0.bb14
-rw-r--r--packages/atk/atk_1.6.1.bb14
-rw-r--r--packages/atk/atk_1.9.0.bb18
-rw-r--r--packages/btsco/btsco-module.inc19
-rw-r--r--packages/btsco/btsco-module_0.41.bb21
-rw-r--r--packages/btsco/btsco-module_0.42.bb21
-rw-r--r--packages/btsco/btsco.inc12
-rw-r--r--packages/btsco/btsco_0.41.bb12
-rw-r--r--packages/btsco/btsco_0.42.bb14
-rw-r--r--packages/busybox/busybox.inc64
-rw-r--r--packages/busybox/busybox_1.00.bb98
-rw-r--r--packages/busybox/busybox_1.01.bb92
-rw-r--r--packages/busybox/busybox_1.2.0.bb74
-rw-r--r--packages/busybox/busybox_1.2.1.bb69
-rw-r--r--packages/busybox/busybox_1.2.2.bb69
18 files changed, 169 insertions, 488 deletions
diff --git a/packages/atk/atk.inc b/packages/atk/atk.inc
new file mode 100644
index 0000000000..c4878d87ce
--- /dev/null
+++ b/packages/atk/atk.inc
@@ -0,0 +1,13 @@
+DEPENDS = "glib-2.0 gtk-doc"
+DESCRIPTION = "An accessibility toolkit for GNOME."
+SECTION = "x11/libs"
+PRIORITY = "optional"
+LICENSE = "LGPL"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-glibtest"
+
+CFLAGS_append = " -I${STAGING_INCDIR}/glib-2.0 \
+ -I${STAGING_INCDIR}/glib-2.0/glib \
+ -I${STAGING_INCDIR}/glib-2.0/gobject"
diff --git a/packages/atk/atk_1.10.3.bb b/packages/atk/atk_1.10.3.bb
index d04b943557..ab359172a1 100644
--- a/packages/atk/atk_1.10.3.bb
+++ b/packages/atk/atk_1.10.3.bb
@@ -1,20 +1,8 @@
-DEPENDS = "glib-2.0 gtk-doc"
-DESCRIPTION = "An accessibility toolkit for GNOME."
-SECTION = "x11/libs"
-PRIORITY = "optional"
-LICENSE = "LGPL"
+require atk.inc
SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.8/atk-${PV}.tar.bz2"
-inherit autotools pkgconfig
-
-EXTRA_OECONF = "--disable-glibtest"
-
-CFLAGS_append = " -I${STAGING_INCDIR}/glib-2.0 \
- -I${STAGING_INCDIR}/glib-2.0/glib \
- -I${STAGING_INCDIR}/glib-2.0/gobject"
-
do_stage () {
- oe_libinstall -so -C atk libatk-1.0 ${STAGING_LIBDIR}
- autotools_stage_includes
+ oe_libinstall -so -C atk libatk-1.0 ${STAGING_LIBDIR}
+ autotools_stage_includes
}
diff --git a/packages/atk/atk_1.2.0.bb b/packages/atk/atk_1.2.0.bb
index 37e9fd1a2e..767c13fb4d 100644
--- a/packages/atk/atk_1.2.0.bb
+++ b/packages/atk/atk_1.2.0.bb
@@ -1,19 +1,8 @@
-DEPENDS = "glib-2.0"
-DESCRIPTION = "An accessibility toolkit for GNOME."
-SECTION = "x11/libs"
-LICENSE = "LGPL"
+require atk.inc
-SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/atk/1.2/atk-${PV}.tar.bz2 \
+SRC_URI = "${GNOME_MIRROR}/atk/1.2/atk-${PV}.tar.bz2 \
file://m4.patch;patch=1"
-inherit autotools pkgconfig
-
-EXTRA_OECONF = "--disable-glibtest"
-
-CFLAGS_append = " -I${STAGING_INCDIR}/glib-2.0 \
- -I${STAGING_INCDIR}/glib-2.0/glib \
- -I${STAGING_INCDIR}/glib-2.0/gobject"
-
do_stage () {
oe_libinstall -so -C atk libatk-1.0 ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/atk
diff --git a/packages/atk/atk_1.6.0.bb b/packages/atk/atk_1.6.0.bb
index 1511da84d0..320a205d9f 100644
--- a/packages/atk/atk_1.6.0.bb
+++ b/packages/atk/atk_1.6.0.bb
@@ -1,20 +1,8 @@
-DEPENDS = "glib-2.0"
-DESCRIPTION = "An accessibility toolkit for GNOME."
-SECTION = "x11/libs"
-PRIORITY = "optional"
-LICENSE = "LGPL"
+require atk.inc
SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.4/atk-${PV}.tar.bz2 \
file://gtk-doc.patch;patch=1"
-inherit autotools pkgconfig
-
-EXTRA_OECONF = "--disable-glibtest"
-
-CFLAGS_append = " -I${STAGING_INCDIR}/glib-2.0 \
- -I${STAGING_INCDIR}/glib-2.0/glib \
- -I${STAGING_INCDIR}/glib-2.0/gobject"
-
do_stage () {
oe_libinstall -so -C atk libatk-1.0 ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/atk
diff --git a/packages/atk/atk_1.6.1.bb b/packages/atk/atk_1.6.1.bb
index 9344d747b2..afc21753d5 100644
--- a/packages/atk/atk_1.6.1.bb
+++ b/packages/atk/atk_1.6.1.bb
@@ -1,19 +1,7 @@
-DEPENDS = "glib-2.0 gtk-doc"
-DESCRIPTION = "An accessibility toolkit for GNOME."
-SECTION = "x11/libs"
-PRIORITY = "optional"
-LICENSE = "LGPL"
+require atk.inc
SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.4/atk-${PV}.tar.bz2"
-inherit autotools pkgconfig
-
-EXTRA_OECONF = "--disable-glibtest"
-
-CFLAGS_append = " -I${STAGING_INCDIR}/glib-2.0 \
- -I${STAGING_INCDIR}/glib-2.0/glib \
- -I${STAGING_INCDIR}/glib-2.0/gobject"
-
do_stage () {
oe_libinstall -so -C atk libatk-1.0 ${STAGING_LIBDIR}
autotools_stage_includes
diff --git a/packages/atk/atk_1.9.0.bb b/packages/atk/atk_1.9.0.bb
index 2dd743e146..557858318d 100644
--- a/packages/atk/atk_1.9.0.bb
+++ b/packages/atk/atk_1.9.0.bb
@@ -1,20 +1,8 @@
-DEPENDS = "glib-2.0 gtk-doc"
-DESCRIPTION = "An accessibility toolkit for GNOME."
-SECTION = "x11/libs"
-PRIORITY = "optional"
-LICENSE = "LGPL"
+require atk.inc
SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/atk-${PV}.tar.bz2"
-inherit autotools pkgconfig
-
-EXTRA_OECONF = "--disable-glibtest"
-
-CFLAGS_append = " -I${STAGING_INCDIR}/glib-2.0 \
- -I${STAGING_INCDIR}/glib-2.0/glib \
- -I${STAGING_INCDIR}/glib-2.0/gobject"
-
do_stage () {
- oe_libinstall -so -C atk libatk-1.0 ${STAGING_LIBDIR}
- autotools_stage_includes
+ oe_libinstall -so -C atk libatk-1.0 ${STAGING_LIBDIR}
+ autotools_stage_includes
}
diff --git a/packages/btsco/btsco-module.inc b/packages/btsco/btsco-module.inc
new file mode 100644
index 0000000000..5c38fb1719
--- /dev/null
+++ b/packages/btsco/btsco-module.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "Bluetooth-alsa headset module"
+SECTION = "kernel/modules"
+HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
+LICENSE = "GPL"
+DEPENDS = "alsa-lib bluez-libs"
+
+inherit module
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz \
+ file://makefile.patch;patch=1"
+
+S = "${WORKDIR}/btsco-${PV}/kernel"
+
+MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'"
+
+do_install() {
+ install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
+ install -m 0644 ${S}/snd-bt-sco${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
+}
diff --git a/packages/btsco/btsco-module_0.41.bb b/packages/btsco/btsco-module_0.41.bb
index 4122bf86c4..46f647998b 100644
--- a/packages/btsco/btsco-module_0.41.bb
+++ b/packages/btsco/btsco-module_0.41.bb
@@ -1,20 +1,3 @@
-DESCRIPTION = "Bluetooth-alsa headset module"
-SECTION = "kernel/modules"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r1"
-
-inherit module
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-0.41.tar.gz \
- file://makefile.patch;patch=1"
+require btsco-module.inc
-S = "${WORKDIR}/btsco-${PV}/kernel"
-
-MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'"
-
-do_install() {
- install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
- install -m 0644 ${S}/snd-bt-sco${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
-}
+PR = "r1"
diff --git a/packages/btsco/btsco-module_0.42.bb b/packages/btsco/btsco-module_0.42.bb
index 68c13a33d0..85b7790342 100644
--- a/packages/btsco/btsco-module_0.42.bb
+++ b/packages/btsco/btsco-module_0.42.bb
@@ -1,20 +1 @@
-DESCRIPTION = "Bluetooth-alsa headset module"
-SECTION = "kernel/modules"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r0"
-
-inherit module
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz \
- file://makefile.patch;patch=1"
-
-S = "${WORKDIR}/btsco-${PV}/kernel"
-
-MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'"
-
-do_install() {
- install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
- install -m 0644 ${S}/snd-bt-sco${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
-}
+require btsco-module.inc
diff --git a/packages/btsco/btsco.inc b/packages/btsco/btsco.inc
new file mode 100644
index 0000000000..32009b9a26
--- /dev/null
+++ b/packages/btsco/btsco.inc
@@ -0,0 +1,12 @@
+DESCRIPTION = "Bluetooth-alsa headset tool"
+HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
+LICENSE = "GPL"
+DEPENDS = "alsa-lib bluez-libs"
+
+inherit autotools pkgconfig
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz"
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+CFLAGS += " -I${STAGING_INCDIR} "
diff --git a/packages/btsco/btsco_0.41.bb b/packages/btsco/btsco_0.41.bb
index 04c8ae16ff..46c388a83f 100644
--- a/packages/btsco/btsco_0.41.bb
+++ b/packages/btsco/btsco_0.41.bb
@@ -1,11 +1,3 @@
-DESCRIPTION = "Bluetooth-alsa headset tool"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r2"
-
-inherit autotools pkgconfig
+require btsco.inc
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-0.41.tar.gz"
-
-S = "${WORKDIR}/${PN}-${PV}"
+PR = "r2"
diff --git a/packages/btsco/btsco_0.42.bb b/packages/btsco/btsco_0.42.bb
index a4dd11b197..1a8061ce07 100644
--- a/packages/btsco/btsco_0.42.bb
+++ b/packages/btsco/btsco_0.42.bb
@@ -1,16 +1,4 @@
-DESCRIPTION = "Bluetooth-alsa headset tool"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r0"
-
-inherit autotools pkgconfig
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz"
-
-S = "${WORKDIR}/${PN}-${PV}"
-
-CFLAGS += " -I${STAGING_INCDIR} "
+require btsco.inc
#there are some bogus macros putting -I/usr/include into C(PP)FLAGS, lets fix that
do_configure() {
diff --git a/packages/busybox/busybox.inc b/packages/busybox/busybox.inc
new file mode 100644
index 0000000000..37a9676257
--- /dev/null
+++ b/packages/busybox/busybox.inc
@@ -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
+}
diff --git a/packages/busybox/busybox_1.00.bb b/packages/busybox/busybox_1.00.bb
index 296c4e080e..76c487be04 100644
--- a/packages/busybox/busybox_1.00.bb
+++ b/packages/busybox/busybox_1.00.bb
@@ -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
diff --git a/packages/busybox/busybox_1.01.bb b/packages/busybox/busybox_1.01.bb
index 9c8b7e60c3..49766ef243 100644
--- a/packages/busybox/busybox_1.01.bb
+++ b/packages/busybox/busybox_1.01.bb
@@ -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
diff --git a/packages/busybox/busybox_1.2.0.bb b/packages/busybox/busybox_1.2.0.bb
index d537406d08..a4157082e8 100644
--- a/packages/busybox/busybox_1.2.0.bb
+++ b/packages/busybox/busybox_1.2.0.bb
@@ -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_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_configure () {
install -m 0644 ${WORKDIR}/defconfig ${S}/.config.oe
@@ -70,11 +18,6 @@ do_configure () {
cml1_do_configure
}
-do_compile () {
- unset CFLAGS
- base_do_compile
-}
-
do_install () {
install -d ${D}${sysconfdir}/init.d
oe_runmake "PREFIX=${D}" install
@@ -136,17 +79,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
diff --git a/packages/busybox/busybox_1.2.1.bb b/packages/busybox/busybox_1.2.1.bb
index 9893a17285..36ffd0311c 100644
--- a/packages/busybox/busybox_1.2.1.bb
+++ b/packages/busybox/busybox_1.2.1.bb
@@ -1,54 +1,9 @@
-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 = "r9"
-
-SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
- file://dhcp-hostname.patch;patch=1 \
- file://ifupdown-spurious-environ.patch;patch=1 \
- file://udhcpscript.patch;patch=1 \
- file://wget-long-options.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"
-
-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"
+require busybox.inc
-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 ."
+PR = "r9"
-inherit cml1 update-rc.d
+SRC_URI += "file://wget-long-options.patch;patch=1 \
+ file://defconfig"
do_configure () {
install -m 0644 ${WORKDIR}/defconfig ${S}/.config.oe
@@ -62,11 +17,6 @@ do_configure () {
cml1_do_configure
}
-do_compile () {
- unset CFLAGS
- base_do_compile
-}
-
do_install () {
install -d ${D}${sysconfdir}/init.d
oe_runmake "PREFIX=${D}" install
@@ -128,17 +78,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
diff --git a/packages/busybox/busybox_1.2.2.bb b/packages/busybox/busybox_1.2.2.bb
index 706e7ca3b5..5206d60ccc 100644
--- a/packages/busybox/busybox_1.2.2.bb
+++ b/packages/busybox/busybox_1.2.2.bb
@@ -1,56 +1,9 @@
-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 = "r0"
+require busybox.inc
DEFAULT_PREFERENCE = "-1"
-SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
- file://dhcp-hostname.patch;patch=1 \
- file://ifupdown-spurious-environ.patch;patch=1 \
- file://udhcpscript.patch;patch=1 \
- file://wget-long-options.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"
-
-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
+SRC_URI = "file://wget-long-options.patch;patch=1 \
+ file://defconfig"
do_configure () {
install -m 0644 ${WORKDIR}/defconfig ${S}/.config.oe
@@ -64,11 +17,6 @@ do_configure () {
cml1_do_configure
}
-do_compile () {
- unset CFLAGS
- base_do_compile
-}
-
do_install () {
install -d ${D}${sysconfdir}/init.d
oe_runmake "PREFIX=${D}" install
@@ -130,17 +78,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