summaryrefslogtreecommitdiff
path: root/package/olsrd
diff options
context:
space:
mode:
Diffstat (limited to 'package/olsrd')
-rw-r--r--package/olsrd/Config.in36
-rw-r--r--package/olsrd/Makefile58
-rw-r--r--package/olsrd/files/olsrd.init22
-rw-r--r--package/olsrd/files/olsrd_secure_key1
-rw-r--r--package/olsrd/ipkg/olsrd-mod-dot-draw.control5
-rw-r--r--package/olsrd/ipkg/olsrd-mod-dyn-gw.control5
-rw-r--r--package/olsrd/ipkg/olsrd-mod-httpinfo.control5
-rw-r--r--package/olsrd/ipkg/olsrd-mod-nameservice.control5
-rw-r--r--package/olsrd/ipkg/olsrd-mod-power.control5
-rw-r--r--package/olsrd/ipkg/olsrd-mod-secure.conffiles1
-rw-r--r--package/olsrd/ipkg/olsrd-mod-secure.control5
-rw-r--r--package/olsrd/ipkg/olsrd-mod-tas.control5
-rw-r--r--package/olsrd/ipkg/olsrd.conffiles1
-rw-r--r--package/olsrd/ipkg/olsrd.control8
-rw-r--r--package/olsrd/ipkg/olsrd.postinst3
-rw-r--r--package/olsrd/patches/patch-make_Makefile_linux12
16 files changed, 177 insertions, 0 deletions
diff --git a/package/olsrd/Config.in b/package/olsrd/Config.in
new file mode 100644
index 000000000..c715b9ada
--- /dev/null
+++ b/package/olsrd/Config.in
@@ -0,0 +1,36 @@
+#menu "olsrd............................. OLSR (Optimized Link State Routing) daemon"
+
+config ADK_PACKAGE_OLSRD
+ prompt "olsrd............................. OLSR (Optimized Link State Routing) daemon"
+ tristate
+ default n
+ help
+ The Optimized Link State Routing daemon
+
+ http://www.olsr.org/
+
+config ADK_PACKAGE_OLSRD_MOD_DYN_GW
+ prompt " olsrd-mod-dyn-gw.............. Dynamic internet gateway plugin"
+ tristate
+ default n
+ depends ADK_PACKAGE_OLSRD
+
+config ADK_PACKAGE_OLSRD_MOD_HTTPINFO
+ prompt " olsrd-mod-httpinfo............ Small informative web server plugin"
+ tristate
+ default n
+ depends ADK_PACKAGE_OLSRD
+
+config ADK_PACKAGE_OLSRD_MOD_NAMESERVICE
+ prompt " olsrd-mod-nameservice......... Lightweight hostname resolver plugin"
+ tristate
+ default n
+ depends ADK_PACKAGE_OLSRD
+
+config ADK_PACKAGE_OLSRD_MOD_TAS
+ prompt " olsrd-mod-tas................. Tiny Application Server (TAS) plugin for olsrd"
+ tristate
+ default n
+ depends ADK_PACKAGE_OLSRD
+
+#endmenu
diff --git a/package/olsrd/Makefile b/package/olsrd/Makefile
new file mode 100644
index 000000000..51e512463
--- /dev/null
+++ b/package/olsrd/Makefile
@@ -0,0 +1,58 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= olsrd
+PKG_VERSION:= 0.5.6-r2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= acf15dbd0af521a6826541b567c6473a
+MASTER_SITES:= http://www.olsr.org/releases/0.5/
+
+include ${TOPDIR}/mk/package.mk
+
+define PKG_mod_template
+
+INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
+
+${2}-install:
+ $${INSTALL_DIR} $${IDIR_${1}}/usr/lib
+ $${CP} $${WRKINST}/usr/lib/olsrd_${2}.so.* $${IDIR_${1}}/usr/lib/
+
+endef
+
+$(eval $(call PKG_template,OLSRD,olsrd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,OLSRD_MOD_DYN_GW,olsrd-mod-dyn-gw,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,OLSRD_MOD_HTTPINFO,olsrd-mod-httpinfo,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,OLSRD_MOD_NAMESERVICE,olsrd-mod-nameservice,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,OLSRD_MOD_TAS,olsrd-mod-tas,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+$(eval $(call PKG_mod_template,OLSRD_MOD_DYN_GW,dyn_gw))
+$(eval $(call PKG_mod_template,OLSRD_MOD_HTTPINFO,httpinfo))
+$(eval $(call PKG_mod_template,OLSRD_MOD_NAMESERVICE,nameservice))
+$(eval $(call PKG_mod_template,OLSRD_MOD_TAS,tas))
+
+
+do-build:
+ rm -rf ${WRKINST}
+ mkdir -p ${WRKINST}
+ ${MAKE} -C "${WRKBUILD}" \
+ ${TARGET_CONFIGURE_OPTS} \
+ NODEBUG=1 \
+ OFLAGS="${TARGET_CFLAGS}" \
+ OS="linux" \
+ DESTDIR="${WRKINST}" \
+ STRIP="/bin/true" \
+ all libs install install_libs
+
+do-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
+ ${INSTALL_DIR} ${IDIR_OLSRD}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_OLSRD}/usr/sbin
+ ${INSTALL_DATA} ${WRKINST}/etc/olsrd.conf ${IDIR_OLSRD}/etc/
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/olsrd ${IDIR_OLSRD}/usr/sbin/
+ ${INSTALL_BIN} ./files/olsrd.init \
+ ${IDIR_OLSRD}/etc/init.d/olsrd
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/olsrd/files/olsrd.init b/package/olsrd/files/olsrd.init
new file mode 100644
index 000000000..1e99a446b
--- /dev/null
+++ b/package/olsrd/files/olsrd.init
@@ -0,0 +1,22 @@
+#!/bin/sh
+#FWINIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${olsrd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ olsrd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 {start | stop | restart}"
+ exit 1
+esac
+exit $?
diff --git a/package/olsrd/files/olsrd_secure_key b/package/olsrd/files/olsrd_secure_key
new file mode 100644
index 000000000..4a7d7258f
--- /dev/null
+++ b/package/olsrd/files/olsrd_secure_key
@@ -0,0 +1 @@
+1234567890123456 \ No newline at end of file
diff --git a/package/olsrd/ipkg/olsrd-mod-dot-draw.control b/package/olsrd/ipkg/olsrd-mod-dot-draw.control
new file mode 100644
index 000000000..f0a343282
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-dot-draw.control
@@ -0,0 +1,5 @@
+Package: olsrd-mod-dot-draw
+Priority: optional
+Section: net
+Description: a dot topology information plugin for olsrd
+Depends: olsrd
diff --git a/package/olsrd/ipkg/olsrd-mod-dyn-gw.control b/package/olsrd/ipkg/olsrd-mod-dyn-gw.control
new file mode 100644
index 000000000..69a41a5b1
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-dyn-gw.control
@@ -0,0 +1,5 @@
+Package: olsrd-mod-dyn-gw
+Priority: optional
+Section: net
+Description: a dynamic internet gateway plugin for olsrd
+Depends: olsrd
diff --git a/package/olsrd/ipkg/olsrd-mod-httpinfo.control b/package/olsrd/ipkg/olsrd-mod-httpinfo.control
new file mode 100644
index 000000000..770dc0474
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-httpinfo.control
@@ -0,0 +1,5 @@
+Package: olsrd-mod-httpinfo
+Priority: optional
+Section: net
+Description: a small informative web server plugin for olsrd
+Depends: olsrd
diff --git a/package/olsrd/ipkg/olsrd-mod-nameservice.control b/package/olsrd/ipkg/olsrd-mod-nameservice.control
new file mode 100644
index 000000000..2caa8152b
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-nameservice.control
@@ -0,0 +1,5 @@
+Package: olsrd-mod-nameservice
+Priority: optional
+Section: net
+Description: a lightweight hostname resolver plugin for olsrd
+Depends: olsrd
diff --git a/package/olsrd/ipkg/olsrd-mod-power.control b/package/olsrd/ipkg/olsrd-mod-power.control
new file mode 100644
index 000000000..168126b3d
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-power.control
@@ -0,0 +1,5 @@
+Package: olsrd-mod-power
+Priority: optional
+Section: net
+Description: a power status plugin for olsrd
+Depends: olsrd
diff --git a/package/olsrd/ipkg/olsrd-mod-secure.conffiles b/package/olsrd/ipkg/olsrd-mod-secure.conffiles
new file mode 100644
index 000000000..34e90b80a
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-secure.conffiles
@@ -0,0 +1 @@
+/etc/olsrd.d/olsrd_secure_key
diff --git a/package/olsrd/ipkg/olsrd-mod-secure.control b/package/olsrd/ipkg/olsrd-mod-secure.control
new file mode 100644
index 000000000..ff2eb3a9a
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-secure.control
@@ -0,0 +1,5 @@
+Package: olsrd-mod-secure
+Priority: optional
+Section: net
+Description: a message signing plugin to secure olsrd routing domain
+Depends: olsrd
diff --git a/package/olsrd/ipkg/olsrd-mod-tas.control b/package/olsrd/ipkg/olsrd-mod-tas.control
new file mode 100644
index 000000000..91ad4c665
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd-mod-tas.control
@@ -0,0 +1,5 @@
+Package: olsrd-mod-tas
+Priority: optional
+Section: net
+Description: a Tiny Application Server (TAS) plugin for olsrd
+Depends: olsrd
diff --git a/package/olsrd/ipkg/olsrd.conffiles b/package/olsrd/ipkg/olsrd.conffiles
new file mode 100644
index 000000000..a0b5e8eaa
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd.conffiles
@@ -0,0 +1 @@
+/etc/olsrd.conf
diff --git a/package/olsrd/ipkg/olsrd.control b/package/olsrd/ipkg/olsrd.control
new file mode 100644
index 000000000..37cdf0908
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd.control
@@ -0,0 +1,8 @@
+Package: olsrd
+Priority: optional
+Section: net
+Description: The olsr.org OLSR daemon
+ olsrd is an implementation of the Optimized Link State Routing protocol.
+ OLSR is a routing protocol for mobile ad-hoc networks. The protocol is
+ pro-active, table driven and utilizes a technique called multipoint
+ relaying for message flooding.
diff --git a/package/olsrd/ipkg/olsrd.postinst b/package/olsrd/ipkg/olsrd.postinst
new file mode 100644
index 000000000..fb6fa2bca
--- /dev/null
+++ b/package/olsrd/ipkg/olsrd.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf olsrd olsrd NO
diff --git a/package/olsrd/patches/patch-make_Makefile_linux b/package/olsrd/patches/patch-make_Makefile_linux
new file mode 100644
index 000000000..5ea807341
--- /dev/null
+++ b/package/olsrd/patches/patch-make_Makefile_linux
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- olsrd-0.5.6-r2.orig/make/Makefile.linux 2008-10-03 14:45:07.000000000 +0200
++++ olsrd-0.5.6-r2/make/Makefile.linux 2008-12-08 03:23:50.000000000 +0100
+@@ -4,7 +4,7 @@
+
+ ARCH := $(shell uname -m)
+ DESTDIR ?=
+-LIBDIR = $(DESTDIR)$(shell if [ "$(ARCH)" = "x86_64" -a -d "/usr/lib64" ]; then echo "/usr/lib64"; else echo "/usr/lib"; fi)
++LIBDIR = $(DESTDIR)/usr/lib
+
+ SRCS += $(wildcard src/linux/*.c src/unix/*.c)
+ HDRS += $(wildcard src/linux/*.h src/unix/*.h)