Move radvd to ipv6 section
authorFlorian Fainelli <florian@openwrt.org>
Thu, 7 Dec 2006 14:03:32 +0000 (14:03 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 7 Dec 2006 14:03:32 +0000 (14:03 +0000)
SVN-Revision: 5710

ipv6/radvd/Makefile [new file with mode: 0644]
ipv6/radvd/files/radvd.conf [new file with mode: 0644]
ipv6/radvd/files/radvd.init [new file with mode: 0644]
ipv6/radvd/patches/no-libfl.patch [new file with mode: 0644]
net/radvd/Makefile [deleted file]
net/radvd/files/radvd.conf [deleted file]
net/radvd/files/radvd.init [deleted file]
net/radvd/patches/no-libfl.patch [deleted file]

diff --git a/ipv6/radvd/Makefile b/ipv6/radvd/Makefile
new file mode 100644 (file)
index 0000000..31c5b27
--- /dev/null
@@ -0,0 +1,88 @@
+# 
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=radvd
+PKG_VERSION:=1.0
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
+               http://download.sourcemage.org/mirror
+PKG_MD5SUM:=142bb9d126a67215597d115ed551955e79889fad
+PKG_CAT:=zcat
+
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/radvd
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=IPv6 Routing Advertisement Daemon
+  DESCRIPTION:=IPv6 Routing Advertisement Daemon.
+  URL:=http://v6web.litech.org/radvd/
+endef
+
+define Package/radvd/conffiles
+/etc/radvd.conf
+endef
+
+define Build/Configure
+       (cd $(PKG_BUILD_DIR); rm -f config.cache; \
+               $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(TARGET_CFLAGS)" \
+               ./configure \
+                       --target=$(GNU_TARGET_NAME) \
+                       --host=$(GNU_TARGET_NAME) \
+                       --build=$(GNU_HOST_NAME) \
+                       --program-prefix="" \
+                       --program-suffix="" \
+                       --prefix=/usr \
+                       --exec-prefix=/usr \
+                       --bindir=/usr/bin \
+                       --datadir=/usr/share \
+                       --includedir=/usr/include \
+                       --infodir=/usr/share/info \
+                       --libdir=/usr/lib \
+                       --libexecdir=/usr/lib \
+                       --localstatedir=/var \
+                       --mandir=/usr/share/man \
+                       --sbindir=/usr/sbin \
+                       --sysconfdir=/etc \
+                       $(DISABLE_LARGEFILE) \
+                       $(DISABLE_NLS) \
+                       --with-configfile=/etc/radvd.conf \
+                       --with-logfile=/var/log/radvd.log \
+                       --with-pidfile=/var/run/radvd.pid \
+       );
+endef
+
+define Build/Compile
+       rm -rf $(PKG_INSTALL_DIR)
+       mkdir -p $(PKG_INSTALL_DIR)
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               radvd_LDADD=""
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               install
+endef
+
+define Package/radvd/install
+       $(INSTALL_DIR) $(1)/etc
+       $(INSTALL_DATA) ./files/radvd.conf $(1)/etc/radvd.conf
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,radvd))
diff --git a/ipv6/radvd/files/radvd.conf b/ipv6/radvd/files/radvd.conf
new file mode 100644 (file)
index 0000000..06d8357
--- /dev/null
@@ -0,0 +1,22 @@
+# For more examples, see the radvd documentation.
+
+interface br0
+{
+       AdvSendAdvert off;
+
+#
+# Disable Mobile IPv6 support
+#
+       AdvHomeAgentFlag off;
+
+#
+# example of a standard prefix
+#
+       prefix fec0:0:0:1::/64
+       {
+               AdvOnLink on;
+               AdvAutonomous on;
+               AdvRouterAddr off;
+       };
+
+};
diff --git a/ipv6/radvd/files/radvd.init b/ipv6/radvd/files/radvd.init
new file mode 100644 (file)
index 0000000..99e2ab2
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+
+start() {
+       echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
+       mkdir -p /var/log
+       mkdir -p /var/run
+       /usr/sbin/radvd
+}
+
+stop() {
+       killall radvd
+       echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
+}
diff --git a/ipv6/radvd/patches/no-libfl.patch b/ipv6/radvd/patches/no-libfl.patch
new file mode 100644 (file)
index 0000000..e17a127
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN radvd-0.7.3.old/scanner.l radvd-0.7.3/scanner.l
+--- radvd-0.7.3.old/scanner.l  2004-10-26 07:30:34.000000000 +0200
++++ radvd-0.7.3/scanner.l      2005-04-05 00:01:42.000000000 +0200
+@@ -21,6 +21,8 @@
+ extern char *conf_file;
++int yywrap(void) { return 1; }
++
+ int num_lines = 1;
+ %}
diff --git a/net/radvd/Makefile b/net/radvd/Makefile
deleted file mode 100644 (file)
index 31c5b27..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-# 
-# Copyright (C) 2006 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-# $Id$
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=radvd
-PKG_VERSION:=1.0
-PKG_RELEASE:=1
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
-               http://download.sourcemage.org/mirror
-PKG_MD5SUM:=142bb9d126a67215597d115ed551955e79889fad
-PKG_CAT:=zcat
-
-PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/radvd
-  SECTION:=net
-  CATEGORY:=Network
-  TITLE:=IPv6 Routing Advertisement Daemon
-  DESCRIPTION:=IPv6 Routing Advertisement Daemon.
-  URL:=http://v6web.litech.org/radvd/
-endef
-
-define Package/radvd/conffiles
-/etc/radvd.conf
-endef
-
-define Build/Configure
-       (cd $(PKG_BUILD_DIR); rm -f config.cache; \
-               $(TARGET_CONFIGURE_OPTS) \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               ./configure \
-                       --target=$(GNU_TARGET_NAME) \
-                       --host=$(GNU_TARGET_NAME) \
-                       --build=$(GNU_HOST_NAME) \
-                       --program-prefix="" \
-                       --program-suffix="" \
-                       --prefix=/usr \
-                       --exec-prefix=/usr \
-                       --bindir=/usr/bin \
-                       --datadir=/usr/share \
-                       --includedir=/usr/include \
-                       --infodir=/usr/share/info \
-                       --libdir=/usr/lib \
-                       --libexecdir=/usr/lib \
-                       --localstatedir=/var \
-                       --mandir=/usr/share/man \
-                       --sbindir=/usr/sbin \
-                       --sysconfdir=/etc \
-                       $(DISABLE_LARGEFILE) \
-                       $(DISABLE_NLS) \
-                       --with-configfile=/etc/radvd.conf \
-                       --with-logfile=/var/log/radvd.log \
-                       --with-pidfile=/var/run/radvd.pid \
-       );
-endef
-
-define Build/Compile
-       rm -rf $(PKG_INSTALL_DIR)
-       mkdir -p $(PKG_INSTALL_DIR)
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               radvd_LDADD=""
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               DESTDIR="$(PKG_INSTALL_DIR)" \
-               install
-endef
-
-define Package/radvd/install
-       $(INSTALL_DIR) $(1)/etc
-       $(INSTALL_DATA) ./files/radvd.conf $(1)/etc/radvd.conf
-       $(INSTALL_DIR) $(1)/etc/init.d
-       $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
-endef
-
-$(eval $(call BuildPackage,radvd))
diff --git a/net/radvd/files/radvd.conf b/net/radvd/files/radvd.conf
deleted file mode 100644 (file)
index 06d8357..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-# For more examples, see the radvd documentation.
-
-interface br0
-{
-       AdvSendAdvert off;
-
-#
-# Disable Mobile IPv6 support
-#
-       AdvHomeAgentFlag off;
-
-#
-# example of a standard prefix
-#
-       prefix fec0:0:0:1::/64
-       {
-               AdvOnLink on;
-               AdvAutonomous on;
-               AdvRouterAddr off;
-       };
-
-};
diff --git a/net/radvd/files/radvd.init b/net/radvd/files/radvd.init
deleted file mode 100644 (file)
index 99e2ab2..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
-
-start() {
-       echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
-       mkdir -p /var/log
-       mkdir -p /var/run
-       /usr/sbin/radvd
-}
-
-stop() {
-       killall radvd
-       echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
-}
diff --git a/net/radvd/patches/no-libfl.patch b/net/radvd/patches/no-libfl.patch
deleted file mode 100644 (file)
index e17a127..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN radvd-0.7.3.old/scanner.l radvd-0.7.3/scanner.l
---- radvd-0.7.3.old/scanner.l  2004-10-26 07:30:34.000000000 +0200
-+++ radvd-0.7.3/scanner.l      2005-04-05 00:01:42.000000000 +0200
-@@ -21,6 +21,8 @@
- extern char *conf_file;
-+int yywrap(void) { return 1; }
-+
- int num_lines = 1;
- %}