[oe-commits] org.oe.dev New package wwwoffle: World Wide Web Offline Explorer (offline http+ftp proxy)

utx commit oe at amethyst.openembedded.net
Sun May 18 21:58:21 UTC 2008


New package wwwoffle: World Wide Web Offline Explorer (offline http+ftp proxy)

Author: utx at openembedded.org
Branch: org.openembedded.dev
Revision: 7143762e383df9fc9356ff275341deee72ec1a85
ViewMTN: http://monotone.openembedded.org/revision/info/7143762e383df9fc9356ff275341deee72ec1a85
Files:
1
packages/wwwoffle
packages/wwwoffle/files
packages/wwwoffle/files/wwwoffle.if-down
packages/wwwoffle/files/wwwoffle.if-up
packages/wwwoffle/files/wwwoffle.init
packages/wwwoffle/wwwoffle_2.9c.bb
Diffs:

#
# mt diff -r4eb44db9e52f063b448c0ac1979234dee50b1720 -r7143762e383df9fc9356ff275341deee72ec1a85
#
#
#
# add_dir "packages/wwwoffle"
# 
# add_dir "packages/wwwoffle/files"
# 
# add_file "packages/wwwoffle/files/wwwoffle.if-down"
#  content [e4aa7cb1319be94b2bda9198bd0a2d8c7fbdf8b9]
# 
# add_file "packages/wwwoffle/files/wwwoffle.if-up"
#  content [df3f0c05b29192684fce6d5734a28ca7c6681c66]
# 
# add_file "packages/wwwoffle/files/wwwoffle.init"
#  content [3648bf9fdc09412336b5bf1671b1d16da01d54e9]
# 
# add_file "packages/wwwoffle/wwwoffle_2.9c.bb"
#  content [d9fd9a242f353e3916f1d36829b96f70732c14df]
#
============================================================
--- packages/wwwoffle/files/wwwoffle.if-down	e4aa7cb1319be94b2bda9198bd0a2d8c7fbdf8b9
+++ packages/wwwoffle/files/wwwoffle.if-down	e4aa7cb1319be94b2bda9198bd0a2d8c7fbdf8b9
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+/usr/bin/wwwoffle -offline &
+exit
============================================================
--- packages/wwwoffle/files/wwwoffle.if-up	df3f0c05b29192684fce6d5734a28ca7c6681c66
+++ packages/wwwoffle/files/wwwoffle.if-up	df3f0c05b29192684fce6d5734a28ca7c6681c66
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+# We want to run wwwoffle only for selected interfaces:
+# Maybe better would be checking of the default route.
+case "$IFACE" in
+    wlan*)
+    ;;
+    eth*)
+    ;;
+    usb*)
+    ;;
+    ppp*)
+    ;;
+    *)
+	exit 0
+    ;;
+esac
+
+# wwwoffle caches old network configuration and it may cause resolve failures
+/usr/bin/wwwoffle -kill
+/usr/sbin/wwwoffled >/dev/null 2>&1
+
+/usr/bin/wwwoffle -online
+
+# Don't fetch over ppp*, which is typically expensive dial-up.
+# Comment out, if you want to fetch pre-ordered pages over GPRS, dial-up or so.
+case "$IFACE" in
+    ppp*)
+	exit 0
+    ;;
+esac
+
+# Fetch may take longer time. Run it in background
+( /usr/bin/wwwoffle -fetch ) &
+
+exit
============================================================
--- packages/wwwoffle/files/wwwoffle.init	3648bf9fdc09412336b5bf1671b1d16da01d54e9
+++ packages/wwwoffle/files/wwwoffle.init	3648bf9fdc09412336b5bf1671b1d16da01d54e9
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+case "$1" in
+start)
+  /usr/sbin/wwwoffled
+  ;;
+restart)
+  /usr/bin/wwwoffle -kill
+  /usr/sbin/wwwoffled >/dev/null 2>&1
+  ;;
+reload|force-reload)
+  /usr/bin/wwwoffle -config
+  ;;
+stop)
+  /usr/bin/wwwoffle -kill
+  ;;
+*)
+  echo "Usage: /etc/init.d/wwwoffle {start|stop|restart|reload|force-reload}"
+  exit 1
+esac
+
+exit 0
============================================================
--- packages/wwwoffle/wwwoffle_2.9c.bb	d9fd9a242f353e3916f1d36829b96f70732c14df
+++ packages/wwwoffle/wwwoffle_2.9c.bb	d9fd9a242f353e3916f1d36829b96f70732c14df
@@ -0,0 +1,31 @@
+LICENSE = "GPL"
+SECTION = "console/network"
+PRIORITY = "standard"
+DESCRIPTION = "World Wide Web Offline Explorer"
+DEPENDS = ""
+
+SRC_URI = "http://www.gedanken.demon.co.uk/download-wwwoffle/${PN}-${PV}.tgz \
+	file://wwwoffle.init \
+	file://wwwoffle.if-up \
+	file://wwwoffle.if-down"
+
+INITSCRIPT_NAME = "${PN}"
+
+inherit autotools gettext update-rc.d
+
+EXTRA_OEMAKE = "docdir=${datadir}/doc"
+
+do_configure() {
+	pwd
+	mv aclocal.m4 acinclude.m4
+	autotools_do_configure
+}
+
+do_install_append() {
+	install -d ${D}/${sysconfdir}/network/if-up.d
+	install -m 755 ${WORKDIR}/wwwoffle.if-up ${D}/${sysconfdir}/network/if-up.d/wwwoffle
+	install -d ${D}/${sysconfdir}/network/if-down.d
+	install -m 755 ${WORKDIR}/wwwoffle.if-down ${D}/${sysconfdir}/network/if-down.d/wwwoffle
+	install -d ${D}/${sysconfdir}/init.d
+	install -m 755 ${WORKDIR}/wwwoffle.init ${D}/${sysconfdir}/init.d/wwwoffle
+}






More information about the Openembedded-commits mailing list