Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/slmodem-2.9.7-r1.ebuild,v 1.3 2004/06/05 12:11:00 dragonheart Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/slmodem-2.9.7-r1.ebuild,v 1.3 2004/06/05 12:11:00 dragonheart Exp $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils kmod |
6 |
|
6 |
|
7 |
DESCRIPTION="Driver for Smart Link modem" |
7 |
DESCRIPTION="Driver for Smart Link modem" |
8 |
HOMEPAGE="http://www.smlink.com/" |
8 |
HOMEPAGE="http://www.smlink.com/" |
Lines 13-32
Link Here
|
13 |
KEYWORDS="~x86" |
13 |
KEYWORDS="~x86" |
14 |
IUSE="alsa" |
14 |
IUSE="alsa" |
15 |
RDEPEND="virtual/glibc" |
15 |
RDEPEND="virtual/glibc" |
|
|
16 |
DEPEND="sys-apps/sed" |
16 |
S="${WORKDIR}/${MY_P}" |
17 |
S="${WORKDIR}/${MY_P}" |
17 |
|
18 |
|
18 |
src_unpack() { |
19 |
src_unpack() { |
19 |
unpack ${A} |
20 |
unpack ${A} |
20 |
epatch ${FILESDIR}/${P}-makefile-fixup.patch |
21 |
epatch ${FILESDIR}/${P}-makefile-fixup.patch |
21 |
} |
|
|
22 |
|
22 |
|
23 |
src_compile() { |
23 |
if is_kernel 2 6 && [ "${KV_PATCH}" -ge 6 ]; then |
24 |
if has sandbox ${FEATURES} || has userpriv ${FEATURES} || has usersandbox ${FEATURES}; then |
24 |
einfo "Patching drivers/Makefile for kernel 2.6.6 and above" |
25 |
ewarn "Users emerging this with a 2.6 kernel still need to disable" |
25 |
sed -i -e "s:SUBDIRS=:M=:" ${S}/drivers/Makefile |
26 |
ewarn "sandbox, usersandbox, userpriv from FEATURES." |
26 |
elif has sandbox ${FEATURES} || has userpriv ${FEATURES} || has usersandbox ${FEATURES}; then |
|
|
27 |
ewarn "Users emerging this with a 2.6 kernel earlier than 2.6.6 still" |
28 |
ewarn "need to disable sandbox, usersandbox, userpriv from FEATURES." |
27 |
einfo 'use: env FEATURES="-userpriv -usersandbox -sandbox" emerge slmodem' |
29 |
einfo 'use: env FEATURES="-userpriv -usersandbox -sandbox" emerge slmodem' |
28 |
die "bad FEATURES - sandbox, usersandbox and/or userpriv " |
30 |
die "bad FEATURES - sandbox, usersandbox and/or userpriv " |
29 |
fi |
31 |
fi |
|
|
32 |
} |
33 |
|
34 |
src_compile() { |
30 |
unset ARCH |
35 |
unset ARCH |
31 |
if use alsa ; then |
36 |
if use alsa ; then |
32 |
emake SUPPORT_ALSA=1 MODVERDIR=${T}/.tmp_versions || die 'Alsa support failed, try USE="-alsa"' |
37 |
emake SUPPORT_ALSA=1 MODVERDIR=${T}/.tmp_versions || die 'Alsa support failed, try USE="-alsa"' |
Lines 97-101
Link Here
|
97 |
fi |
102 |
fi |
98 |
|
103 |
|
99 |
echo |
104 |
echo |
100 |
einfo "You must edit /etc/conf.d/${PN} for your configuration" |
105 |
einfo "You must edit /etc/conf.d/${PN} for your configuration." |
|
|
106 |
einfo "Please study the supplied README file for further instructions." |
101 |
} |
107 |
} |