diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/havp/files | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/havp/files')
-rw-r--r-- | recipes/havp/files/doc.configure.txt | 21 | ||||
-rw-r--r-- | recipes/havp/files/havp.init | 33 | ||||
-rw-r--r-- | recipes/havp/files/volatiles.05_havp | 5 |
3 files changed, 59 insertions, 0 deletions
diff --git a/recipes/havp/files/doc.configure.txt b/recipes/havp/files/doc.configure.txt new file mode 100644 index 0000000000..f88fb405ec --- /dev/null +++ b/recipes/havp/files/doc.configure.txt @@ -0,0 +1,21 @@ +The following items needs to be considered when using havp: + +1. Madatory locking + + The filesystem on which SCANTEMPFILE lives must have madatory + locking enabled (mand option to mount). Note that nfs does not + support madatory locking. + +2. Scanning directory size + + If you have limited space on the SCANTEMPFILE then you will need + to set MAXSCANSIZE. + +3. Transparent proxy + + For transparent proxying you need an IP tables rule such as: + + iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 + + where eth0 is the incomming port, and 8080 is the port that havp + is running on. diff --git a/recipes/havp/files/havp.init b/recipes/havp/files/havp.init new file mode 100644 index 0000000000..245a28e7bc --- /dev/null +++ b/recipes/havp/files/havp.init @@ -0,0 +1,33 @@ +#!/bin/sh +DAEMON=/usr/sbin/havp +HAVP_CONFIG=/etc/havp/havp.config +PIDFILE=/var/run/havp/havp.pid +NAME="havp" +DESC="HAVP" + +test -r /etc/default/havp && . /etc/default/havp +test -x "$DAEMON" || exit 0 +test ! -r "$HAVP_CONFIG" && exit 0 + +case "$1" in + start) + echo "Starting $DESC: " + start-stop-daemon --oknodo -S -x $DAEMON -- -c $HAVP_CONFIG + echo "$NAME." + ;; + + stop) + echo "Stopping $DESC:" + start-stop-daemon -K -p $PIDFILE + ;; + + restart) + $0 stop >/dev/null 2>&1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 0 + ;; +esac diff --git a/recipes/havp/files/volatiles.05_havp b/recipes/havp/files/volatiles.05_havp new file mode 100644 index 0000000000..3a9551fc1f --- /dev/null +++ b/recipes/havp/files/volatiles.05_havp @@ -0,0 +1,5 @@ +# <type> <owner> <group> <mode> <path> <linksource> +d havp havp 0775 /var/log/havp none +d havp havp 0755 /var/lib/havp none +d havp havp 0755 /var/run/havp none +d havp havp 0755 /var/tmp/havp none |