* [Buildroot] [PATCH] Add radvd to the list of packages
@ 2009-01-28 20:31 Amand Tihon
2009-01-28 20:54 ` Peter Korsgaard
2009-01-28 21:35 ` Amand Tihon
0 siblings, 2 replies; 7+ messages in thread
From: Amand Tihon @ 2009-01-28 20:31 UTC (permalink / raw)
To: buildroot
Add radvd, the IPv6 router advertisement daemon.
Signed-off-by: Amand Tihon <amand.tihon@alrj.org>
---
Second try, I hope I got it right this time.
Still wondering about the installed binaries' names, hence the hack in
$(RADVD_HOOK_POST_INSTALL). Any idea welcome.
package/Config.in | 1 +
package/radvd/Config.in | 8 ++++++++
package/radvd/S50radvd | 18 ++++++++++++++++++
package/radvd/radvd.mk | 23 +++++++++++++++++++++++
4 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/package/Config.in b/package/Config.in
index 29190b2..bb16015 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/radvd/Config.in b/package/radvd/Config.in
new file mode 100644
index 0000000..deadf7f
--- /dev/null
+++ b/package/radvd/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_RADVD
+ bool "radvd"
+ select BR2_PACKAGE_FLEX
+ depends on BR2_INET_IPV6
+ help
+ IPv6 Router Advertisement Daemon.
+
+ http://www.litech.org/radvd/
diff --git a/package/radvd/S50radvd b/package/radvd/S50radvd
new file mode 100755
index 0000000..d3e2cd1
--- /dev/null
+++ b/package/radvd/S50radvd
@@ -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
diff --git a/package/radvd/radvd.mk b/package/radvd/radvd.mk
new file mode 100644
index 0000000..b494df3
--- /dev/null
+++ b/package/radvd/radvd.mk
@@ -0,0 +1,23 @@
+#############################################################
+#
+# radvd
+#
+#############################################################
+RADVD_VERSION:=1.2
+RADVD_SOURCE:=radvd-$(RADVD_VERSION).tar.gz
+RADVD_SITE:=http://www.litech.org/radvd/dist/
+RADVD_AUTORECONF:=no
+RADVD_INSTALL_STAGING:=no
+RADVD_INSTALL_TARGET:=YES
+RADVD_DEPENDENCIES:=uclibc flex
+RADVD_MAKE:=$(MAKE1)
+
+$(eval $(call AUTOTARGETS,package,radvd))
+
+$(RADVD_HOOK_POST_INSTALL): $(RADVD_TARGET_INSTALL_TARGET)
+ mv $(TARGET_DIR)/usr/sbin/$(ARCH)-linux-radvd \
+ $(TARGET_DIR)/usr/sbin/radvd
+ mv $(TARGET_DIR)/usr/sbin/$(ARCH)-linux-radvdump \
+ $(TARGET_DIR)/usr/sbin/radvdump
+ $(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d
+ touch $@
--
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/20090128/ef650f26/attachment.pgp
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Buildroot] [PATCH] Add radvd to the list of packages
2009-01-28 20:31 [Buildroot] [PATCH] Add radvd to the list of packages Amand Tihon
@ 2009-01-28 20:54 ` Peter Korsgaard
2009-01-28 21:35 ` Amand Tihon
1 sibling, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2009-01-28 20:54 UTC (permalink / raw)
To: buildroot
>>>>> "Amand" == Amand Tihon <amand.tihon@alrj.org> writes:
Amand> Add radvd, the IPv6 router advertisement daemon.
Amand> Signed-off-by: Amand Tihon <amand.tihon@alrj.org>
Amand> ---
Amand> Second try, I hope I got it right this time.
Yes, almost there ;)
Amand> --- /dev/null
Amand> +++ b/package/radvd/Config.in
Amand> @@ -0,0 +1,8 @@
Amand> +config BR2_PACKAGE_RADVD
Amand> + bool "radvd"
Amand> + select BR2_PACKAGE_FLEX
Amand> + depends on BR2_INET_IPV6
Amand> + help
Amand> + IPv6 Router Advertisement Daemon.
Amand> +
Trailing spaces here.
Amand> +++ b/package/radvd/radvd.mk
Amand> @@ -0,0 +1,23 @@
Amand> +#############################################################
Amand> +#
Amand> +# radvd
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_AUTORECONF:=no
Amand> +RADVD_INSTALL_STAGING:=no
Amand> +RADVD_INSTALL_TARGET:=YES
Amand> +RADVD_DEPENDENCIES:=uclibc flex
Amand> +RADVD_MAKE:=$(MAKE1)
Amand> +
Amand> +$(eval $(call AUTOTARGETS,package,radvd))
Amand> +
Amand> +$(RADVD_HOOK_POST_INSTALL): $(RADVD_TARGET_INSTALL_TARGET)
Amand> + mv $(TARGET_DIR)/usr/sbin/$(ARCH)-linux-radvd \
Amand> + $(TARGET_DIR)/usr/sbin/radvd
I'm pretty sure you can get it to not prepend that to the binaries by
passing --program-prefix='' in your RADVD_CONF_OPT
Other than that it looks good.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] Add radvd to the list of packages
2009-01-28 20:31 [Buildroot] [PATCH] Add radvd to the list of packages Amand Tihon
2009-01-28 20:54 ` Peter Korsgaard
@ 2009-01-28 21:35 ` Amand Tihon
2009-01-28 21:39 ` Peter Korsgaard
1 sibling, 1 reply; 7+ messages in thread
From: Amand Tihon @ 2009-01-28 21:35 UTC (permalink / raw)
To: buildroot
Add radvd, the IPv6 router advertisement daemon.
Signed-off-by: Amand Tihon <amand.tihon@alrj.org>
---
Never two without three... This one should make it :)
package/Config.in | 1 +
package/radvd/Config.in | 8 ++++++++
package/radvd/S50radvd | 18 ++++++++++++++++++
package/radvd/radvd.mk | 20 ++++++++++++++++++++
4 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/package/Config.in b/package/Config.in
index 29190b2..bb16015 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/radvd/Config.in b/package/radvd/Config.in
new file mode 100644
index 0000000..072aed4
--- /dev/null
+++ b/package/radvd/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_RADVD
+ bool "radvd"
+ select BR2_PACKAGE_FLEX
+ depends on BR2_INET_IPV6
+ help
+ IPv6 Router Advertisement Daemon.
+
+ http://www.litech.org/radvd/
diff --git a/package/radvd/S50radvd b/package/radvd/S50radvd
new file mode 100755
index 0000000..d3e2cd1
--- /dev/null
+++ b/package/radvd/S50radvd
@@ -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
diff --git a/package/radvd/radvd.mk b/package/radvd/radvd.mk
new file mode 100644
index 0000000..268c26d
--- /dev/null
+++ b/package/radvd/radvd.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# radvd
+#
+#############################################################
+RADVD_VERSION:=1.2
+RADVD_SOURCE:=radvd-$(RADVD_VERSION).tar.gz
+RADVD_SITE:=http://www.litech.org/radvd/dist/
+RADVD_AUTORECONF:=no
+RADVD_INSTALL_STAGING:=no
+RADVD_INSTALL_TARGET:=YES
+RADVD_DEPENDENCIES:=uclibc flex
+RADVD_MAKE:=$(MAKE1)
+RADVD_CONF_OPT:= --program-prefix=''
+
+$(eval $(call AUTOTARGETS,package,radvd))
+
+$(RADVD_HOOK_POST_INSTALL): $(RADVD_TARGET_INSTALL_TARGET)
+ $(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d
+ touch $@
--
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/20090128/7f1b4a01/attachment.pgp
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] Add radvd to the list of packages
@ 2009-01-27 16:57 Amand Tihon
2009-01-27 17:03 ` Peter Korsgaard
2009-01-27 21:14 ` Amand Tihon
0 siblings, 2 replies; 7+ messages in thread
From: Amand Tihon @ 2009-01-27 16:57 UTC (permalink / raw)
To: buildroot
Add radvd, the IPv6 router advertisement daemon.
Signed-off-by: Amand Tihon <amand.tihon@alrj.org>
---
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
diff --git a/package/Config.in b/package/Config.in
index 29190b2..bb16015 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/radvd/Config.in b/package/radvd/Config.in
new file mode 100644
index 0000000..12ad762
--- /dev/null
+++ b/package/radvd/Config.in
@@ -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/
diff --git a/package/radvd/S50radvd b/package/radvd/S50radvd
new file mode 100644
index 0000000..d3e2cd1
--- /dev/null
+++ b/package/radvd/S50radvd
@@ -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
diff --git a/package/radvd/radvd-1.2-avr32.patch b/package/radvd/radvd-1.2-avr32.patch
new file mode 100644
index 0000000..4e7b4ce
--- /dev/null
+++ b/package/radvd/radvd-1.2-avr32.patch
@@ -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-* \
diff --git a/package/radvd/radvd.mk b/package/radvd/radvd.mk
new file mode 100644
index 0000000..29f4d8d
--- /dev/null
+++ b/package/radvd/radvd.mk
@@ -0,0 +1,64 @@
+#############################################################
+#
+# radvd
+#
+#############################################################
+
+RADVD_VERSION=1.2
+RADVD_SOURCE=radvd-$(RADVD_VERSION).tar.gz
+RADVD_SITE=http://www.litech.org/radvd/dist/
+RADVD_DIR=$(BUILD_DIR)/radvd-$(RADVD_VERSION)
+RADVD_CAT:=$(ZCAT)
+
+$(DL_DIR)/$(RADVD_SOURCE):
+ $(WGET) -P $(DL_DIR) $(RADVD_SITE)/$(RADVD_SOURCE)
+
+$(RADVD_DIR)/.unpacked: $(DL_DIR)/$(RADVD_SOURCE)
+ $(RADVD_CAT) $(DL_DIR)/$(RADVD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(RADVD_DIR) package/radvd/ \*.patch*
+ touch $(RADVD_DIR)/.unpacked
+
+$(RADVD_DIR)/.configured: $(RADVD_DIR)/.unpacked
+ (cd $(RADVD_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CONFIGURE_ARGS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-configfile=/etc/radvd.conf \
+ )
+ touch $(RADVD_DIR)/.configured
+
+$(RADVD_DIR)/radvd: $(RADVD_DIR)/.configured
+ $(MAKE1) CC=$(TARGET_CC) -C $(RADVD_DIR)
+
+$(TARGET_DIR)/usr/sbin/radvd: $(RADVD_DIR)/radvd
+ $(MAKE) DESTDIR=$(TARGET_DIR) -C $(RADVD_DIR) install-strip
+ mv $(TARGET_DIR)/usr/sbin/$(ARCH)-linux-radvd \
+ $(TARGET_DIR)/usr/sbin/radvd
+ mv $(TARGET_DIR)/usr/sbin/$(ARCH)-linux-radvdump \
+ $(TARGET_DIR)/usr/sbin/radvdump
+ $(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d
+
+radvd: flex uclibc $(TARGET_DIR)/usr/sbin/radvd
+
+radvd-source: $(DL_DIR)/$(RADVD_SOURCE)
+
+radvd-clean:
+ -$(MAKE) -C $(RADVD_DIR) clean
+ rm -f $(TARGET_DIR)/usr/sbin/radvd
+ rm -f $(TARGET_DIR)/etc/radvd.conf.example
+
+radvd-dirclean:
+ rm -rf $(RADVD_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(BR2_PACKAGE_RADVD),y)
+TARGETS+=radvd
+endif
--
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
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Buildroot] [PATCH] Add radvd to the list of packages
2009-01-27 16:57 Amand Tihon
@ 2009-01-27 17:03 ` Peter Korsgaard
2009-01-27 21:14 ` Amand Tihon
1 sibling, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2009-01-27 17:03 UTC (permalink / raw)
To: buildroot
>>>>> "Amand" == Amand Tihon <amand.tihon@alrj.org> writes:
Amand> Add radvd, the IPv6 router advertisement daemon.
Amand> Signed-off-by: Amand Tihon <amand.tihon@alrj.org>
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.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] Add radvd to the list of packages
2009-01-27 16:57 Amand Tihon
2009-01-27 17:03 ` Peter Korsgaard
@ 2009-01-27 21:14 ` Amand Tihon
1 sibling, 0 replies; 7+ messages in thread
From: Amand Tihon @ 2009-01-27 21:14 UTC (permalink / raw)
To: buildroot
Le mardi 27 janvier 2009, Amand Tihon a ?crit?:
> 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.
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-28 21:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28 20:31 [Buildroot] [PATCH] Add radvd to the list of packages Amand Tihon
2009-01-28 20:54 ` Peter Korsgaard
2009-01-28 21:35 ` Amand Tihon
2009-01-28 21:39 ` Peter Korsgaard
-- strict thread matches above, loose matches on Subject: below --
2009-01-27 16:57 Amand Tihon
2009-01-27 17:03 ` Peter Korsgaard
2009-01-27 21:14 ` Amand Tihon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox