summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-11-05 22:53:36 +0000
committerAlin Năstac <mrness@gentoo.org>2007-11-05 22:53:36 +0000
commit6465ac17f96245c2722bcb2c2d53425f5b62dd9f (patch)
treedad20c58dd02c5e9441af2f27421cedc63f84f51 /net-dialup
parentversion bump (diff)
downloadgentoo-2-6465ac17f96245c2722bcb2c2d53425f5b62dd9f.tar.gz
gentoo-2-6465ac17f96245c2722bcb2c2d53425f5b62dd9f.tar.bz2
gentoo-2-6465ac17f96245c2722bcb2c2d53425f5b62dd9f.zip
Version bump.
(Portage version: 2.1.3.16)
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/hcfpcimodem/ChangeLog9
-rw-r--r--net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.146
-rw-r--r--net-dialup/hcfpcimodem/files/hcfpcimodem-1.14-implicit-declarations.patch22
-rw-r--r--net-dialup/hcfpcimodem/hcfpcimodem-1.14.ebuild82
4 files changed, 118 insertions, 1 deletions
diff --git a/net-dialup/hcfpcimodem/ChangeLog b/net-dialup/hcfpcimodem/ChangeLog
index 806bb0531ac7..49cd13e4a6bf 100644
--- a/net-dialup/hcfpcimodem/ChangeLog
+++ b/net-dialup/hcfpcimodem/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-dialup/hcfpcimodem
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.32 2007/08/28 18:53:06 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.33 2007/11/05 22:53:35 mrness Exp $
+
+*hcfpcimodem-1.14 (05 Nov 2007)
+
+ 05 Nov 2007; Alin Năstac <mrness@gentoo.org>
+ +files/hcfpcimodem-1.14-implicit-declarations.patch,
+ +hcfpcimodem-1.14.ebuild:
+ Version bump.
*hcfpcimodem-1.13-r1 (28 Aug 2007)
diff --git a/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.14 b/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.14
new file mode 100644
index 000000000000..302a45a8bf35
--- /dev/null
+++ b/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.14
@@ -0,0 +1,6 @@
+MD5 e6d8fea8f5f641d7bb4dfb33c6f478e7 100498D_RM_HxF_Released.pdf 718949
+RMD160 be9df1ae492bcce46775c0325cd438b91213bf7a 100498D_RM_HxF_Released.pdf 718949
+SHA256 e05385b094ac97f13aabc9432ba7478c0acf12862b3c4da097272435d43f6ac1 100498D_RM_HxF_Released.pdf 718949
+MD5 76ebfe6e8fd4dd9bbf909c4fb2657cfc hcfpcimodem-1.14full.tar.gz 680841
+RMD160 3775efc04a2affe1607b23ca72cc5d2a6dca8a1d hcfpcimodem-1.14full.tar.gz 680841
+SHA256 341e51827b825a2ef9b1d1a1c7cadac3ede337f5f1ba5949bd26830122d06c8e hcfpcimodem-1.14full.tar.gz 680841
diff --git a/net-dialup/hcfpcimodem/files/hcfpcimodem-1.14-implicit-declarations.patch b/net-dialup/hcfpcimodem/files/hcfpcimodem-1.14-implicit-declarations.patch
new file mode 100644
index 000000000000..ca0cb857b138
--- /dev/null
+++ b/net-dialup/hcfpcimodem/files/hcfpcimodem-1.14-implicit-declarations.patch
@@ -0,0 +1,22 @@
+diff -Nru hcfpcimodem-1.14full.orig/diag/diag.c hcfpcimodem-1.14full/diag/diag.c
+--- hcfpcimodem-1.14full.orig/diag/diag.c 2004-12-14 09:50:46.000000000 +0200
++++ hcfpcimodem-1.14full/diag/diag.c 2007-11-06 00:13:33.000000000 +0200
+@@ -13,6 +13,7 @@
+ #include <asm/byteorder.h>
+ #include <stdio.h>
+ #include <sys/select.h>
++#include <stdlib.h>
+
+ #include "framewrk.h"
+ #include "osservices.h"
+diff -Nru hcfpcimodem-1.14full.orig/diag/modemexpert.c hcfpcimodem-1.14full/diag/modemexpert.c
+--- hcfpcimodem-1.14full.orig/diag/modemexpert.c 2004-12-14 09:50:39.000000000 +0200
++++ hcfpcimodem-1.14full/diag/modemexpert.c 2007-11-06 00:13:33.000000000 +0200
+@@ -13,6 +13,7 @@
+ #include <errno.h>
+ #include <signal.h>
+ #include <sys/queue.h>
++#include <string.h>
+
+ #include "framewrk.h"
+ #include "osservices.h"
diff --git a/net-dialup/hcfpcimodem/hcfpcimodem-1.14.ebuild b/net-dialup/hcfpcimodem/hcfpcimodem-1.14.ebuild
new file mode 100644
index 000000000000..7c79e6ee20b4
--- /dev/null
+++ b/net-dialup/hcfpcimodem/hcfpcimodem-1.14.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.14.ebuild,v 1.1 2007/11/05 22:53:35 mrness Exp $
+
+inherit eutils linux-info
+
+#The document is the same as in hsfmodem, even if it has a different URL
+MY_DOC="100498D_RM_HxF_Released.pdf"
+
+DESCRIPTION="Linuxant's modem driver for Connexant HCF chipset"
+HOMEPAGE="http://www.linuxant.com/drivers/hcf/index.php"
+SRC_URI="http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${P}full.tar.gz
+ doc? ( http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${MY_DOC} )"
+
+LICENSE="Conexant"
+SLOT="0"
+KEYWORDS="-* ~x86"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ app-arch/cpio"
+
+S="${WORKDIR}/${P}full"
+
+QA_EXECSTACK="usr/lib/hcfpcimodem/modules/imported/hcfblam-i386.O usr/lib/hcfpcimodem/modules/imported/hcfengine-i386.O"
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ MOD_N="hcfpci"
+ # Check to see if module is inserted into kernel, otherwise, build fails
+ if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then
+ eerror
+ eerror "Module is in use by the kernel!!!"
+ eerror "Attempting to unload..."
+ eerror
+
+ # Unloading module...
+ ${MOD_N}stop
+ if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then
+ eerror "Failed to unload modules from kernel!!!"
+ eerror "Please manualy remove the module from the kernel and emerge again."
+ eerror
+ die
+ fi
+ einfo "Successfuly removed module from memory. Resuming emerge."
+ einfo
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-implicit-declarations.patch"
+}
+
+src_compile() {
+ emake all || die "make failed"
+}
+
+pkg_preinst() {
+ local NVMDIR="${ROOT}/etc/${PN}/nvm"
+ if [ -d "${NVMDIR}" ]; then
+ einfo "Cleaning ${NVMDIR}..."
+ rm -rf "${NVMDIR}"
+ eend
+ fi
+}
+
+src_install () {
+ make PREFIX="${D}/usr/" ROOT="${D}" install || die "make install failed"
+
+ # in some cases, kernelcompiler.sh does not have x permission (#173414)
+ fperms a+rx /usr/lib/hcfpcimodem/modules/kernelcompiler.sh
+
+ use doc && dodoc "${DISTDIR}/${MY_DOC}"
+}
+
+pkg_postinst() {
+ elog "To complete the installation and configuration of your HCF modem,"
+ elog "please run hcfpciconfig."
+}