diff options
author | Chad Huneycutt <chadh@gentoo.org> | 2002-07-24 12:14:18 +0000 |
---|---|---|
committer | Chad Huneycutt <chadh@gentoo.org> | 2002-07-24 12:14:18 +0000 |
commit | 1d01f687ab3da74c5717e2c5d0d01416f669e2e4 (patch) | |
tree | 575be72105a6909b66c046d21d734cdcf466b2e5 /app-misc | |
parent | vpopmail with MySQL support. Bug 5503 (diff) | |
download | historical-1d01f687ab3da74c5717e2c5d0d01416f669e2e4.tar.gz historical-1d01f687ab3da74c5717e2c5d0d01416f669e2e4.tar.bz2 historical-1d01f687ab3da74c5717e2c5d0d01416f669e2e4.zip |
user submitted ebuild. probably x86-only
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/mwavem/ChangeLog | 8 | ||||
-rw-r--r-- | app-misc/mwavem/files/digest-mwavem-1.0.2 | 1 | ||||
-rw-r--r-- | app-misc/mwavem/files/mwave-dev-handler | 11 | ||||
-rw-r--r-- | app-misc/mwavem/files/mwavem-1.0.2-gentoo.diff | 45 | ||||
-rw-r--r-- | app-misc/mwavem/mwavem-1.0.2.ebuild | 50 |
5 files changed, 115 insertions, 0 deletions
diff --git a/app-misc/mwavem/ChangeLog b/app-misc/mwavem/ChangeLog new file mode 100644 index 000000000000..32b6c69b3f35 --- /dev/null +++ b/app-misc/mwavem/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-misc/mwavem +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/mwavem/ChangeLog,v 1.1 2002/07/24 12:14:18 chadh Exp $ + +*mwavem-1.0.2 (17 July 2002) + + 17 JuL 2002; Matthew Jachimstal <matthew@jachimstal.com> mwavem-1.0.2.ebuild, + files/mwavem-1.0.2-gentoo.diff, files/mwave-dev-handler: Initial ebuild. diff --git a/app-misc/mwavem/files/digest-mwavem-1.0.2 b/app-misc/mwavem/files/digest-mwavem-1.0.2 new file mode 100644 index 000000000000..b2ae0902d40c --- /dev/null +++ b/app-misc/mwavem/files/digest-mwavem-1.0.2 @@ -0,0 +1 @@ +MD5 29ed2dda14b6b3ee424178e296007fe1 mwavem-1.0.2.tar.gz 1384418 diff --git a/app-misc/mwavem/files/mwave-dev-handler b/app-misc/mwavem/files/mwave-dev-handler new file mode 100644 index 000000000000..3ba51ff75db2 --- /dev/null +++ b/app-misc/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/app-misc/mwavem/files/mwavem-1.0.2-gentoo.diff b/app-misc/mwavem/files/mwavem-1.0.2-gentoo.diff new file mode 100644 index 000000000000..966828be1dd2 --- /dev/null +++ b/app-misc/mwavem/files/mwavem-1.0.2-gentoo.diff @@ -0,0 +1,45 @@ +diff -u -r mwavem-1.0.2.orig/src/mwavem/Makefile.am mwavem-1.0.2/src/mwavem/Makefile.am +--- mwavem-1.0.2.orig/src/mwavem/Makefile.am Wed Jul 17 08:25:02 2002 ++++ mwavem-1.0.2/src/mwavem/Makefile.am Wed Jul 17 08:25:35 2002 +@@ -6,12 +6,13 @@ + + install-exec-local: + -chmod 755 mwaved +- -mkdir -p /dev/modems +- -mknod --mode=660 /dev/modems/mwave c 10 219 +- -cp -f /etc/modules.conf /etc/modules.conf~ +- -grep 'alias char-major-10-219 mwave' /etc/modules.conf || echo "alias char-major-10-219 mwave" >>/etc/modules.conf ++# -mkdir -p /dev/modems ++# -mknod --mode=660 /dev/modems/mwave c 10 219 ++ -mkdir -p ${D}/etc/modules.d ++ -cp -f /etc/modules.d/aliases ${D}/etc/modules.d ++ -grep 'alias char-major-10-219 mwave' ${D}/etc/modules.d/aliases || echo "alias char-major-10-219 mwave" >>${D}/etc/modules.d/aliases + + uninstall-local: +- -cp -f /etc/modules.conf /etc/modules.conf~ +- -grep -v 'alias char-major-10-219 mwave' /etc/modules.conf~ >/etc/modules.conf ++# -cp -f /etc/modules.conf /etc/modules.conf~ ++# -grep -v 'alias char-major-10-219 mwave' /etc/modules.conf~ >/etc/modules.conf + +diff -u -r mwavem-1.0.2.orig/src/mwavem/Makefile.in mwavem-1.0.2/src/mwavem/Makefile.in +--- mwavem-1.0.2.orig/src/mwavem/Makefile.in Wed Jul 17 08:25:02 2002 ++++ mwavem-1.0.2/src/mwavem/Makefile.in Wed Jul 17 08:26:01 2002 +@@ -321,14 +321,15 @@ + + install-exec-local: + -chmod 755 mwaved +- -mkdir -p /dev/modems +- -mknod --mode=660 /dev/modems/mwave c 10 219 +- -cp -f /etc/modules.conf /etc/modules.conf~ +- -grep 'alias char-major-10-219 mwave' /etc/modules.conf || echo "alias char-major-10-219 mwave" >>/etc/modules.conf ++# -mkdir -p /dev/modems ++# -mknod --mode=660 /dev/modems/mwave c 10 219 ++ -mkdir -p ${D}/etc/modules.d ++ -cp -f /etc/modules.d/aliases ${D}/etc/modules.d ++ -grep 'alias char-major-10-219 mwave' ${D}/etc/modules.d/aliases || echo "alias char-major-10-219 mwave" >>${D}/etc/modules.d/aliases + + uninstall-local: +- -cp -f /etc/modules.conf /etc/modules.conf~ +- -grep -v 'alias char-major-10-219 mwave' /etc/modules.conf~ >/etc/modules.conf ++# -cp -f /etc/modules.conf /etc/modules.conf~ ++# -grep -v 'alias char-major-10-219 mwave' /etc/modules.conf~ >/etc/modules.conf diff --git a/app-misc/mwavem/mwavem-1.0.2.ebuild b/app-misc/mwavem/mwavem-1.0.2.ebuild new file mode 100644 index 000000000000..b95f959d0bd2 --- /dev/null +++ b/app-misc/mwavem/mwavem-1.0.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/mwavem/mwavem-1.0.2.ebuild,v 1.1 2002/07/24 12:14:18 chadh Exp $ + + +DESCRIPTION="User level application for IBM Mwave modem" +HOMEPAGE="http://oss.software.ibm.com/acpmodem/" +SRC_URI="ftp://www-126.ibm.com/pub/acpmodem/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR}/${P} + +src_compile() { + patch -p1 < ${FILESDIR}/${P}-gentoo.diff + + ./configure \ + --disable-mwavedd \ + --host=${CHOST} || die "./configure failed" + + emake || die +} + +src_install() { + make DESTDIR=${D} install ||die + + exeinto /usr/sbin + doexe ${FILESDIR}/mwave-dev-handler + +} + +pkg_postinst() { + einfo + einfo "To use the MWave Modem device you must setup the proper entries in /dev" + einfo + einfo "If you are using devfs, add the following entries to /etc/devfsd.conf:" + einfo + einfo "REGISTER ^misc/mwave$ EXECUTE /usr/sbin/mwave-dev-handler register" + einfo "UNREGISTER ^misc/mwave$ EXECUTE /usr/sbin/mwave-dev-handler unregister" + einfo + einfo "If you are not using devfs, execute the following commands:" + einfo + einfo "# mkdir -p /dev/modems" + einfo "# mknod --mode=660 /dev/modems/mwave c 10 219" + einfo +} |