summaryrefslogtreecommitdiff
path: root/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2005-08-11 10:14:41 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-11 10:14:41 +0000
commit0654a007425b7b7b4d7646bd5cc2edeb1375d622 (patch)
treef476d1a9f4097abcdf7145e46136d3e500d5dfe9 /packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
parent5db530540a094f96b52245c5896ef40009e6db6b (diff)
Added unslung-binary-kernel.conf distro for NSLU2 Linksys V2.3R63 firmware with NTFS read/write support.
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb')
-rw-r--r--packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb106
1 files changed, 106 insertions, 0 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
new file mode 100644
index 0000000000..5b22e3cbd3
--- /dev/null
+++ b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
@@ -0,0 +1,106 @@
+DEFAULT_PREFERENCE_unslung = "-1"
+
+SECTION = "base"
+
+PR = "r0"
+
+DEPENDS = "nslu2-linksys-libs"
+
+SRC_URI = "http://www.you-need-to-create-this-yourself.com/nslu2-linksys-ramdisk-2.3r63.tar.bz2 \
+ file://README \
+ file://NOTES \
+ file://unsling \
+ file://resling \
+ file://slingover \
+ file://linuxrc \
+ file://nsswitch.conf \
+ 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://tmp-handling.patch;patch=1 \
+ file://create-ramdisks.patch;patch=1 \
+ file://remount-noatime.patch;patch=1 \
+ file://initialise-mtab.patch;patch=1 \
+ file://wait-for-quotacheck.patch;patch=1 \
+ file://mount_usbdevfs.patch;patch=1 \
+ file://security-fixes.patch;patch=1 \
+ file://upgrade.htm file://upgrade.cgi \
+ file://rc.bootbin \
+ "
+
+S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r63"
+
+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.3R63-uNSLUng-${DISTRO_VERSION}" > ${S}/.unslung
+
+ sed -i -e s/@version#/@version#-uNSLUng-${DISTRO_VERSION}/ ${S}/home/httpd/html/home.htm
+ sed -i -e 's|>&nbsp;<|><a href="Unslung" class="mainmenu" target="_top">Unslung Doco</a><|' \
+ ${S}/home/httpd/html/manhead.htm
+
+ install -m 755 ${WORKDIR}/linuxrc ${S}/linuxrc
+
+ # Allow rc.bootbin to be diverted.
+ mv ${S}/etc/rc.d/rc.bootbin ${S}/sbin/rc.bootbin
+ install -m 755 ${WORKDIR}/rc.bootbin ${S}/etc/rc.d/rc.bootbin
+
+ install -d ${S}/initrd
+
+ install -m 755 ${WORKDIR}/unsling ${S}/sbin/unsling
+ install -m 755 ${WORKDIR}/resling ${S}/sbin/resling
+ install -m 755 ${WORKDIR}/slingover ${S}/sbin/slingover
+ 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 -m 644 ${WORKDIR}/nsswitch.conf ${S}/etc/nsswitch.conf
+
+ install -d ${S}/opt/doc
+ install -m 755 ${WORKDIR}/README ${S}/opt/doc/README
+ install -m 755 ${WORKDIR}/NOTES ${S}/opt/doc/NOTES
+ ln -s /opt/doc ${S}/home/httpd/html/Unslung
+
+ # Add the diversion script directory
+ install -d ${S}/unslung
+
+ # Remove the libraries, because they are in nslu2-linksys-libs now
+ rm -rf ${S}/lib
+
+ # Install upgrade mode files
+ mv ${S}/home/httpd/html/Management/upgrade.htm ${S}/home/httpd/html/Management/upgrade-old.htm
+ mv ${S}/home/httpd/html/Management/upgrade.cgi ${S}/home/httpd/html/Management/upgrade-old.cgi
+ install -m 644 ${WORKDIR}/upgrade.htm ${S}/home/httpd/html/Management
+ install -m 755 ${WORKDIR}/upgrade.cgi ${S}/home/httpd/html/Management
+ sed -i -e s/@ds_sw_version#/@ds_sw_version#-uNSLUng-${DISTRO_VERSION}/ \
+ ${S}/home/httpd/html/Management/upgrade.htm
+}
+
+do_install () {
+ ( cd ${S} ; tar -c -v -f - --exclude '.pc' . ) | ( cd ${D} ; tar xvf - )
+}
+
+PACKAGES = "${PN}"
+FILES_${PN} = "/"
+RDEPENDS_${PN} = "nslu2-linksys-libs"