summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2009-05-22 01:15:44 +0000
committerDenis Dupeyron <calchan@gentoo.org>2009-05-22 01:15:44 +0000
commitc0302c54455dba174bb538b5e5a7c0eb581c149c (patch)
treeca209f133d50811d35817c7739554b04acc1120b /net-dialup/dgcmodem
parentRemoved unfunctional ebuilds lastfm-ripper, rat (security issue), wavesurfer,... (diff)
downloadgentoo-2-c0302c54455dba174bb538b5e5a7c0eb581c149c.tar.gz
gentoo-2-c0302c54455dba174bb538b5e5a7c0eb581c149c.tar.bz2
gentoo-2-c0302c54455dba174bb538b5e5a7c0eb581c149c.zip
Version bump for kernel 2.6.29.
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'net-dialup/dgcmodem')
-rw-r--r--net-dialup/dgcmodem/ChangeLog7
-rw-r--r--net-dialup/dgcmodem/dgcmodem-1.10.ebuild60
2 files changed, 66 insertions, 1 deletions
diff --git a/net-dialup/dgcmodem/ChangeLog b/net-dialup/dgcmodem/ChangeLog
index 7f4098d21afb..b30106385f35 100644
--- a/net-dialup/dgcmodem/ChangeLog
+++ b/net-dialup/dgcmodem/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dialup/dgcmodem
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/dgcmodem/ChangeLog,v 1.3 2009/01/05 08:46:38 calchan Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/dgcmodem/ChangeLog,v 1.4 2009/05/22 01:15:44 calchan Exp $
+
+*dgcmodem-1.10 (22 May 2009)
+
+ 22 May 2009; Denis Dupeyron <calchan@gentoo.org> +dgcmodem-1.10.ebuild:
+ Version bump for kernel 2.6.29.
*dgcmodem-1.09 (05 Jan 2009)
diff --git a/net-dialup/dgcmodem/dgcmodem-1.10.ebuild b/net-dialup/dgcmodem/dgcmodem-1.10.ebuild
new file mode 100644
index 000000000000..c07524c7e153
--- /dev/null
+++ b/net-dialup/dgcmodem/dgcmodem-1.10.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/dgcmodem/dgcmodem-1.10.ebuild,v 1.1 2009/05/22 01:15:44 calchan Exp $
+
+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
+}