Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dialup/hcfpcimodem: ChangeLog hcfpcimodem-1.16.ebuild
Date: Wed, 30 Jul 2008 20:56:06
Message-Id: E1KOIiJ-0007II-CR@stork.gentoo.org
1 mrness 08/07/30 20:56:03
2
3 Modified: ChangeLog
4 Added: hcfpcimodem-1.16.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.37 net-dialup/hcfpcimodem/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog?rev=1.37&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog?rev=1.37&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog?r1=1.36&r2=1.37
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v
19 retrieving revision 1.36
20 retrieving revision 1.37
21 diff -u -r1.36 -r1.37
22 --- ChangeLog 13 Apr 2008 11:06:53 -0000 1.36
23 +++ ChangeLog 30 Jul 2008 20:56:02 -0000 1.37
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-dialup/hcfpcimodem
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.36 2008/04/13 11:06:53 mrness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.37 2008/07/30 20:56:02 mrness Exp $
29 +
30 +*hcfpcimodem-1.16 (30 Jul 2008)
31 +
32 + 30 Jul 2008; Alin Năstac <mrness@g.o> +hcfpcimodem-1.16.ebuild:
33 + Version bump.
34
35 *hcfpcimodem-1.15 (13 Apr 2008)
36
37
38
39
40 1.1 net-dialup/hcfpcimodem/hcfpcimodem-1.16.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.16.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.16.ebuild?rev=1.1&content-type=text/plain
44
45 Index: hcfpcimodem-1.16.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.16.ebuild,v 1.1 2008/07/30 20:56:02 mrness Exp $
50
51 inherit eutils linux-info
52
53 #The document is the same as in hsfmodem, even if it has a different URL
54 MY_DOC="100498D_RM_HxF_Released.pdf"
55
56 DESCRIPTION="Linuxant's modem driver for Connexant HCF chipset"
57 HOMEPAGE="http://www.linuxant.com/drivers/hcf/index.php"
58 SRC_URI="http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${P}full.tar.gz
59 doc? ( http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${MY_DOC} )"
60
61 LICENSE="Conexant"
62 SLOT="0"
63 KEYWORDS="-* ~x86"
64 IUSE="doc"
65
66 DEPEND="dev-lang/perl
67 app-arch/cpio"
68
69 S="${WORKDIR}/${P}full"
70
71 QA_EXECSTACK="usr/lib/hcfpcimodem/modules/imported/hcfblam-i386.O usr/lib/hcfpcimodem/modules/imported/hcfengine-i386.O"
72
73 pkg_setup() {
74 linux-info_pkg_setup
75
76 MOD_N="hcfpci"
77 # Check to see if module is inserted into kernel, otherwise, build fails
78 if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then
79 eerror
80 eerror "Module is in use by the kernel!!!"
81 eerror "Attempting to unload..."
82 eerror
83
84 # Unloading module...
85 ${MOD_N}stop
86 if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then
87 eerror "Failed to unload modules from kernel!!!"
88 eerror "Please manualy remove the module from the kernel and emerge again."
89 eerror
90 die
91 fi
92 einfo "Successfuly removed module from memory. Resuming emerge."
93 einfo
94 fi
95 }
96
97 src_compile() {
98 emake all || die "make failed"
99 }
100
101 pkg_preinst() {
102 local NVMDIR="${ROOT}/etc/${PN}/nvm"
103 if [ -d "${NVMDIR}" ]; then
104 einfo "Cleaning ${NVMDIR}..."
105 rm -rf "${NVMDIR}"
106 eend
107 fi
108 }
109
110 src_install () {
111 make PREFIX="${D}/usr/" ROOT="${D}" install || die "make install failed"
112
113 # in some cases, kernelcompiler.sh does not have x permission (#173414)
114 fperms a+rx /usr/lib/hcfpcimodem/modules/kernelcompiler.sh
115
116 use doc && dodoc "${DISTDIR}/${MY_DOC}"
117 }
118
119 pkg_postinst() {
120 if [ "${ROOT}" = / ]; then
121 elog "To complete the installation and configuration of your HCF modem,"
122 elog "please run hcfpciconfig."
123 fi
124 }
125
126 pkg_prerm() {
127 if [ "${ROOT}" = / -a -f /etc/init.d/hcfpci ] ; then
128 hcfpciconfig --remove || die "hcfpciconfig --remove failed"
129 fi
130 }