summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-04-10 00:40:28 +0000
committerAlin Năstac <mrness@gentoo.org>2007-04-10 00:40:28 +0000
commit88eb6c317880cdb804f3c19d0d8843d85b346663 (patch)
tree5e3d785bfce26cbae86fd86aac56d703ec61b188 /net-dialup/hcfpcimodem
parentNew idea with regard to the initscript using consolekit with RC_NEED. (diff)
downloadgentoo-2-88eb6c317880cdb804f3c19d0d8843d85b346663.tar.gz
gentoo-2-88eb6c317880cdb804f3c19d0d8843d85b346663.tar.bz2
gentoo-2-88eb6c317880cdb804f3c19d0d8843d85b346663.zip
Fix implicit declaration compiler warnings. Force executable permission on kernelcompiler.sh (#173414). Stable on x86 (#173561).
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-dialup/hcfpcimodem')
-rw-r--r--net-dialup/hcfpcimodem/ChangeLog10
-rw-r--r--net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r16
-rw-r--r--net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch22
-rw-r--r--net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild83
4 files changed, 120 insertions, 1 deletions
diff --git a/net-dialup/hcfpcimodem/ChangeLog b/net-dialup/hcfpcimodem/ChangeLog
index 8a7044a7baae..d66bc82ecca8 100644
--- a/net-dialup/hcfpcimodem/ChangeLog
+++ b/net-dialup/hcfpcimodem/ChangeLog
@@ -1,6 +1,14 @@
# 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.28 2007/03/13 09:08:17 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.29 2007/04/10 00:40:28 mrness Exp $
+
+*hcfpcimodem-1.12-r1 (10 Apr 2007)
+
+ 10 Apr 2007; Alin Năstac <mrness@gentoo.org>
+ +files/hcfpcimodem-1.12-implicit-declarations.patch,
+ +hcfpcimodem-1.12-r1.ebuild:
+ Fix implicit declaration compiler warnings. Force executable permission on
+ kernelcompiler.sh (#173414). Stable on x86 (#173561).
*hcfpcimodem-1.12 (13 Mar 2007)
diff --git a/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r1 b/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r1
new file mode 100644
index 000000000000..00953ad038fd
--- /dev/null
+++ b/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r1
@@ -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 a50e38e11545ade89b5ec109e610bc85 hcfpcimodem-1.12full.tar.gz 677933
+RMD160 debdd7fd6b4fc446897431a9643c7e6750a1295e hcfpcimodem-1.12full.tar.gz 677933
+SHA256 7ec8c42c22db367ef9060f4e7cdf2a7d0c79e009b00ec74fd3f545e9dd3dea89 hcfpcimodem-1.12full.tar.gz 677933
diff --git a/net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch b/net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch
new file mode 100644
index 000000000000..c1fc95102cde
--- /dev/null
+++ b/net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch
@@ -0,0 +1,22 @@
+diff -Nru hcfpcimodem-1.12full.orig/diag/diag.c hcfpcimodem-1.12full/diag/diag.c
+--- hcfpcimodem-1.12full.orig/diag/diag.c 2004-12-14 09:50:46.000000000 +0200
++++ hcfpcimodem-1.12full/diag/diag.c 2007-04-10 03:32:15.000000000 +0300
+@@ -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.12full.orig/diag/modemexpert.c hcfpcimodem-1.12full/diag/modemexpert.c
+--- hcfpcimodem-1.12full.orig/diag/modemexpert.c 2004-12-14 09:50:39.000000000 +0200
++++ hcfpcimodem-1.12full/diag/modemexpert.c 2007-04-10 03:36:16.000000000 +0300
+@@ -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.12-r1.ebuild b/net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild
new file mode 100644
index 000000000000..6413cf321ce1
--- /dev/null
+++ b/net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild
@@ -0,0 +1,83 @@
+# 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.12-r1.ebuild,v 1.1 2007/04/10 00:40:28 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() {
+ einfo "To complete the installation and configuration of your HCF modem,"
+ einfo "please run hcfpciconfig."
+}
+