SECTION = "base" PR = "r9" DEPENDS = "nslu2-linksys-libs" SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2 \ file://README \ file://NOTES \ file://ipkg-fl \ file://motd-fl \ file://motd-un \ file://unsling \ file://resling \ file://slingover \ file://linuxrc \ file://unslung.gif \ file://nsswitch.conf \ file://rc.optware-start \ file://rc.optware-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://telnet.htm \ 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) if mach != 'nslu2': raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2") } do_compile () { echo "V2.3R63-uNSLUng-${DISTRO_VERSION}" > ${S}/.unslung install -m 644 ${WORKDIR}/unslung.gif ${S}/home/httpd/html/linksys.gif install -m 644 ${WORKDIR}/telnet.htm ${S}/home/httpd/html/Management/telnet.htm sed -i -e 's/@version#@version#-uNSLUng-'${DISTRO_VERSION}'' ${S}/home/httpd/html/home.htm sed -i -e s/@ds_sw_version#/@ds_sw_version#-uNSLUng-${DISTRO_VERSION}/ \ ${S}/home/httpd/html/Management/upgrade.htm install -m 755 ${WORKDIR}/ipkg-fl ${S}/usr/bin/ipkg-fl install -m 644 ${WORKDIR}/motd-fl ${S}/etc/motd-fl sed -i -e s/@v@/V2.3R63-uNSLUng-${DISTRO_VERSION}/ ${S}/etc/motd-fl install -m 644 ${WORKDIR}/motd-un ${S}/etc/motd-un sed -i -e s/@v@/V2.3R63-uNSLUng-${DISTRO_VERSION}/ ${S}/etc/motd-un rm -f ${S}/etc/motd ln -s motd-fl ${S}/etc/motd sed -i -e 's+@public_2#+@public_2# | \ Manage Telnet+' \ ${S}/home/httpd/html/home.htm sed -i -e 's+