* [Buildroot] [PATCH] openvpn: Fix paths to external utilities
@ 2012-09-30 18:11 Valentine Barshak
2012-09-30 20:03 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Valentine Barshak @ 2012-09-30 18:11 UTC (permalink / raw)
To: buildroot
This sets paths to ifconfig, route, netstat and ip
in the target root filesystem.
Otherwise the paths leak from the host and may not
match those on the target.
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
package/openvpn/openvpn.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index 03eabcf..b7e13f5 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -6,7 +6,11 @@
OPENVPN_VERSION = 2.2.2
OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
-OPENVPN_CONF_OPT = --enable-small --disable-plugins
+OPENVPN_CONF_OPT = --enable-small --disable-plugins \
+ --with-ifconfig-path=/sbin/ifconfig \
+ --with-route-path=/sbin/route \
+ --with-netstat-path=/bin/netstat \
+ --with-iproute-path=/bin/ip
ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
OPENVPN_DEPENDENCIES += lzo
--
1.7.11.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] openvpn: Fix paths to external utilities
2012-09-30 18:11 [Buildroot] [PATCH] openvpn: Fix paths to external utilities Valentine Barshak
@ 2012-09-30 20:03 ` Gustavo Zacarias
2012-09-30 20:40 ` Valentine Barshak
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2012-09-30 20:03 UTC (permalink / raw)
To: buildroot
On 09/30/12 15:11, Valentine Barshak wrote:
> This sets paths to ifconfig, route, netstat and ip
> in the target root filesystem.
>
> Otherwise the paths leak from the host and may not
> match those on the target.
>
> Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
> ---
> package/openvpn/openvpn.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
> index 03eabcf..b7e13f5 100644
> --- a/package/openvpn/openvpn.mk
> +++ b/package/openvpn/openvpn.mk
> @@ -6,7 +6,11 @@
>
> OPENVPN_VERSION = 2.2.2
> OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
> -OPENVPN_CONF_OPT = --enable-small --disable-plugins
> +OPENVPN_CONF_OPT = --enable-small --disable-plugins \
> + --with-ifconfig-path=/sbin/ifconfig \
> + --with-route-path=/sbin/route \
> + --with-netstat-path=/bin/netstat \
> + --with-iproute-path=/bin/ip
And what happens if i install let's say iproute2 which provides a
nicer/bigger /sbin/ip instead of using the busybox one?
Regards.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] openvpn: Fix paths to external utilities
2012-09-30 20:03 ` Gustavo Zacarias
@ 2012-09-30 20:40 ` Valentine Barshak
0 siblings, 0 replies; 3+ messages in thread
From: Valentine Barshak @ 2012-09-30 20:40 UTC (permalink / raw)
To: buildroot
On 10/01/2012 12:03 AM, Gustavo Zacarias wrote:
> On 09/30/12 15:11, Valentine Barshak wrote:
>
>> This sets paths to ifconfig, route, netstat and ip
>> in the target root filesystem.
>>
>> Otherwise the paths leak from the host and may not
>> match those on the target.
>>
>> Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
>> ---
>> package/openvpn/openvpn.mk | 6 +++++-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
>> index 03eabcf..b7e13f5 100644
>> --- a/package/openvpn/openvpn.mk
>> +++ b/package/openvpn/openvpn.mk
>> @@ -6,7 +6,11 @@
>>
>> OPENVPN_VERSION = 2.2.2
>> OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
>> -OPENVPN_CONF_OPT = --enable-small --disable-plugins
>> +OPENVPN_CONF_OPT = --enable-small --disable-plugins \
>> + --with-ifconfig-path=/sbin/ifconfig \
>> + --with-route-path=/sbin/route \
>> + --with-netstat-path=/bin/netstat \
>> + --with-iproute-path=/bin/ip
>
> And what happens if i install let's say iproute2 which provides a
> nicer/bigger /sbin/ip instead of using the busybox one?
> Regards.
>
You'll be surprised to see openvpn fail to find it :)
Unless you build on the latest fedora, which has this stuff in
/usr/sbin. So you won't see any difference, because it has failed to
find it before.
I'll submit new version with BR2_PACKAGE_IPROUTE2 check.
Thanks,
Val.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-30 20:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-30 18:11 [Buildroot] [PATCH] openvpn: Fix paths to external utilities Valentine Barshak
2012-09-30 20:03 ` Gustavo Zacarias
2012-09-30 20:40 ` Valentine Barshak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox