summaryrefslogtreecommitdiff
path: root/packages/poboxserver/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/poboxserver/files')
-rw-r--r--packages/poboxserver/files/pbserver.sh38
-rw-r--r--packages/poboxserver/files/remove-local-includes.patch16
2 files changed, 54 insertions, 0 deletions
diff --git a/packages/poboxserver/files/pbserver.sh b/packages/poboxserver/files/pbserver.sh
new file mode 100644
index 0000000000..8e5a1bda26
--- /dev/null
+++ b/packages/poboxserver/files/pbserver.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+killproc()
+{
+ pid=`/bin/ps -e x |
+ /bin/grep $1 |
+ /bin/grep -v grep |
+ /bin/sed -e 's/^ *//' -e 's/ .*//'`
+ [ "$pid" != "" ] && kill $pid
+}
+
+usage()
+{
+ echo "Usage: $0 {start|stop}"
+}
+
+if [ $# -lt 1 ] ; then usage ; exit ; fi
+
+case "$1" in
+start)
+ echo -n "Start pbserver"
+ # make sure lo interface is configured (otherwise qpobox will not bind to pbserver)
+ ifconfig lo|grep 127.0.0.1 >/dev/null || ifconfig lo 127.0.0.1
+ cd /opt/QtPalmtop/pobox; ./pbserver > /dev/null &
+ echo
+ sleep 1
+ ;;
+
+stop)
+ echo -n "Stop pbserver"
+ killproc pbserver
+ echo
+ ;;
+
+esac
+
+exit 0
+
diff --git a/packages/poboxserver/files/remove-local-includes.patch b/packages/poboxserver/files/remove-local-includes.patch
new file mode 100644
index 0000000000..10f9d312d6
--- /dev/null
+++ b/packages/poboxserver/files/remove-local-includes.patch
@@ -0,0 +1,16 @@
+
+#
+# Signed off by Michael 'Mickey' Lauer <mickey@Vanille.de>
+#
+
+--- OpenPOBox/server/Makefile.in~remove-local-includes
++++ OpenPOBox/server/Makefile.in
+@@ -11,8 +11,6 @@
+ # -I../asearch -I../romakana -I../include -g
+
+ CFLAGS = -DUNIX @CFLAGS@ \
+- -I/usr/local/include -I/usr/local/lib/glib/include \
+- -I@prefix@/include \
+ -I../asearch -I../romakana -I../include -g
+
+ pbserver: pbserver.o server.o poboxlib.o romakana_he.o lookup.o