Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50716 - AVM FRITZ!Card DSL Series ebuild for kernel 2.6 series (incl. new capi4k-utils)
Summary: AVM FRITZ!Card DSL Series ebuild for kernel 2.6 series (incl. new capi4k-utils)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
: 40495 43716 46769 47732 49945 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-11 01:23 UTC by tuXXer
Modified: 2004-11-20 09:37 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
capi4k-utils version 20040331 (capi4k-utils-20040331.tar.bz2,1.44 KB, application/x-tbz)
2004-05-11 10:15 UTC, tuXXer
Details
fcdsl version 2.6 (fcdsl-2.6.tar.bz2,2.48 KB, application/x-tbz)
2004-05-11 10:16 UTC, tuXXer
Details
fcdsl-2.6 v 2.0 with peers script (fcdsl-2.6.tar.bz2,3.27 KB, application/octet-stream)
2004-05-12 14:13 UTC, tuXXer
Details
fcdsl-2.6.tar.bz2 (for the testers) (fcdsl-2.6.tar.bz2,3.33 KB, application/x-bzip2)
2004-05-13 11:43 UTC, tuXXer
Details
net-dialup/capi4k-utils/capi4k-utils-20040331.ebuild (capi4k-utils-20040331.ebuild,1.36 KB, application/octet-stream)
2004-05-13 11:44 UTC, tuXXer
Details
net-dialup/capi4k-utils/files/capi (capi,451 bytes, application/octet-stream)
2004-05-13 11:45 UTC, tuXXer
Details
net-dialup/fcdsl/files/capi.conf (capi.conf,78 bytes, application/octet-stream)
2004-05-13 11:46 UTC, tuXXer
Details
net-dialup/fcdsl/files/fcdsl (fcdsl,129 bytes, application/octet-stream)
2004-05-13 11:47 UTC, tuXXer
Details
net-dialup/fcdsl/files/pap-secrets (pap-secrets,101 bytes, application/octet-stream)
2004-05-13 11:47 UTC, tuXXer
Details
net-dialup/fcdsl/files/peer (peer,303 bytes, application/octet-stream)
2004-05-13 11:48 UTC, tuXXer
Details
net-dialup/fcdsl/fcdsl-2.6.ebuild (fcdsl-2.6.ebuild,6.96 KB, application/octet-stream)
2004-05-13 11:50 UTC, tuXXer
Details
Adopted ebuild (fcdsl-2.6.ebuild,6.94 KB, application/octet-stream)
2004-09-05 05:34 UTC, tuXXer
Details
net-dialup/fcdsl/fcdsl-2.6.ebuild (fcdsl-2.6.ebuild,6.25 KB, application/octet-stream)
2004-09-26 17:10 UTC, tuXXer
Details
net-dialup/fcdsl-2.6.20.7.ebuild (fcdsl-2.6.20.7.ebuild,6.98 KB, text/plain)
2004-09-27 16:29 UTC, tuXXer
Details
net-dialup/fcdsl-2.6.20.7-r1.ebuild (fcdsl-2.6.20.7-r1.ebuild,7.15 KB, text/plain)
2004-11-20 07:59 UTC, tuXXer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tuXXer 2004-05-11 01:23:26 UTC
The files could be found under

http://forums.gentoo.org/viewtopic.php?t=118784

Tonight I put two tars here.

Reproducible: Always
Steps to Reproduce:
1. Please include the ebuild

Actual Results:  
No
AVM FRITZ!Card DSL 
AVM FRITZ!Card DSL SL
AVM FRITZ!Card DSL v2.0
AVM FRITZ!Card DSL USB
AVM FRITZ!Card DSL SL USB
support

Expected Results:  
Support the drivers
Comment 1 tuXXer 2004-05-11 10:15:08 UTC
Created attachment 31196 [details]
capi4k-utils version 20040331

Adding ebuild for capi4k-utils version 20040331 (needed for fcdsl-2.6)
Comment 2 tuXXer 2004-05-11 10:16:48 UTC
Created attachment 31197 [details]
fcdsl version 2.6

AVM driver ebuild for kernel version 2.6

Supported cards:
- AVM FRITZ!Card DSL
- AVM FRITZ!Card DSL SL
- AVM FRITZ!Card DSL v2.0
- AVM FRITZ!Card DSL USB
- AVM FRITZ!Card DSL SL USB
Comment 3 tuXXer 2004-05-12 14:12:25 UTC
Comment on attachment 31197 [details]
fcdsl version 2.6

Adding new version with creating connection script in /etc/ppp/peers and
editing pap-secrets
Comment 4 tuXXer 2004-05-12 14:13:41 UTC
Created attachment 31296 [details]
fcdsl-2.6 v 2.0 with peers script

New ebuild with editing pap-secrets and creating peers file
Comment 5 tuXXer 2004-05-13 04:03:53 UTC
Well, I'm working on the variable handling, inputs and card definitions to make they more readable and better. Then I update the ebuild and split the files according to the ebuild guidlines.
Comment 6 tuXXer 2004-05-13 11:43:35 UTC
Created attachment 31353 [details]
fcdsl-2.6.tar.bz2 (for the testers)

Just the final ebuild, with better variables declarations and better handling.
Much faster installation...

Only for direct install for testers.

The files following...
Comment 7 tuXXer 2004-05-13 11:44:29 UTC
Created attachment 31354 [details]
net-dialup/capi4k-utils/capi4k-utils-20040331.ebuild

The capi4k-utils Ebuild Version from 2004-03-31
Comment 8 tuXXer 2004-05-13 11:45:14 UTC
Created attachment 31355 [details]
net-dialup/capi4k-utils/files/capi

init.d file for capi4k-utils
Comment 9 tuXXer 2004-05-13 11:46:10 UTC
Created attachment 31356 [details]
net-dialup/fcdsl/files/capi.conf

Firmware/module configuration for AVM FRITZ!Card DSL
Comment 10 tuXXer 2004-05-13 11:47:12 UTC
Created attachment 31357 [details]
net-dialup/fcdsl/files/fcdsl

Module options for modules.d
Comment 11 tuXXer 2004-05-13 11:47:47 UTC
Created attachment 31358 [details]
net-dialup/fcdsl/files/pap-secrets

PAP-Secrets file
Comment 12 tuXXer 2004-05-13 11:48:20 UTC
Created attachment 31359 [details]
net-dialup/fcdsl/files/peer

Peer file for ppp/peers
Comment 13 tuXXer 2004-05-13 11:50:02 UTC
Created attachment 31360 [details]
net-dialup/fcdsl/fcdsl-2.6.ebuild

The AVM FRITZ!Card DSL ebuild
Comment 14 tuXXer 2004-09-05 05:34:08 UTC
Created attachment 38978 [details]
Adopted ebuild

Adding nomirror and new rpm file from SuSE and copying pap-secrets instead of
add new one
Comment 15 Daniel Black (RETIRED) gentoo-dev 2004-09-23 17:04:09 UTC
capi4k-utils-20040810

I'll look at fdcs sometime.
Comment 16 tuXXer 2004-09-26 17:08:30 UTC
Sounds great!

Well, then I should check the newest one in ;-)
Comment 17 tuXXer 2004-09-26 17:10:01 UTC
Created attachment 40498 [details]
net-dialup/fcdsl/fcdsl-2.6.ebuild

New ebuild with changing to rpm-eclass
Comment 18 Daniel Black (RETIRED) gentoo-dev 2004-09-27 02:23:19 UTC
Wow - looks fair complicated - hope it works cause I can't test it.

Can I get you to fix the following things before I include this:

1. Copyright header - should be /usr/portage/header.txt
2. I would of thought 20.7 was the version instead of 2.6
3. can you please test it against the latest version of net-dialup/capi4k-utils
4. So I can test it, and that it works for people doing binary compiles without the hardware - can the ebuild be modified to not fail if the hardware isn't detected. Is somehow placing comments/dummy values in the config file possible? I see this will mean compiling all of the kernel modules. Definately put an ewarn in to warn users that the hardware hasn't been detected.
5. Please try to avoid addwrite. Compiling kernels with O=${WORKDIR}/output is one way to compile into the staging directory. i.e:
mkdir ${WORKDIR}/output
sed -i -e "s: modules:O=${WORKDIR}/output modules:g" */src/Makefile
should work.
Also set KDIR=${KERNEL_DIR} (from kernel-mod eclass) before the compile for consistancy with other kernel-mod ebuilds.
6. Change insinto /lib/modules/ to /lib/modules/${KV_VERSION_FULL} after calling kernel-mod_getversion for consistant detection of kernel version.
7. ebuilds are not ment to be interactive. To save all the work  you have done place the configuration part in a routine called "config". The user can then call ebuild /var/db/pkg/sys-kernel/${PF}/${PF}.ebuild config for the interactive configure. Make sure you call detect_fcdsl_card from within this routine.
8. Not that I distrust SuSE (was my distro before Gentoo) but I'd rather not put a RESTRICT="nomirror" in.

Please I do appreciate your efforts, and if you fix these few things, I will put the ebuild in. If you have any questions try to catch me on #gentoo-bugs or if you have any general ebuild questions you can ask there too.

Thankyou for your work so far.
Comment 19 Daniel Black (RETIRED) gentoo-dev 2004-09-27 02:54:42 UTC
*** Bug 40495 has been marked as a duplicate of this bug. ***
Comment 20 Daniel Black (RETIRED) gentoo-dev 2004-09-27 02:57:29 UTC
*** Bug 43716 has been marked as a duplicate of this bug. ***
Comment 21 Daniel Black (RETIRED) gentoo-dev 2004-09-27 03:02:35 UTC
*** Bug 46769 has been marked as a duplicate of this bug. ***
Comment 22 Daniel Black (RETIRED) gentoo-dev 2004-09-27 03:03:36 UTC
*** Bug 47732 has been marked as a duplicate of this bug. ***
Comment 23 Daniel Black (RETIRED) gentoo-dev 2004-09-27 03:05:54 UTC
*** Bug 55902 has been marked as a duplicate of this bug. ***
Comment 24 Daniel Black (RETIRED) gentoo-dev 2004-09-27 03:08:22 UTC
*** Bug 49945 has been marked as a duplicate of this bug. ***
Comment 25 Daniel Black (RETIRED) gentoo-dev 2004-09-27 03:10:57 UTC
bug 49945 contains patch for 2.4 kernel. Still applicable?
Comment 26 Torsten Veller (RETIRED) gentoo-dev 2004-09-27 03:27:21 UTC
Please don't mix the ISDN cards with DSL cards!
Comment 27 Daniel Gebhardt 2004-09-27 03:55:30 UTC
A little to many bugs marked as duplicate in my opinion. As tove mentioned don't mix DSL and ISDN drivers.
Bugs 55902 and 46769 deal with FritzCard ISDN drivers on 2.6 Kernels so there could be two duplicates.
Bug 49945 is about compiling fcpci-03.11.02 on 2.4.26 so I doubt it duplicates DSL on 2.6 in any way ...

Daniel
Comment 28 Daniel Black (RETIRED) gentoo-dev 2004-09-27 04:03:16 UTC
Sorry for mixing the ISDN cards with DSL cards.

Is fcpci the same code as this one? Is it possible to make one ebuild that does both. If so I'd rather maintain one even if it does have a few 2.4/2.6 branches in code.
Comment 29 tuXXer 2004-09-27 04:23:25 UTC
Mixing of fcpci with fcdsl, in my opinion, isn't good, because it is possible to use ADSL and ISDN cards together in one pc. The other thing is that the ADSL drivers from AVM aren't 100% equal to the ISDN drivers, as far as I know. How how about a virtual for this cards?
Comment 30 Daniel Black (RETIRED) gentoo-dev 2004-09-27 04:35:27 UTC
ISDN and DSL will stay separate. fcpci will be fixed (if someone opens the right bug cause I think my bug editing priviledges need revoking). Sorry for the confusion. virtuals are to handles ebuild that depend on a number of possible which isn't the case here. Sorry for the confusion. I'm not going to try to say any more cause I'll say something wrong. again!

Everyone sick of me spamming them yet? Bye for now
Comment 31 tuXXer 2004-09-27 04:46:28 UTC
1. Copyright header - should be /usr/portage/header.txt
=> O.K.

2. I would of thought 20.7 was the version instead of 2.6
==> That's a good question, the fcdsl-2.6.20.7.src.rpm contains four different drivers. The indepent drivers (not all are available) have an other version string. 2.4 kernel drivers from AVM begin with e.g. 3. Would be 2.6.20.7 OK for you?

3. can you please test it against the latest version of net-dialup/capi4k-utils
=> I'm alway using the latest version. Well, I'm fixing the DEPS for it.

4. So I can test it, and that it works for people doing binary compiles without the hardware - can the ebuild be modified to not fail if the hardware isn't detected. Is somehow placing comments/dummy values in the config file possible? I see this will mean compiling all of the kernel modules. Definately put an ewarn in to warn users that the hardware hasn't been detected.
=> I think this is a bad idea, because the package includes 5 driver packages for 5 different cards. Which should I compile: one or all? Compiling all is much overflow for getting on card running. The other point is, that the kernel must be configure with capi. Is there a way to check this?

5. Please try to avoid addwrite. Compiling kernels with O=${WORKDIR}/output is one way to compile into the staging directory. i.e:
mkdir ${WORKDIR}/output
sed -i -e "s: modules:O=${WORKDIR}/output modules:g" */src/Makefile
should work.
Also set KDIR=${KERNEL_DIR} (from kernel-mod eclass) before the compile for consistancy with other kernel-mod ebuilds.
=> Nice idea, will try to fix it

6. Change insinto /lib/modules/ to /lib/modules/${KV_VERSION_FULL} after calling kernel-mod_getversion for consistant detection of kernel version.
=> O.K. so it should be...

7. ebuilds are not ment to be interactive. To save all the work  you have done place the configuration part in a routine called "config". The user can then call ebuild /var/db/pkg/sys-kernel/${PF}/${PF}.ebuild config for the interactive configure. Make sure you call detect_fcdsl_card from within this routine.
=> Other ebuilds does this the same way (e.g. ut2004). But it is no problem to change this

8. Not that I distrust SuSE (was my distro before Gentoo) but I'd rather not put a RESTRICT="nomirror" in.
=> O.K. so it should be...


Sorry, for not using the IRC net but I'm at work...
Comment 32 tuXXer 2004-09-27 04:49:35 UTC
>ISDN and DSL will stay separate. fcpci will be fixed (if someone opens the right bug cause I think my bug editing priviledges need revoking). Sorry for the confusion. virtuals are to handles ebuild that depend on a number of possible which isn't the case here. Sorry for the confusion. I'm not going to try to say > any more cause I'll say something wrong. again!
>
> Everyone sick of me spamming them yet? Bye for now

No, problem!

I think the spamming were worth it, because after a long time of non development in net-dialup, someone does the work.

And nobody is perfect! ;-)
Comment 33 Daniel Black (RETIRED) gentoo-dev 2004-09-27 05:23:48 UTC
2.

2.6.20.7 is good

4.

Was thinking all. It is only the case if non were detected. I'm assuming the modules names don't confict.
capi testing - fgrep ${KERNEL_DIR}/.config. I'd only do this to issue a warning that a recompile is needed.
Comment 34 tuXXer 2004-09-27 16:29:44 UTC
Created attachment 40567 [details]
net-dialup/fcdsl-2.6.20.7.ebuild

Well, following changes made

a) Use of kmod-eclass instead of kernel-mod
b) Creating pkg_config section for peer file creation
c) Detection doesn't stop compile, when no card detected all sources are build
d) Detection of CONFIG_ISDN_CAPI_CAPI20 added (kmod_get_config_var)
e) Using KV_VERSION_FULL
f) Using kmod_src_compile
g) Dynamical write of all configuration files
h) adding sys-kernel/config-kernel to DEPS, because of kmod_src_compile, to
remove addwrite

Hope, I didn't miss something ;-)
Comment 35 Daniel Black (RETIRED) gentoo-dev 2004-09-28 01:08:51 UTC
good enough :-) added thankyou and well done.

BTW seems to be problems setting config-kernel to stuff other than addwrite. I'm sure thats a config-kernel problem though.
Comment 36 tuXXer 2004-11-20 07:59:53 UTC
Created attachment 44363 [details]
net-dialup/fcdsl-2.6.20.7-r1.ebuild

Changing from kmod to kernel-mod because kmod is obsolete