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/hsfmodem: ChangeLog hsfmodem-7.68.00.13.ebuild
Date: Thu, 25 Sep 2008 20:44:09
Message-Id: E1Kixgw-0002tK-Ut@stork.gentoo.org
1 mrness 08/09/25 20:44:02
2
3 Modified: ChangeLog
4 Added: hsfmodem-7.68.00.13.ebuild
5 Log:
6 Replace udev file prefix 00 with 99 (#233498).
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.50 net-dialup/hsfmodem/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hsfmodem/ChangeLog?rev=1.50&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hsfmodem/ChangeLog?rev=1.50&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hsfmodem/ChangeLog?r1=1.49&r2=1.50
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/ChangeLog,v
19 retrieving revision 1.49
20 retrieving revision 1.50
21 diff -u -r1.49 -r1.50
22 --- ChangeLog 1 Aug 2008 21:32:37 -0000 1.49
23 +++ ChangeLog 25 Sep 2008 20:44:02 -0000 1.50
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-dialup/hsfmodem
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/ChangeLog,v 1.49 2008/08/01 21:32:37 mrness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/ChangeLog,v 1.50 2008/09/25 20:44:02 mrness Exp $
29 +
30 +*hsfmodem-7.68.00.13 (25 Sep 2008)
31 +
32 + 25 Sep 2008; Alin Năstac <mrness@g.o>
33 + +files/hsfmodem-7.68.00.13-gentoo.patch, +hsfmodem-7.68.00.13.ebuild:
34 + Replace udev file prefix 00 with 99 (#233498).
35
36 *hsfmodem-7.68.00.12 (30 Jul 2008)
37
38
39
40
41 1.1 net-dialup/hsfmodem/hsfmodem-7.68.00.13.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hsfmodem/hsfmodem-7.68.00.13.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/hsfmodem/hsfmodem-7.68.00.13.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hsfmodem-7.68.00.13.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/hsfmodem-7.68.00.13.ebuild,v 1.1 2008/09/25 20:44:02 mrness Exp $
51
52 inherit eutils linux-info
53
54 #The document is the same as in hcfpcimodem, even if it has a different URL
55 MY_DOC="100498D_RM_HxF_Released.pdf"
56
57 DESCRIPTION="Linuxant's modem driver for Conexant HSF chipset"
58 HOMEPAGE="http://www.linuxant.com/drivers/hsf/index.php"
59 SRC_URI="x86? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}full/${P}full.tar.gz )
60 amd64? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}x86_64full/${P}x86_64full.tar.gz )
61 doc? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}full/${MY_DOC} )"
62
63 LICENSE="Conexant"
64 KEYWORDS="-* ~amd64 ~x86"
65 IUSE="doc"
66 SLOT="0"
67
68 DEPEND="dev-lang/perl
69 app-arch/cpio"
70
71 S="${WORKDIR}"
72
73 pkg_setup() {
74 linux-info_pkg_setup
75 if useq x86; then
76 MY_ARCH_S="${S}/${P}full"
77 elif useq amd64; then
78 MY_ARCH_S="${S}/${P}x86_64full"
79 fi
80
81 local f
82 QA_EXECSTACK=""
83 for f in pcibasic2 mc97ich mc97via mc97ali mc97ati mc97sis usbcd2 soar hda engine ; do
84 QA_EXECSTACK="${QA_EXECSTACK} usr/lib/hsfmodem/modules/imported/hsf${f}-i386.O"
85 done
86 }
87
88 src_unpack() {
89 unpack ${A}
90 cd "${MY_ARCH_S}"
91 epatch "${FILESDIR}/${P}-gentoo.patch"
92 }
93
94 src_compile() {
95 cd "${MY_ARCH_S}"
96 emake all || die "make failed"
97 }
98
99 src_install () {
100 cd "${MY_ARCH_S}"
101 make ROOT="${D}" install || die "make install failed"
102
103 # on testing arches, kernelcompiler.sh permissions are 0600 (#158736)
104 fperms a+rx /usr/lib/hsfmodem/modules/kernelcompiler.sh
105
106 use doc && dodoc "${DISTDIR}/${MY_DOC}"
107 }
108
109 pkg_preinst() {
110 local NVMDIR="${ROOT}/etc/${PN}/nvm"
111 if [ -d "${NVMDIR}" ]; then
112 einfo "Cleaning ${NVMDIR}..."
113 rm -rf "${NVMDIR}"
114 eend
115 fi
116 }
117
118 pkg_postinst() {
119 if [ "${ROOT}" = / ]; then
120 elog "To complete the installation and configuration of your HSF modem,"
121 elog "please run hsfconfig."
122 fi
123 }
124
125 pkg_prerm() {
126 if [ "${ROOT}" = / -a -f /etc/init.d/hsf ] ; then
127 hsfconfig --remove || die "hsfconfig --remove failed"
128 fi
129 }