diff options
Diffstat (limited to 'net-dialup/dgcmodem')
-rw-r--r-- | net-dialup/dgcmodem/Manifest | 5 | ||||
-rw-r--r-- | net-dialup/dgcmodem/dgcmodem-1.10.ebuild | 59 | ||||
-rw-r--r-- | net-dialup/dgcmodem/metadata.xml | 8 |
3 files changed, 72 insertions, 0 deletions
diff --git a/net-dialup/dgcmodem/Manifest b/net-dialup/dgcmodem/Manifest new file mode 100644 index 000000000000..e29296ca7c01 --- /dev/null +++ b/net-dialup/dgcmodem/Manifest @@ -0,0 +1,5 @@ +DIST dgcmodem-1.10.tar.gz 73685 SHA256 90762bef97ac3972d76d2d0152177ea6930130e7bb3a79889511222b48dce80d SHA512 ad02fa129f87c81a853b958c1a2a267fcc2f56e083b6fbad980831a0b6f5ad7effe2977c7667eaca4553f3466950c5543d0ddc6f720dc1662aa62b2f2dd57d18 WHIRLPOOL dd24f3b8d761c1b0a8e05d780ea16b314ca9e1fe3f801027c032131d8e9e466be89c444e3bae2baeeacf73f320e4a052fbdd3d1f85ad40e7d77fb11d727d7fce +EBUILD dgcmodem-1.10.ebuild 1628 SHA256 a017de4496200d38ce15cb76b58a338c9ef1e6921e09bedf9045ea3e1f11d944 SHA512 d2d50bb79a9f5fcb387bdc2135b2c606c11d2613e1455ae15f38141f5c3ce52baa517504a7d0557f5c8bd71f5ce178c818e9a97ae321bbef281113877b7f1702 WHIRLPOOL c821b76548fefafaf58a5040ae27cd87c59ea310e9feb074593afcdaa749e97972220d8cd04ca29aec616a7a5c6e297c5e730554f08b5797a9e04da69c5356e0 +MISC ChangeLog 2179 SHA256 4d76055d10e258fb741a35c0a98b5b4ce69cb022f082fdde29dea27d710bfd8b SHA512 4766f5ce9b851b26e28742c5528e598148588080656146f24656b5991b781e96e5085a929c3b9a777cace35062c960aaf6bee726e860642c12d20e3e4041c5ee WHIRLPOOL 9d249598dc527c10c64b6bb26462589b34a30caa0f34c67f0bc9794d576141f7fb1f8c890a3eff711520a881c06afed425dfbbbbc852b93c85a7fd5db8724d7d +MISC ChangeLog-2015 1286 SHA256 105b123b69003ad17307e2f213805deb93ab6b3daf5912f3d877e4a447ef1db6 SHA512 438d22de178a74722fef1458986a3f3ad07ef0da2e357f1d3a80907bb30b09d4b0494b8faad3a690bd4dd6e618e1cdf6a446e6fa2cba6c2160f94b4af969e119 WHIRLPOOL 8d63a672de1974ef1d61b3f6d9bdfb8d0ec719e92d9476f48ed1c106ef48e6b2a401cd2c692a90dd6d861b919c626f470af14dac0bbc1bd21f7d666c9786533e +MISC metadata.xml 246 SHA256 3e24bf9a254069b14bf2ff124fd414fb235ac7157fa82c1d2a3ee93287b88474 SHA512 4f7ed62ba7f03a650ba8db92de0fd24d5a5fecb9866aa28011f7bb10d13f7fcff92bae46d1b68c5d5c03fe39b45a36dc264db290c8518cb2ed77ffbca93af563 WHIRLPOOL 572f0789929b2a6d7a8b7e4f28107cd635435e5837dc505bf3b2720eb19f7feb89983a98f612bf2363cbf4c5c0d5c97c131a3f001ae9d0d66708b48728731c50 diff --git a/net-dialup/dgcmodem/dgcmodem-1.10.ebuild b/net-dialup/dgcmodem/dgcmodem-1.10.ebuild new file mode 100644 index 000000000000..cfa447bb52a8 --- /dev/null +++ b/net-dialup/dgcmodem/dgcmodem-1.10.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit linux-info + +DESCRIPTION="Driver for Connexant DGC modems" +HOMEPAGE="http://www.linuxant.com/drivers/dgc/" +SRC_URI="http://www.linuxant.com/drivers/dgc/archive/${P}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" +DEPEND="" +RDEPEND="" + +CONFIG_CHECK="~USB_ACM" +ERROR_USB_ACM="${PN} requires USB modem (CDC ACM) support in your kernel (module name: USB_ACM)". + +src_compile() { + cd "${S}"/scripts + emake dgcconfig dgcdcpd dgcmodconflicts dgcstop || die "Failed to make scripts" +} + +src_install() { + rm -f modules/GPL/COPYING + rm -rf modules/binaries + insinto /usr/lib/dgcmodem + doins -r modules config.mak || die "Failed to install module files" + fperms u+x /usr/lib/dgcmodem/modules/kernelcompiler.sh + + cd "${S}"/scripts + dosbin dgcconfig dgcdcpd dgcmodconflicts dgcstop || die "Failed to install scripts" + + echo 'KERNEL=="ttyACM0", SYMLINK="modem"' > "${D}"/etc/udev/rules.d/90-dgcmodem.rules + + keepdir /etc/dgcmodem +} + +pkg_postinst() { + ewarn "Users need to be in the uucp group to use this driver." + ewarn + ewarn "Do not set the baud rate to a value higher than 115200, or it will not work." + elog + elog "Please run:" + elog " emerge --config ${PN}" + elog "now and every time you update your kernel." + elog + elog "Note that using dgcconfig with default options may install an undesirable" + elog "rc script, so it is advised you always use the above command instead." +} + +pkg_config(){ + dgcconfig --kernel --serial --info +} + +pkg_prerm() { + dgcconfig --remove + rm -f /etc/dgcmodem/.serial_configured +} diff --git a/net-dialup/dgcmodem/metadata.xml b/net-dialup/dgcmodem/metadata.xml new file mode 100644 index 000000000000..ca3cdb362951 --- /dev/null +++ b/net-dialup/dgcmodem/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> +</maintainer> +</pkgmetadata> |