Skip to contentSkip to conversation

Add radvd to the list of packages

PATCH New Amand Tihon 2 participants 3 messages Jan 27, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add radvd to the list of packages

Add radvd, the IPv6 router advertisement daemon.

---

Note that it has only been tested on avr32 (ngw100) using Atmel's latest stable buildroot (v2.3.0). A basic init script is included.

On a side note, if anywone knows why the binaries are installed as "/usr/sbin/avr32-linux-radvd*" instead of simply "/usr/sbin/radvd-*", I'd be happy to be know how to correct that behaviour.

Thanks in advance, and please bear with me if there's anything wrong. I'm fairly new to Builroot.

 package/Config.in                   |    1 +
 package/radvd/Config.in             |    9 +++++
 package/radvd/S50radvd              |   18 ++++++++++
 package/radvd/radvd-1.2-avr32.patch |   21 +++++++++++
 package/radvd/radvd.mk              |   64 +++++++++++++++++++++++++++++++++++
 5 files changed, 113 insertions(+), 0 deletions(-)
 create mode 100644 package/radvd/Config.in
 create mode 100644 package/radvd/S50radvd
 create mode 100644 package/radvd/radvd-1.2-avr32.patch
 create mode 100644 package/radvd/radvd.mk
package/Config.in +1 -0
index 29190b2..bb16015 100644
@@ -189,6 +189,7 @@ source "package/openvpn/Config.in"
 source "package/openswan/Config.in"
 source "package/portmap/Config.in"
 source "package/pppd/Config.in"
+source "package/radvd/Config.in"
 source "package/rp-pppoe/Config.in"
 source "package/pptp-linux/Config.in"
 source "package/proftpd/Config.in"
package/radvd/Config.in new file +9 -0
new file mode 100644
index 0000000..12ad762
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_RADVD
+	bool "radvd"
+	default n
+	select BR2_PACKAGE_FLEX
+	depends on BR2_PACKAGE_KMOD_IPV6
+	help
+	  IPv6 Router Advertisement Daemon.
+	
+	  http://www.litech.org/radvd/
package/radvd/S50radvd new file +18 -0
new file mode 100644
index 0000000..d3e2cd1
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+RADVD=/usr/sbin/radvd
+
+echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
+
+echo -n "Starting radvd: "
+if [ ! -x "${RADVD}" ]; then
+	echo "missing"
+	exit 1
+fi
+
+if ${RADVD} ; then
+	echo "done"
+else
+	echo "failed"
+	exit 1
+fi
package/radvd/radvd-1.2-avr32.patch new file +21 -0
new file mode 100644
index 0000000..4e7b4ce
@@ -0,0 +1,21 @@
+diff -ru radvd-1.2_vanilla/config.sub radvd-1.2/config.sub
+--- radvd-1.2_vanilla/config.sub	2003-11-21 15:53:23.000000000 +0100
++++ radvd-1.2/config.sub	2009-01-25 14:40:12.000000000 +0100
+@@ -228,7 +228,7 @@
+ 	| a29k \
+ 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
++	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ 	| c4x | clipper \
+ 	| d10v | d30v | dsp16xx \
+ 	| fr30 \
+@@ -282,7 +282,7 @@
+ 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ 	| arm-*  | armbe-* | armle-* | armv*-* \
+-	| avr-* \
++	| avr-* | avr32-* \
+ 	| bs2000-* \
+ 	| c[123]* | c30-* | [cjt]90-* | c54x-* \
+ 	| clipper-* | cray2-* | cydra-* \
package/radvd/radvd.mk new file +64 -0

64 lines not on this page · raw message

Signature · 10 lines
Amand Tihon
Rue du Ruchaux, 1 - 1490 Court-St-Etienne, Belgique
+32 479 207 743
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/buildroot/attachments/20090127/e0d749d9/attachment.pgp 
#1 lore raw

PATCH 1/1 Add radvd to the list of packages

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Amand" == Amand Tihon <[email protected]> writes:

Amand> Add radvd, the IPv6 router advertisement daemon. Amand> Signed-off-by: Amand Tihon <[email protected]> Amand> ---

Amand> Note that it has only been tested on avr32 (ngw100) using Amand> Atmel's latest stable buildroot (v2.3.0). A basic init script Amand> is included.

I'll take a closer look at this after the release, but here's a few comments:

Amand> +++ b/package/radvd/Config.in
Amand> @@ -0,0 +1,9 @@
Amand> +config BR2_PACKAGE_RADVD
Amand> + bool "radvd"
Amand> + default n
Amand> + select BR2_PACKAGE_FLEX
Amand> + depends on BR2_PACKAGE_KMOD_IPV6

KMOD_IPV6 - What's that?

I would have expected a depends on BR2_INET_IPV6

Amand> +++ b/package/radvd/radvd-1.2-avr32.patch
Amand> @@ -0,0 +1,21 @@
Amand> +diff -ru radvd-1.2_vanilla/config.sub radvd-1.2/config.sub
Amand> +--- radvd-1.2_vanilla/config.sub 2003-11-21 15:53:23.000000000 +0100

Isn't that handled by the CONFIG_UPDATE stuff?

Amand> diff --git a/package/radvd/radvd.mk b/package/radvd/radvd.mk Amand> new file mode 100644
Amand> index 0000000..29f4d8d
Amand> --- /dev/null
Amand> +++ b/package/radvd/radvd.mk
Amand> @@ -0,0 +1,64 @@
Amand> +############################################################# Amand> +#
Amand> +# radvd
Amand> +#
Amand> +############################################################# Amand> +
Amand> +RADVD_VERSION=1.2
Amand> +RADVD_SOURCE=radvd-$(RADVD_VERSION).tar.gz
Amand> +RADVD_SITE=http://www.litech.org/radvd/dist/ Amand> +RADVD_DIR=$(BUILD_DIR)/radvd-$(RADVD_VERSION) Amand> +RADVD_CAT:=$(ZCAT)
Amand> +
Amand> +$(DL_DIR)/$(RADVD_SOURCE):
Amand> + $(WGET) -P $(DL_DIR) $(RADVD_SITE)/$(RADVD_SOURCE)
Amand> +
Amand> +$(RADVD_DIR)/.unpacked: $(DL_DIR)/$(RADVD_SOURCE)

Please use Makefile.autotools.in instead of adding a new old-style package.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 Add radvd to the list of packages

In reply to Amand Tihon

Le mardi 27 janvier 2009, Amand Tihon a ?crit?:

Quoted 1 line

Add radvd, the IPv6 router advertisement daemon.

Thanks to Peter Korsgaard help, I'm working on a much cleaner patch.

One small thing still bugs me: the executables are installed in $(TARGET_DIR) as (in my case) "avr32-linux-radvd" and "avr32-linux-radvdump" instead of plain "radvd" and "radvdump".

My current solution is to rename both files in $(RADVD_HOOK_POST_INSTALL). At least, it's working.

Does anyone know what could cause this, and how to correct it ?

Thanks in advance.

Signature · 10 lines
Amand Tihon
Rue du Ruchaux, 1 - 1490 Court-St-Etienne, Belgique
+32 479 207 743
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/buildroot/attachments/20090127/2049ec22/attachment.pgp