diff options
Diffstat (limited to 'net-dialup/mwavem/files')
-rw-r--r-- | net-dialup/mwavem/files/mwave-dev-handler | 11 | ||||
-rw-r--r-- | net-dialup/mwavem/files/mwave.devfs | 2 | ||||
-rw-r--r-- | net-dialup/mwavem/files/mwave.modules | 1 | ||||
-rw-r--r-- | net-dialup/mwavem/files/mwavem-2.0-gentoo.patch | 24 | ||||
-rw-r--r-- | net-dialup/mwavem/files/mwavem-2.0-glibc-2.10.patch | 40 |
5 files changed, 78 insertions, 0 deletions
diff --git a/net-dialup/mwavem/files/mwave-dev-handler b/net-dialup/mwavem/files/mwave-dev-handler new file mode 100644 index 000000000000..3ba51ff75db2 --- /dev/null +++ b/net-dialup/mwavem/files/mwave-dev-handler @@ -0,0 +1,11 @@ +#!/bin/sh + +case "$1" in +register) + [ ! -d /dev/modem ] && mkdir --mode=0755 /dev/modems + [ ! -h /dev/modems/mwave ] && ln -s /dev/misc/mwave /dev/modems/mwave + ;; +unregister) + rm -rf /dev/modems/mwave + ;; +esac diff --git a/net-dialup/mwavem/files/mwave.devfs b/net-dialup/mwavem/files/mwave.devfs new file mode 100644 index 000000000000..67ba1e527ab9 --- /dev/null +++ b/net-dialup/mwavem/files/mwave.devfs @@ -0,0 +1,2 @@ +REGISTER ^misc/mwave$ EXECUTE /usr/sbin/mwave-dev-handler register +UNREGISTER ^misc/mwave$ EXECUTE /usr/sbin/mwave-dev-handler unregister diff --git a/net-dialup/mwavem/files/mwave.modules b/net-dialup/mwavem/files/mwave.modules new file mode 100644 index 000000000000..613eef5c77a1 --- /dev/null +++ b/net-dialup/mwavem/files/mwave.modules @@ -0,0 +1 @@ +alias char-major-10-219 mwave diff --git a/net-dialup/mwavem/files/mwavem-2.0-gentoo.patch b/net-dialup/mwavem/files/mwavem-2.0-gentoo.patch new file mode 100644 index 000000000000..ca86b5039444 --- /dev/null +++ b/net-dialup/mwavem/files/mwavem-2.0-gentoo.patch @@ -0,0 +1,24 @@ +diff -ur mwavem-2.0.orig/configure.in mwavem-2.0/configure.in +--- mwavem-2.0.orig/configure.in 2004-04-06 23:50:57.000000000 +0000 ++++ mwavem-2.0/configure.in 2008-10-18 09:31:29.000000000 +0000 +@@ -27,7 +27,7 @@ + AC_DEFINE(MWWTDBG) + + INCLUDES="-I\$(top_srcdir)/src/include" +-CFLAGS="$INCLUDES -O2 -fno-strict-aliasing -fomit-frame-pointer -Wall" ++CFLAGS="${CFLAGS} $INCLUDES -fno-strict-aliasing -Wall" + + dnl Set dsp_dir here and we substitute it in mwavem.conf from mwavem.conf.in + dsp_dir=` test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix +diff -ur mwavem-2.0.orig/src/mwavem/Makefile.am mwavem-2.0/src/mwavem/Makefile.am +--- mwavem-2.0.orig/src/mwavem/Makefile.am 2008-10-18 09:38:52.000000000 +0000 ++++ mwavem-2.0/src/mwavem/Makefile.am 2008-10-18 09:38:00.000000000 +0000 +@@ -10,6 +10,8 @@ + -rm $(distdir)/modem.c + + install-exec-local: ++ ++install-exec-local-invalid: + if [ ! -c "/dev/modems/mwave" ]; then \ + mkdir -p /dev/modems; \ + mknod --mode=660 /dev/modems/mwave c 10 219; \ diff --git a/net-dialup/mwavem/files/mwavem-2.0-glibc-2.10.patch b/net-dialup/mwavem/files/mwavem-2.0-glibc-2.10.patch new file mode 100644 index 000000000000..fa867986ec22 --- /dev/null +++ b/net-dialup/mwavem/files/mwavem-2.0-glibc-2.10.patch @@ -0,0 +1,40 @@ +diff -ur mwavem-2.0.orig/src/include/mwmparsi.h mwavem-2.0/src/include/mwmparsi.h +--- mwavem-2.0.orig/src/include/mwmparsi.h 2001-05-04 22:28:52.000000000 +0300 ++++ mwavem-2.0/src/include/mwmparsi.h 2009-08-08 11:58:51.000000000 +0300 +@@ -516,8 +516,8 @@ + + + #ifdef DEBUG +- void dprintf(char *szFormat, ...); +- #define DPF dprintf ++ void mwavem_dprintf(char *szFormat, ...); ++ #define DPF mwavem_dprintf + + #else + #define DPF ((void)0) +diff -ur mwavem-2.0.orig/src/include/mwmspcfc.h mwavem-2.0/src/include/mwmspcfc.h +--- mwavem-2.0.orig/src/include/mwmspcfc.h 2001-05-04 22:28:52.000000000 +0300 ++++ mwavem-2.0/src/include/mwmspcfc.h 2009-08-08 11:56:34.000000000 +0300 +@@ -705,8 +705,8 @@ + void MWM_ENTRY mwmPostMessage(UINT uMsg, LONG wParam, LONG lParam); // @TBD + + #ifdef DEBUG +- void dprintf(char *szFormat, ...); +- #define DPF dprintf ++ void mwavem_dprintf(char *szFormat, ...); ++ #define DPF mwavem_dprintf + #else + #define DPF ((void)0) + #endif +diff -ur mwavem-2.0.orig/src/mwmlw32/mwmload.c mwavem-2.0/src/mwmlw32/mwmload.c +--- mwavem-2.0.orig/src/mwmlw32/mwmload.c 2004-03-31 06:58:55.000000000 +0300 ++++ mwavem-2.0/src/mwmlw32/mwmload.c 2009-08-08 11:56:50.000000000 +0300 +@@ -72,7 +72,7 @@ + + + #define MODNAME "MWMODEM" +-void dprintf(char *szFormat, ...) ++void mwavem_dprintf(char *szFormat, ...) + { + /*if (usDebugWindow) + {*/ |