summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2004-11-21 21:24:47 +0000
committerAlin Năstac <mrness@gentoo.org>2004-11-21 21:24:47 +0000
commit3b418882b8528b51267f8c5071c7addede2004e9 (patch)
treeceac3fd5a6e5e85c10a762337dbe11e4282f547d /net-dialup/fcdsl
parentversion bump with lots of fixes. Removed old version cause it is so broken. B... (diff)
downloadgentoo-2-3b418882b8528b51267f8c5071c7addede2004e9.tar.gz
gentoo-2-3b418882b8528b51267f8c5071c7addede2004e9.tar.bz2
gentoo-2-3b418882b8528b51267f8c5071c7addede2004e9.zip
remove card detection from src_compile
Diffstat (limited to 'net-dialup/fcdsl')
-rw-r--r--net-dialup/fcdsl/ChangeLog6
-rw-r--r--net-dialup/fcdsl/fcdsl-2.6.20.7-r1.ebuild53
2 files changed, 27 insertions, 32 deletions
diff --git a/net-dialup/fcdsl/ChangeLog b/net-dialup/fcdsl/ChangeLog
index 9e1408239f4b..1ce6b0ee142c 100644
--- a/net-dialup/fcdsl/ChangeLog
+++ b/net-dialup/fcdsl/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-dialup/fcdsl
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/ChangeLog,v 1.3 2004/11/20 12:37:06 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/ChangeLog,v 1.4 2004/11/21 21:24:47 mrness Exp $
+
+ 21 Nov 2004; Alin Nastac <mrness@gentoo.org> fcdsl-2.6.20.7-r1.ebuild:
+ Install all modules and remove card detection from compile function. See bug
+ #71781.
*fcdsl-2.6.20.7-r1 (20 Nov 2004)
diff --git a/net-dialup/fcdsl/fcdsl-2.6.20.7-r1.ebuild b/net-dialup/fcdsl/fcdsl-2.6.20.7-r1.ebuild
index a032f5b8c87f..f83fe77fe776 100644
--- a/net-dialup/fcdsl/fcdsl-2.6.20.7-r1.ebuild
+++ b/net-dialup/fcdsl/fcdsl-2.6.20.7-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/fcdsl-2.6.20.7-r1.ebuild,v 1.1 2004/11/20 12:37:06 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/fcdsl-2.6.20.7-r1.ebuild,v 1.2 2004/11/21 21:24:47 mrness Exp $
inherit kernel-mod rpm eutils
@@ -17,7 +17,6 @@ IUSE=""
RDEPEND=">=net-dialup/capi4k-utils-20040810"
DEPEND="${RDEPEND}
- app-arch/rpm2targz
sys-apps/gawk
sys-apps/sed
virtual/linux-sources"
@@ -88,17 +87,18 @@ src_unpack() {
}
src_compile() {
- unset ARCH
+ set_arch_to_kernel
if [ "${FCDSL_MODULE}" == "" ]; then
for ((CARD=0; CARD < ${#FCDSL_IDS[*]}; CARD++)); do
einfo "Compiling driver for ${FCDSL_NAMES[CARD]}"
cd ${WORKDIR}/${FCDSL_MODULES[CARD]/fc/fritz.}/src || die "Could not change to ${FCDSL_NAMES[CARD]} source directory."
- make || die "Could not compile driver for ${FCDSL_NAMES[CARD]}."
+ kernel-mod_src_compile || die "Could not compile driver for ${FCDSL_NAMES[CARD]}."
done
else
cd ${WORKDIR}/${FCDSL_MODULE/fc/fritz.}/src || die "Could not change to driver source directory."
- make || die "Could not compile driver."
+ kernel-mod_src_compile || die "Could not compile driver."
fi
+ set_arch_to_portage
}
src_install() {
@@ -139,34 +139,22 @@ src_install() {
}
pkg_postinst() {
- einfo "To complete the installation you have to modify the file"
- einfo " /etc/modules.d/fcdsl"
- einfo "with the options drdsl will give you."
- echo
- if [ "${FCDSL_MODULE}" == "" ];
- then
- einfo "(your modulename)\t(your firmware)\t-\t-\t-\t-\t-"
- else
- einfo "${FCDSL_MODULE}\t${FCDSL_FIRMWARE}\t-\t-\t-\t-\t-"
- fi
+ einfo "Checking kernel module dependencies"
+ test -r "${ROOT}/usr/src/linux/System.map" && \
+ depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
+
echo
- einfo "Please enter following commands:"
- einfo " depmod -ae"
+ einfo "If you want to setup your DSL card driver and create a peer file, please run:"
+ einfo " etc-update"
+ einfo " ebuild /var/db/pkg/net-dialup/${PF}/${PF}.ebuild config"
einfo " capiinit start"
einfo " drdsl -n"
- einfo " nano /etc/modules.d/fcdsl (=> enter the values)"
+ einfo " nano /etc/modules.d/fcdsl"
einfo " update-modules"
- echo
- einfo "If you want to create a peer file, please run:"
- einfo " ebuild /var/db/pkg/net-dialup/${PF}/${PF}.ebuild config"
-
- einfo "Checking kernel module dependencies"
- test -r "${ROOT}/usr/src/linux/System.map" && \
- depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
+ sleep 10
}
readpassword() {
-
VALUE_1=""
VALUE_2=""
while true; do
@@ -194,11 +182,9 @@ readpassword() {
VALUE_2=""
unset VALUE_1
unset VALUE_2
-
}
readvalue() {
-
VALUE=""
while true; do
einfo "${2}:"
@@ -214,11 +200,9 @@ readvalue() {
VALUE=""
unset VALUE
-
}
pkg_config() {
-
detect_fcdsl_card
if [ "${FCDSL_MODULE}" != "" ]; then
@@ -268,10 +252,17 @@ EOF
else
ewarn "Peer file \"/etc/ppp/peers/${FCDSL_PROVIDER}\" always exists!"
fi
+
+ #Uncomment correspondent lines in /etc/capi.conf & /etc/modules.d/fcdsl
+ if [ -f /etc/capi.conf ]; then
+ sed -i -e "s:^#${FCDSL_MODULE}:${FCDSL_MODULE}" /etc/capi.conf
+ fi
+ if [ -f /etc/modules.d/fcdsl ]; then
+ sed -i -e "s:^#options +${FCDSL_MODULE}:options ${FCDSL_MODULE}" /etc/modules.d/fcdsl
+ fi
else
ewarn "No AVM FRITZ!Card DSL found!"
fi
unset FCDSL_PROVIDER
unset FCDSL_USER
-
}