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