1 |
pinkbyte 13/02/28 20:11:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hcfpcimodem-1.21.ebuild |
5 |
Log: |
6 |
Version bump, wrt bug #336501. Respect compiler |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42) |
9 |
|
10 |
Revision Changes Path |
11 |
1.46 net-dialup/hcfpcimodem/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog?rev=1.46&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog?rev=1.46&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog?r1=1.45&r2=1.46 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v |
20 |
retrieving revision 1.45 |
21 |
retrieving revision 1.46 |
22 |
diff -u -r1.45 -r1.46 |
23 |
--- ChangeLog 16 Dec 2012 13:53:50 -0000 1.45 |
24 |
+++ ChangeLog 28 Feb 2013 20:11:00 -0000 1.46 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-dialup/hcfpcimodem |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.45 2012/12/16 13:53:50 ago Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.46 2013/02/28 20:11:00 pinkbyte Exp $ |
31 |
+ |
32 |
+*hcfpcimodem-1.21 (28 Feb 2013) |
33 |
+ |
34 |
+ 28 Feb 2013; Sergey Popov <pinkbyte@g.o> +hcfpcimodem-1.21.ebuild: |
35 |
+ Version bump, wrt bug #336501. Respect compiler |
36 |
|
37 |
16 Dec 2012; Agostino Sarubbo <ago@g.o> hcfpcimodem-1.20.ebuild: |
38 |
Stable for x86, wrt bug #441436 |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-dialup/hcfpcimodem/hcfpcimodem-1.21.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.21.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.21.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: hcfpcimodem-1.21.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 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.21.ebuild,v 1.1 2013/02/28 20:11:00 pinkbyte Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
|
55 |
inherit eutils linux-info toolchain-funcs |
56 |
|
57 |
#The document is the same as in hsfmodem, even if it has a different URL |
58 |
MY_DOC="100498D_RM_HxF_Released.pdf" |
59 |
|
60 |
DESCRIPTION="Linuxant's modem driver for Connexant HCF chipset" |
61 |
HOMEPAGE="http://www.linuxant.com/drivers/hcf/index.php" |
62 |
SRC_URI="http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${P}full.tar.gz |
63 |
doc? ( http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${MY_DOC} )" |
64 |
|
65 |
LICENSE="Conexant" |
66 |
SLOT="0" |
67 |
KEYWORDS="-* ~x86" |
68 |
IUSE="doc" |
69 |
|
70 |
DEPEND="dev-lang/perl |
71 |
app-arch/cpio" |
72 |
RDEPEND="${DEPEND}" |
73 |
|
74 |
S="${WORKDIR}/${P}full" |
75 |
|
76 |
QA_EXECSTACK="usr/lib/hcfpcimodem/modules/imported/hcfblam-i386.O usr/lib/hcfpcimodem/modules/imported/hcfengine-i386.O" |
77 |
|
78 |
pkg_setup() { |
79 |
linux-info_pkg_setup |
80 |
|
81 |
local MOD_N="hcfpci" |
82 |
# Check to see if module is inserted into kernel, otherwise, build fails |
83 |
if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then |
84 |
eerror |
85 |
eerror "Module is in use by the kernel!!!" |
86 |
eerror "Attempting to unload..." |
87 |
eerror |
88 |
|
89 |
# Unloading module... |
90 |
${MOD_N}stop |
91 |
if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then |
92 |
eerror "Failed to unload modules from kernel!!!" |
93 |
eerror "Please manualy remove the module from the kernel and emerge again." |
94 |
eerror |
95 |
die |
96 |
fi |
97 |
einfo "Successfuly removed module from memory. Resuming emerge." |
98 |
einfo |
99 |
fi |
100 |
} |
101 |
|
102 |
src_prepare() { |
103 |
epatch "${FILESDIR}"/${PN}-1.20-gentoo.patch |
104 |
} |
105 |
|
106 |
src_compile() { |
107 |
emake CC="$(tc-getCC)" 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}" || die |
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 |
} |