Skip to contentSkip to conversation

wvdial: new package

PATCH New spdawson at gmail.com 2 participants 2 messages Apr 25, 2013 – May 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 wvdial: new package

From: Simon Dawson <[email protected]>

---
v2: Improve in response to suggestions from Thomas Petazzoni

 package/Config.in                               |    1 +
 package/wvdial/Config.in                        |    9 +++++
 package/wvdial/wvdial-0001-uClibc-scandir.patch |   23 +++++++++++++
 package/wvdial/wvdial.mk                        |   42 +++++++++++++++++++++++
 4 files changed, 75 insertions(+)
 create mode 100644 package/wvdial/Config.in
 create mode 100644 package/wvdial/wvdial-0001-uClibc-scandir.patch
 create mode 100644 package/wvdial/wvdial.mk
package/Config.in +1 -0
index 33d75a9..84a92e1 100644
@@ -777,6 +777,7 @@ source "package/wireless-regdb/Config.in"
 source "package/wireless_tools/Config.in"
 source "package/wireshark/Config.in"
 source "package/wpa_supplicant/Config.in"
+source "package/wvdial/Config.in"
 source "package/xinetd/Config.in"
 source "package/xl2tp/Config.in"
 
package/wvdial/Config.in new file +9 -0
new file mode 100644
index 0000000..2dc93ab
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WVDIAL
+	bool "wvdial"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_USE_MMU # wvstreams
+	select BR2_PACKAGE_WVSTREAMS
+	help
+	  wvdial with support for software flow control and asyncmaps.
+
+	  http://wvdial.googlecode.com/
package/wvdial/wvdial-0001-uClibc-scandir.patch new file +23 -0
new file mode 100644
index 0000000..b611e94
@@ -0,0 +1,23 @@
+Fix wvdial so that it works with scandir as defined in uClibc.
+
+Signed-off-by: Simon Dawson <[email protected]>
+
+diff -Nurp a/wvmodemscan.cc b/wvmodemscan.cc
+--- a/wvmodemscan.cc	2009-09-29 18:27:28.000000000 +0100
++++ b/wvmodemscan.cc	2012-07-28 14:03:56.359729660 +0100
+@@ -495,13 +495,13 @@ static int fileselect(const struct diren
+ 	// (no internal ISDN support)   || !strncmp(e->d_name, "ttyI", 4);
+ }
+ 
+-#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 10)
++#if defined(__UCLIBC__) || (defined(__GLIBC__) && __GLIBC_PREREQ(2, 10))
+ static int filesort(const dirent **e1, const dirent **e2)
+ #else
+ static int filesort(const void *_e1, const void *_e2)
+ #endif
+ {
+-#if !(defined(__GLIBC__) && __GLIBC_PREREQ(2, 10))
++#if !(defined(__UCLIBC__) || (defined(__GLIBC__) && __GLIBC_PREREQ(2, 10)))
+     dirent const * const *e1 = (dirent const * const *)_e1;
+     dirent const * const *e2 = (dirent const * const *)_e2;
+ #endif
package/wvdial/wvdial.mk new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 2/2 wvdial: new package

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

"spdawson" == spdawson <[email protected]> writes:

spdawson> From: Simon Dawson <[email protected]> spdawson> Signed-off-by: Simon Dawson <[email protected]>

spdawson> ---
spdawson> v2: Improve in response to suggestions from Thomas Petazzoni

 spdawson>  package/Config.in                               |    1 +
 spdawson>  package/wvdial/Config.in                        |    9 +++++
 spdawson>  package/wvdial/wvdial-0001-uClibc-scandir.patch |   23 +++++++++++++
 spdawson>  package/wvdial/wvdial.mk                        |   42 +++++++++++++++++++++++
 spdawson>  4 files changed, 75 insertions(+)
 spdawson>  create mode 100644 package/wvdial/Config.in
 spdawson>  create mode 100644 package/wvdial/wvdial-0001-uClibc-scandir.patch
 spdawson>  create mode 100644 package/wvdial/wvdial.mk

spdawson> diff --git a/package/Config.in b/package/Config.in spdawson> index 33d75a9..84a92e1 100644
spdawson> --- a/package/Config.in
spdawson> +++ b/package/Config.in
spdawson> @@ -777,6 +777,7 @@ source "package/wireless-regdb/Config.in"

 spdawson>  source "package/wireless_tools/Config.in"
 spdawson>  source "package/wireshark/Config.in"
 spdawson>  source "package/wpa_supplicant/Config.in"

spdawson> +source "package/wvdial/Config.in"
spdawson> source "package/xinetd/Config.in"
spdawson> source "package/xl2tp/Config.in"

spdawson> diff --git a/package/wvdial/Config.in b/package/wvdial/Config.in spdawson> new file mode 100644
spdawson> index 0000000..2dc93ab
spdawson> --- /dev/null
spdawson> +++ b/package/wvdial/Config.in
spdawson> @@ -0,0 +1,9 @@
spdawson> +config BR2_PACKAGE_WVDIAL
spdawson> + bool "wvdial"
spdawson> + depends on BR2_INSTALL_LIBSTDCPP
spdawson> + depends on BR2_USE_MMU # wvstreams
spdawson> + select BR2_PACKAGE_WVSTREAMS
spdawson> + help
spdawson> + wvdial with support for software flow control and asyncmaps.

That description is not very helpful if people don't know wvdial. I've replaced it with the Debian description:

"wvdial is an intelligent Point-to-Point Protocol dialer"

and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard