Merge with OE (there may still be a bug in the busybox postinst script)
authorJohn Bowler <jbowler@nslu2-linux.org>
Wed, 25 May 2005 17:14:37 +0000 (17:14 +0000)
committerJohn Bowler <jbowler@nslu2-linux.org>
Wed, 25 May 2005 17:14:37 +0000 (17:14 +0000)
2005/05/25 16:24:12+01:00 reciva.com!pb
patch usb.rc to work with busybox (no "grep -o")

2005/05/25 13:09:04+01:00 reciva.com!pb
Merge bk://oe-devel@openembedded-devel.bkbits.net/openembedded
into mill.internal.reciva.com:/nexus/home/pb/oe/oe

2005/05/25 13:05:58+01:00 reciva.com!pb
apply patch to udhcpc to send the current hostname if no -H option is given

2005/05/25 12:54:31+02:00 uni-frankfurt.de!mickeyl
Merge bk://oe-devel@oe-devel.bkbits.net/openembedded
into r2d2.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages

2005/05/25 12:54:19+02:00 uni-frankfurt.de!mickeyl
fix yacc in bison-native

2005/05/25 11:48:52+01:00 reciva.com!pb
turn on support for "readlink -f", needed by usbutils

2005/05/25 11:40:50+01:00 reciva.com!pb
Merge bk://oe-devel@openembedded-devel.bkbits.net/openembedded
into mill.internal.reciva.com:/nexus/home/pb/oe/oe

2005/05/25 11:37:22+01:00 reciva.com!pb
don't require /etc/httpd.conf to start busybox httpd, it works fine without that file

2005/05/25 12:29:58+02:00 handhelds.org!CoreDump
Add altboot: A text based 'boot manager' (/sbin/init hack) to allow booting from SD and CF, boot a recovery shell (init=/bin/sh) or boot into a GUI-less runlevel

2005/05/25 11:24:50+01:00 reciva.com!pb
package busybox udhcpd bits separately; remove stray copy of main postinst in -httpd package.

2005/05/25 11:52:12+02:00 local!hrw
Merge bk://oe-devel.bkbits.net/openembedded
into marcinj.local:/home/hrw/zaurus/oe/openembedded

2005/05/25 11:51:20+02:00 local!hrw
regenerated dejavu fonts

2005/05/25 10:50:32+01:00 reciva.com!pb
set default update-rc.d parameters to "defaults"

BKrev: 4294b27d6MVA-cFYArKaJud80nBnzA

classes/update-rc.d.bbclass
packages/altboot/altboot_cvs.bb [new file with mode: 0644]
packages/altboot/files_collie/altboot.cfg [new file with mode: 0644]
packages/bison/bison-native_2.0.bb
packages/busybox/busybox-1.00/defconfig
packages/busybox/busybox-1.00/dhcp-hostname.patch [new file with mode: 0644]
packages/busybox/busybox_1.00.bb
packages/busybox/files/busybox-httpd
packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch [new file with mode: 0644]
packages/linux-hotplug/linux-hotplug_20040920.bb
packages/qpf-fonts/qpf-dejavu.inc

index c3ee89d..5f256b2 100644 (file)
@@ -1,6 +1,8 @@
 DEPENDS_append = " update-rc.d"
 RDEPENDS_append = " update-rc.d"
 
+INITSCRIPT_PARAMS ?= "defaults"
+
 INIT_D_DIR = "${sysconfdir}/init.d"
 
 updatercd_postinst() {
diff --git a/packages/altboot/altboot_cvs.bb b/packages/altboot/altboot_cvs.bb
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/altboot/files_collie/altboot.cfg b/packages/altboot/files_collie/altboot.cfg
new file mode 100644 (file)
index 0000000..e69de29
index e69de29..624ece4 100644 (file)
@@ -0,0 +1,19 @@
+include bison_${PV}.bb
+SECTION = "devel"
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/bison-${PV}"
+S = "${WORKDIR}/bison-${PV}"
+PR = "r1"
+
+inherit native autotools
+
+do_stage() {
+       install -m 0755 src/bison ${STAGING_BINDIR}/
+       cat >${STAGING_BINDIR}/yacc <<EOF
+#!/bin/sh
+exec ${STAGING_BINDIR}/bison -y "\$@"
+EOF
+       chmod a+rx ${STAGING_BINDIR}/yacc
+       install -d ${STAGING_BINDIR}/../share/bison/m4sugar
+       install -m 0755 data/c.m4 data/glr.c data/lalr1.cc data/yacc.c ${STAGING_BINDIR}/../share/bison/
+       install -m 0755 data/m4sugar/m4sugar.m4 ${STAGING_BINDIR}/../share/bison/m4sugar/
+}
index 3b2f214..164ecec 100644 (file)
@@ -193,6 +193,7 @@ CONFIG_RESET=y
 CONFIG_MKTEMP=y
 # CONFIG_PIPE_PROGRESS is not set
 CONFIG_READLINK=y
+CONFIG_FEATURE_READLINK_FOLLOW=y
 CONFIG_RUN_PARTS=y
 CONFIG_START_STOP_DAEMON=y
 CONFIG_WHICH=y
diff --git a/packages/busybox/busybox-1.00/dhcp-hostname.patch b/packages/busybox/busybox-1.00/dhcp-hostname.patch
new file mode 100644 (file)
index 0000000..e69de29
index 8554b95..6d26dfa 100644 (file)
@@ -10,7 +10,7 @@ HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
-PR = "r21"
+PR = "r23"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
            file://add-getkey-applet.patch;patch=1 \
@@ -26,6 +26,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://fbset.patch;patch=1 \
           file://mount-all-type.patch;patch=1 \
            file://celf-ash-builtins.patch;patch=1 \
+          file://dhcp-hostname.patch;patch=1 \
            file://defconfig \
            file://busybox-cron \
           file://busybox-httpd \
@@ -41,14 +42,16 @@ S = "${WORKDIR}/busybox-${PV}"
 
 export EXTRA_CFLAGS = "${CFLAGS}"
 EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
-PACKAGES =+ "${PN}-httpd"
+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"
+INITSCRIPT_PACKAGES = "${PN} ${PN}-httpd ${PN}-udhcpd"
 INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd"
+INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd" 
 INITSCRIPT_NAME_${PN} = "syslog"
 
 inherit cml1 update-rc.d
@@ -93,12 +96,12 @@ do_install () {
        install -m 0755 ${WORKDIR}/umount.busybox ${D}${base_bindir}/
 }
 
-pkg_postinst () {
+pkg_postinst_${PN} () {
        update-alternatives --install /bin/mount mount /bin/mount.busybox 50
        update-alternatives --install /bin/umount umount /bin/umount.busybox 50
 }
 
-pkg_prerm () {
+pkg_prerm_${PN} () {
        update-alternatives --remove mount /bin/mount.busybox
        update-alternatives --remove umount /bin/umount.busybox
 }
index e69de29..c8348e5 100644 (file)
@@ -0,0 +1,44 @@
+#!/bin/sh
+DAEMON=/usr/sbin/httpd
+NAME=httpd
+DESC="Busybox HTTP Daemon"
+HTTPROOT="/srv/www"
+ARGS="-h $HTTPROOT"
+
+test -f $DAEMON || exit 0
+
+set -e
+
+case "$1" in
+    start)
+        echo -n "starting $DESC: $NAME... "
+       if [ ! -d $HTTPROOT ]; then
+               echo "$HTTPROOT is missing."
+               exit 1
+       fi
+       start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
+       echo "done."
+       ;;
+    stop)
+        echo -n "stopping $DESC: $NAME... "
+       start-stop-daemon -K -n $NAME
+       echo "done."
+       ;;
+    restart)
+        echo "restarting $DESC: $NAME... "
+       $0 stop
+       $0 start
+       echo "done."
+       ;;
+    reload)
+       echo -n "reloading $DESC: $NAME... "
+       killall -HUP $(basename ${DAEMON})
+       echo "done."
+       ;;
+    *)
+       echo "Usage: $0 {start|stop|restart|reload}"
+       exit 1
+       ;;
+esac
+
+exit 0
diff --git a/packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch b/packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch
new file mode 100644 (file)
index 0000000..e69de29
index dca0ba0..9edb548 100644 (file)
@@ -7,12 +7,13 @@ RPROVIDES = "hotplug"
 RCONFLICTS = "hotplug"
 RREPLACES = "hotplug"
 SECTION = "base"
-PR = "r2"
+PR = "r3"
 RSUGGESTS = "pciutils usbutils"
 
 SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/hotplug-2004_09_20.tar.gz \
           file://userspecified_hcd.patch;patch=1 \
           file://hotplug-net-agent-usb.patch;patch=1 \
+           file://usbrc-busybox.patch;patch=1 \
            file://fix-net.agent \
            file://update-usb.usermap \
            file://logcheck-ignore \
index e69de29..3db82c9 100644 (file)
@@ -0,0 +1,20 @@
+SECTION = "opie/fonts"
+PRIORITY = "optional"
+MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
+LICENSE = "Bitstream Vera"
+HOMEPAGE = "http://dejavu.sourceforge.net/wiki/index.php/Main_Page"
+PACKAGE_ARCH = "all"
+PR = "r1"
+
+SRC_URI = "http://www.hrw.one.pl/_pliki/oe/files/${PN}-${PV}-${PR}.tar.bz2"
+
+S = "${WORKDIR}/${PN}"
+
+do_install () { 
+        install -d ${D}${palmqtdir}/lib/fonts/ 
+        for i in *.qpf; do 
+                install -m 644 $i ${D}${palmqtdir}/lib/fonts/${i} 
+        done 
+} 
+
+inherit qpf