diff options
author | Alin Năstac <mrness@gentoo.org> | 2004-12-05 08:18:33 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2004-12-05 08:18:33 +0000 |
commit | eb27a2e45d0b0f6b469c05ca6a9fddec96afd95d (patch) | |
tree | a638fea6898429884fb895feee3e24efc796a642 /net-dialup/mwavem/mwavem-1.0.4.ebuild | |
parent | Moving to net-dialup/mwavem (diff) | |
download | historical-eb27a2e45d0b0f6b469c05ca6a9fddec96afd95d.tar.gz historical-eb27a2e45d0b0f6b469c05ca6a9fddec96afd95d.tar.bz2 historical-eb27a2e45d0b0f6b469c05ca6a9fddec96afd95d.zip |
Moved from app-misc/mwavem to net-dialup/mwavem.
Diffstat (limited to 'net-dialup/mwavem/mwavem-1.0.4.ebuild')
-rw-r--r-- | net-dialup/mwavem/mwavem-1.0.4.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-dialup/mwavem/mwavem-1.0.4.ebuild b/net-dialup/mwavem/mwavem-1.0.4.ebuild new file mode 100644 index 000000000000..a9e2c94967bc --- /dev/null +++ b/net-dialup/mwavem/mwavem-1.0.4.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/mwavem/mwavem-1.0.4.ebuild,v 1.1 2004/12/05 08:18:33 mrness Exp $ + +inherit eutils + +DESCRIPTION="User level application for IBM Mwave modem" +HOMEPAGE="http://oss.software.ibm.com/acpmodem/" +SRC_URI="ftp://www-126.ibm.com/pub/acpmodem/1.0.4/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="X" + +DEPEND="virtual/libc + X? ( virtual/x11 )" + +src_compile() { + epatch ${FILESDIR}/${P}-gentoo.diff + + # The driver is no longer built by default. + econf || die "./configure failed" + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + + exeinto /usr/sbin + doexe ${FILESDIR}/mwave-dev-handler + + insinto /etc/devfs.d + newins ${FILESDIR}/mwave.devfs mwave + + insinto /etc/modules.d + newins ${FILESDIR}/mwave.modules mwave + + dodoc AUTHORS ChangeLog FAQ INSTALL NEWS README README.devfs THANKS + docinto doc + dodoc doc/mwave.sgml doc/mwave.txt + dohtml doc/mwave.html +} + +pkg_postinst() { + # Below is to get /etc/modules.d/mwave loaded into /etc/modules.conf + if [ "${ROOT}" = "/" ] + then + [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules + fi + ewarn "If updating from mwavem-1.0.2, you should remove the line:" + ewarn "'alias char-major-10-219 mwave' from the file" + ewarn "/etc/modules.d/aliases. The line is now contained in the file" + ewarn "/etc/modules.d/mwave" + einfo + einfo "The MWave Modem device requires the proper entries in /dev." + einfo + einfo "If you are using devfs, the following entries are in the file" + einfo "/etc/devfs.d/mwave, so you just need to restart devfsd." + 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 +} |