diff options
Diffstat (limited to 'packages/nslu2-binary-only')
11 files changed, 190 insertions, 0 deletions
diff --git a/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r25.bb b/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r25.bb index e69de29bb2..b9fd20ac49 100644 --- a/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r25.bb +++ b/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r25.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "Linksys NSLU2 Stock Firmware Libraries." +PACKAGE_ARCH = "nslu2" +SECTION = "base" +PRIORITY = "required" +PR = "r2" + +SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r25.tar.bz2" + +S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r25" + +do_install () { + ( cd ${S} ; rm -rf bin dev home mnt proc sbin share tmp upload usr var ) + ( cd ${S} ; tar cvf - . ) | ( cd ${D} ; tar xvf - ) +} + +PACKAGES = "${PN}" +FILES_${PN} = "/lib" + +python () { + # Don't build unless we're targeting an nslu2 + if bb.data.getVar("MACHINE", d, 1) != "nslu2": + raise bb.parse.SkipPackage("NSLU2 stock firmware libraries only builds for the Linksys NSLU2") +} diff --git a/packages/nslu2-binary-only/nslu2-switchbox-firmware.bb b/packages/nslu2-binary-only/nslu2-switchbox-firmware.bb index e69de29bb2..ad213e725a 100644 --- a/packages/nslu2-binary-only/nslu2-switchbox-firmware.bb +++ b/packages/nslu2-binary-only/nslu2-switchbox-firmware.bb @@ -0,0 +1,20 @@ +SECTION = "base" +DEPENDS = "" +PACKAGES = "" +INHIBIT_DEFAULT_DEPS = "1" +PR = "r6" + +SRC_URI = "http://nslu.sf.net/downloads/switchbox-3.5.tar.gz" +S = "${WORKDIR}" + +python () { + # Don't build switchbox firmware unless we're targeting an nslu2 + mach = bb.data.getVar("MACHINE", d, 1) + if mach != 'nslu2': + raise bb.parse.SkipPackage("Switchbox is only relevant for the Linksys NSLU2") +} + +do_compile () { + install -d ${STAGING_LIBDIR}/nslu2-binaries + install -m 0755 switchbox.ext2.gz ${STAGING_LIBDIR}/nslu2-binaries/switchbox.ext2.gz +} diff --git a/packages/nslu2-binary-only/unslung-able-rootfs_2.3r25.bb b/packages/nslu2-binary-only/unslung-able-rootfs_2.3r25.bb index e69de29bb2..b7958cd9c7 100644 --- a/packages/nslu2-binary-only/unslung-able-rootfs_2.3r25.bb +++ b/packages/nslu2-binary-only/unslung-able-rootfs_2.3r25.bb @@ -0,0 +1,7 @@ +UNSLUNG_VARIANT = "able" + +include unslung-standard-rootfs_2.3r25.bb + +# Add overlays and patches to the standard rootfs here +SRC_URI += "" + diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/able/mount_usbdevfs.patch b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/mount_usbdevfs.patch index e69de29bb2..e69de29bb2 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/able/mount_usbdevfs.patch +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/mount_usbdevfs.patch diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.1-diversion.patch b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.1-diversion.patch index e69de29bb2..6dd4ca97d3 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.1-diversion.patch +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.1-diversion.patch @@ -0,0 +1,29 @@ +--- nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.1~ 2004-07-27 23:37:55.000000000 -0400 ++++ nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.1 2004-09-01 21:56:17.000000000 -0400 +@@ -1,5 +1,17 @@ + #!/bin/sh + ++if ( [ -f /mnt/sda2/unslung/rc.1 ] && . /mnt/sda2/unslung/rc.1 ) ; then return 0 ; fi ++if ( [ -f /mnt/sdb2/unslung/rc.1 ] && . /mnt/sdb2/unslung/rc.1 ) ; then return 0 ; fi ++if ( [ -f /unslung/rc.1 ] && . /unslung/rc.1 ) ; then return 0 ; fi ++ ++if ( [ -f /proc/hd_conn ] ) ; then ++ /bin/umount /dev/sda2 ++fi ++ ++if ( [ -f /proc/hd2_conn ] ) ; then ++ /bin/umount /dev/sdb2 ++fi ++ + #/sbin/ifconfig ixp0 hw ether 00:C0:02:01:01:04 + /bin/echo "Starting Set CGI_ds.conf:"; /etc/rc.d/rc.bootbin; check_status + +@@ -17,6 +19,8 @@ + /bin/echo "Starting Crond :"; . /etc/rc.d/rc.crond + /bin/echo "Starting Rest Task :"; . /etc/rc.d/rc.local + ++/bin/echo "Starting UNSLUNG Packages:"; ( . /etc/rc.d/rc.unslung-start ) ++ + /usr/bin/Set_Led ready + /usr/bin/Set_Led beep1 + /bin/echo "Checking disk status :"; /usr/sbin/CheckDiskFull 2 >/dev/null diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.halt-diversion.patch b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.halt-diversion.patch index e69de29bb2..ddb501e55e 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.halt-diversion.patch +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.halt-diversion.patch @@ -0,0 +1,14 @@ +--- nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.halt.orig 2004-07-27 23:37:55.000000000 -0400 ++++ nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.halt 2004-09-01 21:57:01.000000000 -0400 +@@ -1,4 +1,11 @@ + #!/bin/sh ++ ++if ( [ -r /mnt/sda2/unslung/rc.halt ] && . /mnt/sda2/unslung/rc.halt ) ; then return 0 ; fi ++if ( [ -r /mnt/sdb2/unslung/rc.halt ] && . /mnt/sdb2/unslung/rc.halt ) ; then return 0 ; fi ++if ( [ -r /unslung/rc.halt ] && . /unslung/rc.halt ) ; then return 0 ; fi ++ ++/bin/echo "Stopping UNSLUNG Packages:"; ( . /etc/rc.d/rc.unslung-stop ) ++ + /bin/killall -2 upnpd &>/dev/null + /bin/killall nmbd &>/dev/null + /bin/killall smbd &>/dev/null diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.reboot-diversion.patch b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.reboot-diversion.patch index e69de29bb2..482c4dbb27 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.reboot-diversion.patch +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.reboot-diversion.patch @@ -0,0 +1,14 @@ +--- nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.reboot.orig 2004-07-27 23:37:55.000000000 -0400 ++++ nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.reboot 2004-09-01 21:58:19.000000000 -0400 +@@ -1,4 +1,11 @@ + #!/bin/sh ++ ++if ( [ -r /mnt/sda2/unslung/rc.reboot ] && . /mnt/sda2/unslung/rc.reboot ) ; then return 0 ; fi ++if ( [ -r /mnt/sdb2/unslung/rc.reboot ] && . /mnt/sdb2/unslung/rc.reboot ) ; then return 0 ; fi ++if ( [ -r /unslung/rc.reboot ] && . /unslung/rc.reboot ) ; then return 0 ; fi ++ ++/bin/echo "Stopping UNSLUNG Packages:"; ( . /etc/rc.d/rc.unslung-stop ) ++ + /bin/killall -2 upnpd 2>/dev/null + sleep 4 + /sbin/ifdown ixp0 diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.unslung b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.unslung-start index e69de29bb2..e69de29bb2 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.unslung +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.unslung-start diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.unslung-stop b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.unslung-stop new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc.unslung-stop diff --git a/packages/nslu2-binary-only/unslung-standard-rootfs_2.3r25.bb b/packages/nslu2-binary-only/unslung-standard-rootfs_2.3r25.bb index e69de29bb2..66bb81f262 100644 --- a/packages/nslu2-binary-only/unslung-standard-rootfs_2.3r25.bb +++ b/packages/nslu2-binary-only/unslung-standard-rootfs_2.3r25.bb @@ -0,0 +1,83 @@ +SECTION = "base" + +PR = "r34" + +UNSLUNG_VERSION = "3.13-alpha" +UNSLUNG_VARIANT ?= "standard" + +DEPENDS = "nslu2-linksys-libs" + +FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/unslung-rootfs-${PV}/${UNSLUNG_VARIANT}', '${FILE_DIRNAME}/unslung-rootfs-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" + +SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r25.tar.bz2 \ + file://README \ + file://linuxrc \ + file://unsling \ + file://resling \ + file://rc.unslung-start \ + file://rc.unslung-stop \ + file://rc-diversion.patch;patch=1 \ + file://rc.1-diversion.patch;patch=1 \ + file://rc.crond-diversion.patch;patch=1 \ + file://rc.halt-diversion.patch;patch=1 \ + file://rc.local-diversion.patch;patch=1 \ + file://rc.modules-diversion.patch;patch=1 \ + file://rc.network-diversion.patch;patch=1 \ + file://rc.quickset-diversion.patch;patch=1 \ + file://rc.quota-diversion.patch;patch=1 \ + file://rc.reboot-diversion.patch;patch=1 \ + file://rc.reset_usrgrpshare-diversion.patch;patch=1 \ + file://rc.rstimezone-diversion.patch;patch=1 \ + file://rc.samba-diversion.patch;patch=1 \ + file://rc.sysinit-diversion.patch;patch=1 \ + file://rc.thttpd-diversion.patch;patch=1 \ + file://rc.xinetd-diversion.patch;patch=1 \ + file://root-passwd.patch;patch=1 \ + file://create-ramdisks.patch;patch=1 \ + file://remount-noatime.patch;patch=1 \ + file://initialise-mtab.patch;patch=1 \ + file://mount_usbdevfs.patch;patch=1 \ + " + +S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r25" + +python () { + # Don't build unslung images unless we're targeting an nslu2 + mach = bb.data.getVar("MACHINE", d, 1) + dist = bb.data.getVar("DISTRO", d, 1) + if mach != 'nslu2' or dist != 'unslung': + raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2") +} + +do_compile () { + echo "V2.3R25-uNSLUng-${UNSLUNG_VARIANT}-${UNSLUNG_VERSION}" > ${S}/.unslung + + sed -i -e s/@version#/@version#-uNSLUng-${UNSLUNG_VARIANT}-${UNSLUNG_VERSION}/ ${S}/home/httpd/html/home.htm + sed -i -e 's|> <|><a href="Unslung" class="mainmenu" target="_top">Unslung Doco</a><|' \ + ${S}/home/httpd/html/manhead.htm + + # Somehow these two slipped through - this is easier than updating the tar file. + rm -f ${S}/etc/rc.orig + rm -f ${S}/etc/rc.d/rc.1.orig + + install -m 755 ${WORKDIR}/linuxrc ${S}/linuxrc + install -m 755 ${WORKDIR}/unsling ${S}/sbin/unsling + install -m 755 ${WORKDIR}/resling ${S}/sbin/resling + install -m 755 ${WORKDIR}/rc.unslung-start ${S}/etc/rc.d/rc.unslung-start + install -m 755 ${WORKDIR}/rc.unslung-stop ${S}/etc/rc.d/rc.unslung-stop + + install -d ${S}/opt/doc + install -m 755 ${WORKDIR}/README ${S}/opt/doc/README + ln -s /opt/doc ${S}/home/httpd/html/Unslung + + # Remove the libraries, because they are in nslu2-linksys-libs now + rm -rf ${S}/lib +} + +do_install () { + ( cd ${S} ; tar -c -v -f - --exclude '*\~*' --exclude '.patches' . ) | ( cd ${D} ; tar xvf - ) +} + +PACKAGES = "${PN}" +FILES_${PN} = "/" +RDEPENDS_${PN} = "nslu2-linksys-libs" diff --git a/packages/nslu2-binary-only/unslung-switchbox-payload_2.3r25.bb b/packages/nslu2-binary-only/unslung-switchbox-payload_2.3r25.bb new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/nslu2-binary-only/unslung-switchbox-payload_2.3r25.bb |