Re: [ptxdist] [PATCH 2/2] wvdial: Add package

2017-10-16 Thread Sascha Hauer
Hi Ladis,

On Mon, Oct 16, 2017 at 02:36:41PM +0200, Ladislav Michl wrote:
> On Mon, Oct 16, 2017 at 02:15:30PM +0200, Sascha Hauer wrote:
> > Back in the good old days wvdial was used to easily connect
> > a modem to the internet without having to write chat scripts
> > manually. Some people still use modems, so add support for
> > wvdial to ptxdist.
> 
> What is the advantage using it over ModemManager in the good
> recent days (except size and legacy reasons)?
> This is serious question, I'm ready to kick ModemManager
> if this proves to be a better solution.

I did this on customer request for an ancient, pre-dbus powerPC system.
I doubt it's a better solution than ModemManager.

Sascha

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 2/2] wvdial: Add package

2017-10-16 Thread Ladislav Michl
On Mon, Oct 16, 2017 at 02:15:30PM +0200, Sascha Hauer wrote:
> Back in the good old days wvdial was used to easily connect
> a modem to the internet without having to write chat scripts
> manually. Some people still use modems, so add support for
> wvdial to ptxdist.

What is the advantage using it over ModemManager in the good
recent days (except size and legacy reasons)?
This is serious question, I'm ready to kick ModemManager
if this proves to be a better solution.

ladis

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH 2/2] wvdial: Add package

2017-10-16 Thread Sascha Hauer
Back in the good old days wvdial was used to easily connect
a modem to the internet without having to write chat scripts
manually. Some people still use modems, so add support for
wvdial to ptxdist.

The original wvdial uses a homebrew build system not suitable
for cross compilation, so we replace it with autoconf/automake.

Signed-off-by: Sascha Hauer 
---
 patches/wvdial-1.61/0001-remove-build-files.patch  | 552 +
 .../0002-Add-autoconf-automake-files.patch | 292 +++
 patches/wvdial-1.61/autogen.sh |  27 +
 patches/wvdial-1.61/series |   2 +
 rules/wvdial.in|  34 ++
 rules/wvdial.make  |  66 +++
 6 files changed, 973 insertions(+)
 create mode 100644 patches/wvdial-1.61/0001-remove-build-files.patch
 create mode 100644 patches/wvdial-1.61/0002-Add-autoconf-automake-files.patch
 create mode 100755 patches/wvdial-1.61/autogen.sh
 create mode 100644 patches/wvdial-1.61/series
 create mode 100644 rules/wvdial.in
 create mode 100644 rules/wvdial.make

diff --git a/patches/wvdial-1.61/0001-remove-build-files.patch 
b/patches/wvdial-1.61/0001-remove-build-files.patch
new file mode 100644
index 0..6c561c08e
--- /dev/null
+++ b/patches/wvdial-1.61/0001-remove-build-files.patch
@@ -0,0 +1,552 @@
+From 451b4b47aca6c7e6e2daaf1e6941b327f8a6efbe Mon Sep 17 00:00:00 2001
+From: Sascha Hauer 
+Date: Fri, 29 Sep 2017 09:04:00 +0200
+Subject: [PATCH 1/2] remove build files
+
+Signed-off-by: Sascha Hauer 
+---
+ Makefile.in|  74 
+ config.defaults.mk |  35 
+ configure  |  13 ---
+ gen-cc |  26 --
+ wvrules-posix.mk   |  96 -
+ wvrules.mk | 248 -
+ 6 files changed, 492 deletions(-)
+ delete mode 100644 Makefile.in
+ delete mode 100644 config.defaults.mk
+ delete mode 100755 configure
+ delete mode 100755 gen-cc
+ delete mode 100644 wvrules-posix.mk
+ delete mode 100644 wvrules.mk
+
+diff --git a/Makefile.in b/Makefile.in
+deleted file mode 100644
+index ebe8c94..000
+--- a/Makefile.in
 /dev/null
+@@ -1,74 +0,0 @@
+-WVPACKAGE_NAME=@PACKAGE_NAME@
+-WVPACKAGE_STRING=@PACKAGE_STRING@
+-WVPACKAGE_TARNAME=@PACKAGE_TARNAME@
+-WVPACKAGE_VERSION=@PACKAGE_VERSION@
+-
+-prefix=/usr/local
+-WVSTREAMS_INC=
+-WVSTREAMS_LIB=
+-WVSTREAMS_BIN=$(prefix)/bin
+-WVSTREAMS_SRC=.
+-
+-PC_CFLAGS=$(shell pkg-config --cflags libwvstreams)
+-ifeq ($(PC_CFLAGS),)
+- $(error WvStreams does not appear to be installed)
+-endif
+-CPPFLAGS+=$(PC_CFLAGS)
+-
+-PC_LIBS=$(shell pkg-config --libs libwvstreams)
+-ifeq ($(PC_LIBS),)
+- $(error WvStreams does not appear to be installed)
+-endif
+-LIBS+=$(PC_LIBS)
+-
+-BINDIR=${prefix}/bin
+-MANDIR=${prefix}/share/man
+-PPPDIR=/etc/ppp/peers
+-
+-include wvrules.mk
+-
+-default: all papchaptest
+-all: wvdial.a wvdial wvdialconf pppmon
+-
+-wvdial.a: wvdialer.o wvmodemscan.o wvpapchap.o wvdialbrain.o \
+-  wvdialmon.o
+-
+-wvdial wvdialconf papchaptest pppmon: \
+-  LDFLAGS+=-luniconf -lwvstreams -lwvutils -lwvbase
+-
+-wvdial wvdialconf papchaptest pppmon: wvdial.a
+-
+-install-bin: all
+-  [ -d ${BINDIR}  ] || install -d ${BINDIR}
+-  [ -d ${PPPDIR}  ] || install -d ${PPPDIR}
+-  install -m 0755 wvdial wvdialconf ${BINDIR}
+-  cp ppp.provider ${PPPDIR}/wvdial
+-  cp ppp.provider-pipe ${PPPDIR}/wvdial-pipe
+-
+-install-man:
+-  [ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
+-  [ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
+-  install -m 0644 wvdial.1 wvdialconf.1 ${MANDIR}/man1
+-  install -m 0644 wvdial.conf.5 ${MANDIR}/man5
+-
+-install: install-bin install-man
+-
+-uninstall-bin:
+-  rm -f ${BINDIR}/wvdial ${BINDIR}/wvdialconf
+-  rm -f ${PPPDIR}/wvdial
+-  rm -f ${PPPDIR}/wvdial-pipe
+-
+-uninstall-man:
+-  rm -f ${MANDIR}/man1/wvdial.1 ${MANDIR}/man1/wvdialconf.1
+-  rm -f ${MANDIR}/man5/wvdial.conf.5
+-
+-uninstall: uninstall-bin uninstall-man
+-
+-clean:
+-  rm -f wvdial wvdialconf wvdialmon papchaptest pppmon
+-
+-distclean:
+-  rm -f version.h Makefile
+-
+-.PHONY: clean all install-bin install-man install uninstall-bin uninstall-man 
\
+-  uninstall
+diff --git a/config.defaults.mk b/config.defaults.mk
+deleted file mode 100644
+index 1210f10..000
+--- a/config.defaults.mk
 /dev/null
+@@ -1,35 +0,0 @@
+-COMPILER_STANDARD=posix
+-EXEEXT=
+-INSTALL=/usr/bin/install -c
+-INSTALL_DATA=${INSTALL} -m 644
+-INSTALL_PROGRAM=${INSTALL}
+-INSTALL_SCRIPT=${INSTALL}
+-LN_S=ln -s
+-LN=ln
+-MOC=/usr/bin/moc
+-
+-LIBS_DBUS=-ldbus-1
+-LIBS_QT=-lqt-mt
+-LIBS_PAM=-lpam
+-LIBS_TCL=
+-
+-prefix=/usr/local
+-datadir=${prefix}/share
+-includedir=${prefix}/include
+-infodir=${prefix}/share/info
+-localstatedir=${prefix}/var
+-mandir=${prefix}/share/man

Re: [ptxdist] [PATCH 2/2] wvdial: Add package

2017-09-30 Thread Michael Olbrich
On Fri, Sep 29, 2017 at 03:52:02PM +0200, Sascha Hauer wrote:
> Back in the good old days wvdial was used to easily connect
> a modem to the internet without having to write chat scripts
> manually. Some people still use modems, so add support for
> wvdial to ptxdist.
> 
> The original wvdial uses a homebrew build system not suitable
> for cross compilation, so we replace it with autoconf/automake.
> 
> Signed-off-by: Sascha Hauer 
> ---
>  patches/wvdial-1.61/0001-remove-build-files.patch  | 552 
> +
>  .../0002-Add-autoconf-automake-files.patch | 292 +++
>  patches/wvdial-1.61/autogen.sh |  27 +
>  patches/wvdial-1.61/series |   2 +
>  rules/wvdial.in|  32 ++
>  rules/wvdial.make  |  69 +++
>  6 files changed, 974 insertions(+)
>  create mode 100644 patches/wvdial-1.61/0001-remove-build-files.patch
>  create mode 100644 patches/wvdial-1.61/0002-Add-autoconf-automake-files.patch
>  create mode 100755 patches/wvdial-1.61/autogen.sh
>  create mode 100644 patches/wvdial-1.61/series
>  create mode 100644 rules/wvdial.in
>  create mode 100644 rules/wvdial.make
> 
> diff --git a/patches/wvdial-1.61/0001-remove-build-files.patch 
> b/patches/wvdial-1.61/0001-remove-build-files.patch
> new file mode 100644
> index 0..6c561c08e
> --- /dev/null
> +++ b/patches/wvdial-1.61/0001-remove-build-files.patch
> @@ -0,0 +1,552 @@
> +From 451b4b47aca6c7e6e2daaf1e6941b327f8a6efbe Mon Sep 17 00:00:00 2001
> +From: Sascha Hauer 
> +Date: Fri, 29 Sep 2017 09:04:00 +0200
> +Subject: [PATCH 1/2] remove build files
> +
> +Signed-off-by: Sascha Hauer 
> +---
> + Makefile.in|  74 
> + config.defaults.mk |  35 
> + configure  |  13 ---
> + gen-cc |  26 --
> + wvrules-posix.mk   |  96 -
> + wvrules.mk | 248 
> -
> + 6 files changed, 492 deletions(-)
> + delete mode 100644 Makefile.in
> + delete mode 100644 config.defaults.mk
> + delete mode 100755 configure
> + delete mode 100755 gen-cc
> + delete mode 100644 wvrules-posix.mk
> + delete mode 100644 wvrules.mk
> +
> +diff --git a/Makefile.in b/Makefile.in
> +deleted file mode 100644
> +index ebe8c94..000
> +--- a/Makefile.in
>  /dev/null
> +@@ -1,74 +0,0 @@
> +-WVPACKAGE_NAME=@PACKAGE_NAME@
> +-WVPACKAGE_STRING=@PACKAGE_STRING@
> +-WVPACKAGE_TARNAME=@PACKAGE_TARNAME@
> +-WVPACKAGE_VERSION=@PACKAGE_VERSION@
> +-
> +-prefix=/usr/local
> +-WVSTREAMS_INC=
> +-WVSTREAMS_LIB=
> +-WVSTREAMS_BIN=$(prefix)/bin
> +-WVSTREAMS_SRC=.
> +-
> +-PC_CFLAGS=$(shell pkg-config --cflags libwvstreams)
> +-ifeq ($(PC_CFLAGS),)
> +- $(error WvStreams does not appear to be installed)
> +-endif
> +-CPPFLAGS+=$(PC_CFLAGS)
> +-
> +-PC_LIBS=$(shell pkg-config --libs libwvstreams)
> +-ifeq ($(PC_LIBS),)
> +- $(error WvStreams does not appear to be installed)
> +-endif
> +-LIBS+=$(PC_LIBS)
> +-
> +-BINDIR=${prefix}/bin
> +-MANDIR=${prefix}/share/man
> +-PPPDIR=/etc/ppp/peers
> +-
> +-include wvrules.mk
> +-
> +-default: all papchaptest
> +-all: wvdial.a wvdial wvdialconf pppmon
> +-
> +-wvdial.a: wvdialer.o wvmodemscan.o wvpapchap.o wvdialbrain.o \
> +-wvdialmon.o
> +-
> +-wvdial wvdialconf papchaptest pppmon: \
> +-  LDFLAGS+=-luniconf -lwvstreams -lwvutils -lwvbase
> +-
> +-wvdial wvdialconf papchaptest pppmon: wvdial.a
> +-
> +-install-bin: all
> +-[ -d ${BINDIR}  ] || install -d ${BINDIR}
> +-[ -d ${PPPDIR}  ] || install -d ${PPPDIR}
> +-install -m 0755 wvdial wvdialconf ${BINDIR}
> +-cp ppp.provider ${PPPDIR}/wvdial
> +-cp ppp.provider-pipe ${PPPDIR}/wvdial-pipe
> +-
> +-install-man:
> +-[ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
> +-[ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
> +-install -m 0644 wvdial.1 wvdialconf.1 ${MANDIR}/man1
> +-install -m 0644 wvdial.conf.5 ${MANDIR}/man5
> +-
> +-install: install-bin install-man
> +-
> +-uninstall-bin:
> +-rm -f ${BINDIR}/wvdial ${BINDIR}/wvdialconf
> +-rm -f ${PPPDIR}/wvdial
> +-rm -f ${PPPDIR}/wvdial-pipe
> +-
> +-uninstall-man:
> +-rm -f ${MANDIR}/man1/wvdial.1 ${MANDIR}/man1/wvdialconf.1
> +-rm -f ${MANDIR}/man5/wvdial.conf.5
> +-
> +-uninstall: uninstall-bin uninstall-man
> +-
> +-clean:
> +-rm -f wvdial wvdialconf wvdialmon papchaptest pppmon
> +-
> +-distclean:
> +-rm -f version.h Makefile
> +-
> +-.PHONY: clean all install-bin install-man install uninstall-bin 
> uninstall-man \
> +-uninstall
> +diff --git a/config.defaults.mk b/config.defaults.mk
> +deleted file mode 100644
> +index 1210f10..000
> +--- a/config.defaults.mk
>  /dev/null
> +@@ -1,35 +0,0 @@
> +-COMPILER_STANDARD=posix
> +-EXEEXT=
> +-INSTALL=/usr/bin/install -c
> +-INSTALL_DATA=${INSTALL} -m 644
> +-INSTALL_PROGRAM=${INSTALL}
> 

[ptxdist] [PATCH 2/2] wvdial: Add package

2017-09-29 Thread Sascha Hauer
Back in the good old days wvdial was used to easily connect
a modem to the internet without having to write chat scripts
manually. Some people still use modems, so add support for
wvdial to ptxdist.

The original wvdial uses a homebrew build system not suitable
for cross compilation, so we replace it with autoconf/automake.

Signed-off-by: Sascha Hauer 
---
 patches/wvdial-1.61/0001-remove-build-files.patch  | 552 +
 .../0002-Add-autoconf-automake-files.patch | 292 +++
 patches/wvdial-1.61/autogen.sh |  27 +
 patches/wvdial-1.61/series |   2 +
 rules/wvdial.in|  32 ++
 rules/wvdial.make  |  69 +++
 6 files changed, 974 insertions(+)
 create mode 100644 patches/wvdial-1.61/0001-remove-build-files.patch
 create mode 100644 patches/wvdial-1.61/0002-Add-autoconf-automake-files.patch
 create mode 100755 patches/wvdial-1.61/autogen.sh
 create mode 100644 patches/wvdial-1.61/series
 create mode 100644 rules/wvdial.in
 create mode 100644 rules/wvdial.make

diff --git a/patches/wvdial-1.61/0001-remove-build-files.patch 
b/patches/wvdial-1.61/0001-remove-build-files.patch
new file mode 100644
index 0..6c561c08e
--- /dev/null
+++ b/patches/wvdial-1.61/0001-remove-build-files.patch
@@ -0,0 +1,552 @@
+From 451b4b47aca6c7e6e2daaf1e6941b327f8a6efbe Mon Sep 17 00:00:00 2001
+From: Sascha Hauer 
+Date: Fri, 29 Sep 2017 09:04:00 +0200
+Subject: [PATCH 1/2] remove build files
+
+Signed-off-by: Sascha Hauer 
+---
+ Makefile.in|  74 
+ config.defaults.mk |  35 
+ configure  |  13 ---
+ gen-cc |  26 --
+ wvrules-posix.mk   |  96 -
+ wvrules.mk | 248 -
+ 6 files changed, 492 deletions(-)
+ delete mode 100644 Makefile.in
+ delete mode 100644 config.defaults.mk
+ delete mode 100755 configure
+ delete mode 100755 gen-cc
+ delete mode 100644 wvrules-posix.mk
+ delete mode 100644 wvrules.mk
+
+diff --git a/Makefile.in b/Makefile.in
+deleted file mode 100644
+index ebe8c94..000
+--- a/Makefile.in
 /dev/null
+@@ -1,74 +0,0 @@
+-WVPACKAGE_NAME=@PACKAGE_NAME@
+-WVPACKAGE_STRING=@PACKAGE_STRING@
+-WVPACKAGE_TARNAME=@PACKAGE_TARNAME@
+-WVPACKAGE_VERSION=@PACKAGE_VERSION@
+-
+-prefix=/usr/local
+-WVSTREAMS_INC=
+-WVSTREAMS_LIB=
+-WVSTREAMS_BIN=$(prefix)/bin
+-WVSTREAMS_SRC=.
+-
+-PC_CFLAGS=$(shell pkg-config --cflags libwvstreams)
+-ifeq ($(PC_CFLAGS),)
+- $(error WvStreams does not appear to be installed)
+-endif
+-CPPFLAGS+=$(PC_CFLAGS)
+-
+-PC_LIBS=$(shell pkg-config --libs libwvstreams)
+-ifeq ($(PC_LIBS),)
+- $(error WvStreams does not appear to be installed)
+-endif
+-LIBS+=$(PC_LIBS)
+-
+-BINDIR=${prefix}/bin
+-MANDIR=${prefix}/share/man
+-PPPDIR=/etc/ppp/peers
+-
+-include wvrules.mk
+-
+-default: all papchaptest
+-all: wvdial.a wvdial wvdialconf pppmon
+-
+-wvdial.a: wvdialer.o wvmodemscan.o wvpapchap.o wvdialbrain.o \
+-  wvdialmon.o
+-
+-wvdial wvdialconf papchaptest pppmon: \
+-  LDFLAGS+=-luniconf -lwvstreams -lwvutils -lwvbase
+-
+-wvdial wvdialconf papchaptest pppmon: wvdial.a
+-
+-install-bin: all
+-  [ -d ${BINDIR}  ] || install -d ${BINDIR}
+-  [ -d ${PPPDIR}  ] || install -d ${PPPDIR}
+-  install -m 0755 wvdial wvdialconf ${BINDIR}
+-  cp ppp.provider ${PPPDIR}/wvdial
+-  cp ppp.provider-pipe ${PPPDIR}/wvdial-pipe
+-
+-install-man:
+-  [ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
+-  [ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
+-  install -m 0644 wvdial.1 wvdialconf.1 ${MANDIR}/man1
+-  install -m 0644 wvdial.conf.5 ${MANDIR}/man5
+-
+-install: install-bin install-man
+-
+-uninstall-bin:
+-  rm -f ${BINDIR}/wvdial ${BINDIR}/wvdialconf
+-  rm -f ${PPPDIR}/wvdial
+-  rm -f ${PPPDIR}/wvdial-pipe
+-
+-uninstall-man:
+-  rm -f ${MANDIR}/man1/wvdial.1 ${MANDIR}/man1/wvdialconf.1
+-  rm -f ${MANDIR}/man5/wvdial.conf.5
+-
+-uninstall: uninstall-bin uninstall-man
+-
+-clean:
+-  rm -f wvdial wvdialconf wvdialmon papchaptest pppmon
+-
+-distclean:
+-  rm -f version.h Makefile
+-
+-.PHONY: clean all install-bin install-man install uninstall-bin uninstall-man 
\
+-  uninstall
+diff --git a/config.defaults.mk b/config.defaults.mk
+deleted file mode 100644
+index 1210f10..000
+--- a/config.defaults.mk
 /dev/null
+@@ -1,35 +0,0 @@
+-COMPILER_STANDARD=posix
+-EXEEXT=
+-INSTALL=/usr/bin/install -c
+-INSTALL_DATA=${INSTALL} -m 644
+-INSTALL_PROGRAM=${INSTALL}
+-INSTALL_SCRIPT=${INSTALL}
+-LN_S=ln -s
+-LN=ln
+-MOC=/usr/bin/moc
+-
+-LIBS_DBUS=-ldbus-1
+-LIBS_QT=-lqt-mt
+-LIBS_PAM=-lpam
+-LIBS_TCL=
+-
+-prefix=/usr/local
+-datadir=${prefix}/share
+-includedir=${prefix}/include
+-infodir=${prefix}/share/info
+-localstatedir=${prefix}/var
+-mandir=${prefix}/share/man