Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82122 - Ebuilds for AVM firmware files
Summary: Ebuilds for AVM firmware files
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Dialup Developers
URL: ftp://ftp.in-berlin.de/pub/capi4linux...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-15 08:31 UTC by Stefan Briesenick (RETIRED)
Modified: 2005-08-06 16:51 UTC (History)
0 users

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


Attachments
avm-firmware-b1-3.11.03.ebuild (avm-firmware-b1-3.11.03.ebuild,1.89 KB, text/plain)
2005-02-15 08:32 UTC, Stefan Briesenick (RETIRED)
Details
avm-firmware-c2-3.11.06.ebuild (avm-firmware-c2-3.11.06.ebuild,1.86 KB, text/plain)
2005-02-15 08:32 UTC, Stefan Briesenick (RETIRED)
Details
avm-firmware-c4-3.11.06.ebuild (avm-firmware-c4-3.11.06.ebuild,1.86 KB, text/plain)
2005-02-15 08:33 UTC, Stefan Briesenick (RETIRED)
Details
avm-firmware-t1-3.09.07.ebuild (avm-firmware-t1-3.09.07.ebuild,1.87 KB, text/plain)
2005-02-15 08:33 UTC, Stefan Briesenick (RETIRED)
Details
avm-firmware-bluefusb-3.18.39.ebuild (avm-firmware-bluefusb-3.18.39.ebuild,1.89 KB, text/plain)
2005-02-15 08:34 UTC, Stefan Briesenick (RETIRED)
Details
isdn-firmware-2004.4.5-r2.ebuild (isdn-firmware-2004.4.5-r2.ebuild,791 bytes, text/plain)
2005-02-15 08:35 UTC, Stefan Briesenick (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:31:06 UTC
Ok folks (notably Stefan and Alin ;)), here are the ebuilds for the AVM firmware files (as discussed via email).

I tried to make it gentoo- and maintainer-friendly as possible!

# AVM doesn't release versioned archives for their firmware!
# So this ebuild has a 'config' section for easy download
# current firmware files and package them into $DISTDIR
# for easy upload to gentoo mirrors.

# Instructions for version bumping:
#
# 1. check $HOMEPAGE for latest version
# 2. copy old ebuild to new one with new version
# 3. run "ebuild <ebuild> config" to download firmware
# 4. run "ebuild <ebuild> digest" to create the digest
# 5. check if the ebuild works properly
#
# And if you're a maintainer:
#
# 6. upload the created "${P}.tar.bz2" to gentoo mirrors
# 7. release ebuild


Reproducible: Always
Steps to Reproduce:
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:32:17 UTC
Created attachment 51277 [details]
avm-firmware-b1-3.11.03.ebuild

Firmware for the AVM cards: B1, B1 PCI, B1 PCI V4.0, B1 PCMCIA
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:32:47 UTC
Created attachment 51278 [details]
avm-firmware-c2-3.11.06.ebuild

Firmware for the AVM C2 card
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:33:23 UTC
Created attachment 51279 [details]
avm-firmware-c4-3.11.06.ebuild

Firmware for the AVM C4 card
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:33:55 UTC
Created attachment 51280 [details]
avm-firmware-t1-3.09.07.ebuild

Firmware for the AVM cards: T1, T1-B
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:34:22 UTC
Created attachment 51281 [details]
avm-firmware-bluefusb-3.18.39.ebuild

Firmware for the AVM BlueFritz! USB card (not needed for v2.0)
Comment 6 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:35:53 UTC
Created attachment 51282 [details]
isdn-firmware-2004.4.5-r2.ebuild

updated isdn-firmware-2004.4.5-r1.ebuild which doesn't install the files of the
avm-firmware-* ebuilds.
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2005-02-15 08:41:54 UTC
Can we please continue to have one ebuild for all of the firmware files?
It would make more sense to select them by use-flag but a special package for every single firmware seems overkill imo.
Best is of course to add the firmware to the appropriate driver ebuilds.
Comment 8 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-15 08:47:17 UTC
no, it is NOT possible, because the firmare-files are updated independently by AVM and have different version numbers. It would be much more complicated to merge them! If we merge them, we have to maintain some kind of "README" with the version numbers listed, etc. 

Trust me, you really want seperate ebuilds! It's much easier to handle.


Comment 9 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-16 05:07:18 UTC
to clarify some mis-understandings:

The user don't have to run "ebuild <ebuild> config". This is up to the maintainer. The user just says "emerge <firmware>". The pkg_config() is just a helper for the maintainer for easy download and package the latest firmware. The resulting <firmware>.tar.bz2 have to be uploaded then to the gentoo-mirrors.

The problem is, that AVM doesn't release versioned tarballs or such, but only versioned directories on their FTP. And this will unfortunately not change. Using 3rd-party solutions, like SuSE-RPMs, are not really good, since we have to depend on their willingness to update and *release* new RPMs on their FTP. We lose the "freshness" of our packages.

So my solution is easy to handle and remains full compatibility to gentoo-portage.

To answer another question: it's not very intelligent to package all firmware files into a single tarball. AVM maintains different versions for the firmwares. One for every card. How do you want to version the mega-tarball? With the date of the latest firmware in the tarball? And now imagine, that firmware has a bug and is removed from the AVM FTP. How do you version the downgrade? Furthermore: AVM updates the T1 firmware. But you only have a B1. Do you really want to download 1.1MB for nothing? How do you want to maintain a list of the included versions (which is really needed, if you have one big tarball). Etc. pp. There're only disadvantages in using a single, huge tarball.

So my suggested solution is slick, gentoo- and maintainer-friendly and very transparent for the user.

Think about it! ;-)
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2005-02-16 12:42:34 UTC
hmm... You misuse config function; it is there to properly configure the package after installation (see man ebuild)
But your is intention is nice.
Comment 11 Stefan Briesenick (RETIRED) gentoo-dev 2005-02-16 13:52:21 UTC
I know that my pkg_config() is some kind of abuse. But there isn't a pkg_download_and_package_avm_stuff(). And pkg_config() is not needed otherwise in these ebuilds. So it's a hack, but a cool one. ;-)

It's up to you to ask the core/portage maintainers to add a special keyword for such hacks.

The other solution would be a seperate download-script. But where do you store this script? On your local harddisk? Into $FILESDIR for reference? What is, when the maintainers are changing? So, once again, it's a hack but a very usable one.
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2005-03-07 14:05:29 UTC
Stefan, one question. Isn't kind of strange to keep isdn-firmware if we'll have separate ebuils for every kind of isdn firmware?
In other words, can you provide the rest of ebuilds for what's left in isdn-firmware?
Comment 13 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-07 16:48:24 UTC
I can. But not now. I'm sleepy. ;)

Gimme some time and I do this.
btw: Most of the firmware is part of isdn4k-utils. We dropped it there.

Ok, don't hurry. We should find a good solution, finally. The problems started with the AVM firmware not being available in a versioned TAR. So all we do here in this bug is to find some kind of "final", gentoo-friendly and slick solution.

I think about it all tomorrow.
Comment 14 Alin Năstac (RETIRED) gentoo-dev 2005-05-08 07:15:18 UTC
sbriesen, genstef... what did you decided?
will this bug be fixed or not?
Comment 15 Stefan Briesenick (RETIRED) gentoo-dev 2005-05-08 14:17:00 UTC
@alin: it will be fixed soon. ;) Give us a few days...
Comment 16 Stefan Briesenick (RETIRED) gentoo-dev 2005-08-05 12:39:07 UTC
I think, we can close this bug for now. I upgraded isdn-firmware to latest SuSE 
stuff. Now we have current stuff in portage. 
 
If there's a need in future to do it with splitted ebuild, I will do it then. 
 
Comment 17 Alin Năstac (RETIRED) gentoo-dev 2005-08-06 00:15:26 UTC
then this isn't the proper resolution
Comment 18 Alin Năstac (RETIRED) gentoo-dev 2005-08-06 00:16:49 UTC
this one is
Comment 19 Stefan Briesenick (RETIRED) gentoo-dev 2005-08-06 16:51:21 UTC
ok. ;-)