Add radvd to the list of packages
PATCH 1/1 Add radvd to the list of packages
Add radvd, the IPv6 router advertisement daemon.
---
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(-)
package/Config.in +1 -0
@@ -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 +8 -0
@@ -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/
package/radvd/S50radvd new file +18 -0
@@ -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.mk new file +23 -0
@@ -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 $@
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/20090128/ef650f26/attachment.pgp
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> 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.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 Add radvd to the list of packages
In reply to Amand TihonAdd radvd, the IPv6 router advertisement daemon.
---
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(-)
package/Config.in +1 -0
@@ -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 +8 -0
@@ -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/
package/radvd/S50radvd new file +18 -0
@@ -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.mk new file +20 -0
@@ -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 $@
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/20090128/7f1b4a01/attachment.pgp
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]>
Thanks, committed as r25107.
Signature · 1 line
Bye, Peter Korsgaard