summaryrefslogtreecommitdiff
path: root/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe
diff options
context:
space:
mode:
Diffstat (limited to 'nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe')
-rw-r--r--nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe31
1 files changed, 12 insertions, 19 deletions
diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe b/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe
index ea5bfd0f04..b45ff2d34a 100644
--- a/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe
+++ b/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe
@@ -1,38 +1,31 @@
SECTION = "base"
-PR = "r6"
+PR = "r9"
-UNSLUNG_VERSION = 2.4-alpha
+UNSLUNG_VERSION = 2.7-alpha
UNSLUNG_SUFFIX =
SRC_URI = "http://www.nslu2-linux.org/nslu2-linksys-ramdisk-2.3r25.tar.bz2 \
file://linuxrc \
+ file://flashfs \
file://rc.unslung \
file://unsling \
file://unslung.patch \
file://ipkg.conf"
S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r25"
-ROOT_NEW_DIRS = "/opt"
-ROOT_NEW_FILES = ".unslung linuxrc"
-SBIN_NEW_FILES = "unsling"
-ETC_PATCHED_FILES = "passwd rc"
-ETC_NEW_FILES = "profile ipkg.conf"
-RC_PATCHED_FILES = "rc.1 rc.crond rc.halt rc.local rc.modules \
- rc.network rc.quickset rc.quota rc.reboot \
- rc.reset_usrgrpshare rc.rstimezone rc.samba \
- rc.sysinit rc.thttpd rc.xinetd"
-RC_NEW_FILES = "rc.unslung"
-HTML_PATCHED_FILES = "home.htm"
-LOCAL_PATCHED_FILES = "passwd"
-
do_compile () {
- cp ${WORKDIR}/linuxrc ${S}/linuxrc
- cp ${WORKDIR}/unsling ${S}/sbin/unsling
- cp ${WORKDIR}/ipkg.conf ${S}/etc/ipkg.conf
- cp ${WORKDIR}/rc.unslung ${S}/etc/rc.d/rc.unslung
sed -e s/X.Y/${UNSLUNG_VERSION}${UNSLUNG_SUFFIX}/ ${WORKDIR}/unslung.patch | patch -d ${S} -p3
sed -i -e s/@version#/@version#-uNSLUng-${UNSLUNG_VERSION}${UNSLUNG_SUFFIX}/ ${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
+ install -m 755 ${WORKDIR}/flashfs ${S}/sbin/flashfs
+ install -m 755 ${WORKDIR}/unsling ${S}/sbin/unsling
+ install -m 755 ${WORKDIR}/rc.unslung ${S}/etc/rc.d/rc.unslung
+ install -m 755 ${WORKDIR}/ipkg.conf ${S}/etc/ipkg.conf
+ install -d ${S}/opt/doc
+ ln -s /opt/doc ${S}/home/httpd/html/Unslung
}
do_install () {