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