diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-10-13 22:11:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-10-13 22:11:03 +0100 |
commit | 2929788def9a92c1eb237eed93fbdb0c02838bbf (patch) | |
tree | 166b01591366d3479084ea774c888bc84aaa8d4f /net-dialup/dgcmodem | |
parent | ab499d7cfb9ad23e83cf7a4f5052bdf1b4c42030 (diff) |
Revert "gentoo resync : 13.10.2019"
This reverts commit ab499d7cfb9ad23e83cf7a4f5052bdf1b4c42030.
Diffstat (limited to 'net-dialup/dgcmodem')
-rw-r--r-- | net-dialup/dgcmodem/Manifest | 3 | ||||
-rw-r--r-- | net-dialup/dgcmodem/dgcmodem-1.10.ebuild | 61 | ||||
-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..d1a0ac1663e3 --- /dev/null +++ b/net-dialup/dgcmodem/Manifest @@ -0,0 +1,3 @@ +DIST dgcmodem-1.10.tar.gz 73685 BLAKE2B b875dcd324200c354f43a08289b2ffc0760f3f8a8849e8f44e9e2f964a31df308c52d8cdae05cc4d6a1f0edb8d9ead57b9eb08798b2f020d0995a17dc3231d06 SHA512 ad02fa129f87c81a853b958c1a2a267fcc2f56e083b6fbad980831a0b6f5ad7effe2977c7667eaca4553f3466950c5543d0ddc6f720dc1662aa62b2f2dd57d18 +EBUILD dgcmodem-1.10.ebuild 1636 BLAKE2B 15177db48ff650db75128913c97b6bbe9ab0546317a4d637171e5966368574893231bd30ec4b78d5087d5f33925c1a447e046308211c10595afa44f29423c618 SHA512 e77de99bd121b1822cf04c52c7600d62ffd09e6d7dc9ff09b9e90f37ed0c9f77fa7f3fbfe042975551ce87413754f2032fbb01d82461bed8d643d5fa84b7e77d +MISC metadata.xml 246 BLAKE2B 1c5c874dba813702c9e2e0147a6d99d357e2570756e7e15379e972c638d820c953aa010c7a00e26efce9a5d9936c88111176a47c540a90c38c49b889239deea9 SHA512 4f7ed62ba7f03a650ba8db92de0fd24d5a5fecb9866aa28011f7bb10d13f7fcff92bae46d1b68c5d5c03fe39b45a36dc264db290c8518cb2ed77ffbca93af563 diff --git a/net-dialup/dgcmodem/dgcmodem-1.10.ebuild b/net-dialup/dgcmodem/dgcmodem-1.10.ebuild new file mode 100644 index 000000000000..b2fb4e83f051 --- /dev/null +++ b/net-dialup/dgcmodem/dgcmodem-1.10.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +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> |