summaryrefslogtreecommitdiff
path: root/package/vrrpd
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/vrrpd
Initial import
Diffstat (limited to 'package/vrrpd')
-rw-r--r--package/vrrpd/Config.in13
-rw-r--r--package/vrrpd/Makefile32
-rw-r--r--package/vrrpd/files/vrrpd.init25
-rw-r--r--package/vrrpd/ipkg/vrrpd.control4
-rw-r--r--package/vrrpd/ipkg/vrrpd.postinst4
5 files changed, 78 insertions, 0 deletions
diff --git a/package/vrrpd/Config.in b/package/vrrpd/Config.in
new file mode 100644
index 000000000..c003fd8e9
--- /dev/null
+++ b/package/vrrpd/Config.in
@@ -0,0 +1,13 @@
+config ADK_PACKAGE_VRRPD
+ prompt "vrrpd............................. Virtual Router Redundancy Protocol daemon"
+ tristate
+ default n
+ help
+ VRRPd is an implementation of Virtual Router Redundancy
+ Protocol as specified in rfc2338. VRRPd is interoperable with
+ other RFC-based VRRP implementations, including Cisco and
+ Juniper, and is included as a standard feature on ImageStream
+ routers.
+
+ http://www.sourceforge.net/projects/vrrpd
+
diff --git a/package/vrrpd/Makefile b/package/vrrpd/Makefile
new file mode 100644
index 000000000..2cdab2132
--- /dev/null
+++ b/package/vrrpd/Makefile
@@ -0,0 +1,32 @@
+# $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:= vrrpd
+PKG_VERSION:= 1.0
+PKG_RELEASE:= 9
+PKG_MD5SUM:= 6d5066ea1a6ced817376ca0f54765447
+
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=vrrpd/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,VRRPD,vrrpd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+MAKE_FLAGS:= CC="${TARGET_CC}" \
+ DBG_OPT="" \
+ MAIN_OPT="${TARGET_CFLAGS}"
+ALL_TARGET:= vrrpd
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_VRRPD}/etc/init.d/
+ ${INSTALL_BIN} ./files/vrrpd.init \
+ ${IDIR_VRRPD}/etc/init.d/vrrpd
+ ${INSTALL_DIR} ${IDIR_VRRPD}/usr/sbin/
+ ${INSTALL_BIN} ${WRKBUILD}/vrrpd ${IDIR_VRRPD}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/vrrpd/files/vrrpd.init b/package/vrrpd/files/vrrpd.init
new file mode 100644
index 000000000..4660428fb
--- /dev/null
+++ b/package/vrrpd/files/vrrpd.init
@@ -0,0 +1,25 @@
+#!/bin/sh
+#FWINIT 70
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+ autostart)
+ test x"${vrrpd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+ start)
+ vrrpd $vrrpd_flags
+ ;;
+ stop)
+ killall vrrpd
+ ;;
+ restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+ *)
+ echo "usage: $0 {start | stop | restart}"
+ exit 1
+esac
+exit $?
diff --git a/package/vrrpd/ipkg/vrrpd.control b/package/vrrpd/ipkg/vrrpd.control
new file mode 100644
index 000000000..435dda18f
--- /dev/null
+++ b/package/vrrpd/ipkg/vrrpd.control
@@ -0,0 +1,4 @@
+Package: vrrpd
+Priority: optional
+Section: net
+Description: An implementation of the Virtual Router Redundancy Protocol
diff --git a/package/vrrpd/ipkg/vrrpd.postinst b/package/vrrpd/ipkg/vrrpd.postinst
new file mode 100644
index 000000000..4f40f8b1e
--- /dev/null
+++ b/package/vrrpd/ipkg/vrrpd.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf vrrpd vrrpd NO
+add_rcconf vrrpd_flags vrrpd_flags "-i vlan1 -v 1 192.168.1.1"