diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2005-01-29 09:24:53 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2005-01-29 09:24:53 +0000 |
commit | f1f9a892e1eb8992d19eea8177e495a9ef225506 (patch) | |
tree | e092286767cb8566c0d01da96701c133d9e02d78 /net-dialup/fritzcapi | |
parent | amd64/ppc KEYWORDS (diff) | |
download | historical-f1f9a892e1eb8992d19eea8177e495a9ef225506.tar.gz historical-f1f9a892e1eb8992d19eea8177e495a9ef225506.tar.bz2 historical-f1f9a892e1eb8992d19eea8177e495a9ef225506.zip |
New version from SuSE, I also added newer tarballs from AVM for some drivers
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-dialup/fritzcapi')
-rw-r--r-- | net-dialup/fritzcapi/ChangeLog | 8 | ||||
-rw-r--r-- | net-dialup/fritzcapi/Manifest | 4 | ||||
-rw-r--r-- | net-dialup/fritzcapi/files/digest-fritzcapi-2.6.32 | 7 | ||||
-rw-r--r-- | net-dialup/fritzcapi/fritzcapi-2.6.32.ebuild | 152 |
4 files changed, 169 insertions, 2 deletions
diff --git a/net-dialup/fritzcapi/ChangeLog b/net-dialup/fritzcapi/ChangeLog index 185a10aa2947..96c17b4ff870 100644 --- a/net-dialup/fritzcapi/ChangeLog +++ b/net-dialup/fritzcapi/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dialup/fritzcapi # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/ChangeLog,v 1.8 2005/01/20 22:09:50 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/ChangeLog,v 1.9 2005/01/29 09:24:53 genstef Exp $ + +*fritzcapi-2.6.32 (29 Jan 2005) + + 29 Jan 2005; Stefan Schweizer <genstef@gentoo.org> + +fritzcapi-2.6.32.ebuild: + New version from SuSE, I also added newer tarballs from AVM for some drivers 20 Jan 2005; Stefan Schweizer <genstef@gentoo.org> fritzcapi-2.6.26.7-r3.ebuild: diff --git a/net-dialup/fritzcapi/Manifest b/net-dialup/fritzcapi/Manifest index 92e7e6d43a50..7b7d65482600 100644 --- a/net-dialup/fritzcapi/Manifest +++ b/net-dialup/fritzcapi/Manifest @@ -1,5 +1,7 @@ +MD5 49938dfe2ea709e3e0c88f465898056f fritzcapi-2.6.32.ebuild 5220 MD5 8980721ab64a8e61c0b908a25c60424d fritzcapi-2.6.26.7-r3.ebuild 4410 -MD5 d3c50850a7e076e61a617bf4aab8ee46 ChangeLog 1715 +MD5 191890a8bc310b86934b0289906b0a46 ChangeLog 1909 MD5 1263c46695d96ea0f5d40540b938c13c metadata.xml 301 MD5 9944aebce0f4b12843c5312ac4ba90b5 files/fritzcapi-2.6.26.7-fix-for-2.6.10.patch 473 +MD5 94a169a4f214862fa95e35813e857c54 files/digest-fritzcapi-2.6.32 518 MD5 4e97476cdc108508618f39f2aab8c70c files/digest-fritzcapi-2.6.26.7-r3 151 diff --git a/net-dialup/fritzcapi/files/digest-fritzcapi-2.6.32 b/net-dialup/fritzcapi/files/digest-fritzcapi-2.6.32 new file mode 100644 index 000000000000..1e2a837119c0 --- /dev/null +++ b/net-dialup/fritzcapi/files/digest-fritzcapi-2.6.32 @@ -0,0 +1,7 @@ +MD5 152e5bd203645166c6b887b6e48dfc86 km_fritzcapi-2.6-32.i586.rpm 2532837 +MD5 8e27c2cd253a58c0c1d56cf00a2ef80b capi4linux-2004.4.5-0.i586.rpm 166931 +MD5 b0f8eb15fc8f3902633dd48f93dc9a68 fcpci-suse9.1-3.11-02.tar.gz 974643 +MD5 071400f24d43f174d6325c8573e1b3e2 fcpcmcia-suse91-3.11-02.tar.gz 973605 +MD5 cb85199aac07bd47e02095057611ad27 fcusb-suse9.1-3.11-04.tar.gz 989012 +MD5 e1966846af1408d82306cdf748704947 fcusb2-suse9.1-3.11-04.tar.gz 1011965 +MD5 efcc695d18390fe5f2876a2e57256ac8 fxusb-suse9.1-3.11-04.tar.gz 991108 diff --git a/net-dialup/fritzcapi/fritzcapi-2.6.32.ebuild b/net-dialup/fritzcapi/fritzcapi-2.6.32.ebuild new file mode 100644 index 000000000000..94c05d62c45b --- /dev/null +++ b/net-dialup/fritzcapi/fritzcapi-2.6.32.ebuild @@ -0,0 +1,152 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/fritzcapi-2.6.32.ebuild,v 1.1 2005/01/29 09:24:53 genstef Exp $ + +inherit linux-mod rpm eutils + +DESCRIPTION="SuSE's 2.6 AVM kernel modules for fcclassic, fcpci, fcpcmcia, fcpnp, fcusb, fcusb2, fxusb_CZ and fxusb" +HOMEPAGE="http://www.avm.de/" + +AVM_SRC=("fritzcrd.pci" "fritzcrd.pcm" "fritzcrd.usb" "fritzcrdusb.v20" "fritzx.usb") +AVM_FILES=("fcpci-suse9.1-3.11-02" "fcpcmcia-suse91-3.11-02" + "fcusb-suse9.1-3.11-04" "fcusb2-suse9.1-3.11-04" "fxusb-suse9.1-3.11-04") +SRC_URI="http://rpmfind.net/linux/SuSE-Linux/i386/current/suse/i586/km_${P/2.6./2.6-}.i586.rpm + ftp://ftp.suse.com/pub/suse/i386/9.1/suse/i586/capi4linux-2004.4.5-0.i586.rpm" +for ((CARD=0; CARD < ${#AVM_SRC[*]}; CARD++)); do + SRC_URI="${SRC_URI} ftp://ftp.avm.de/cardware/${AVM_SRC[CARD]}/linux/suse.91/${AVM_FILES[CARD]}.tar.gz" +done + + + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="pcmcia usb" + +DEPEND=">=net-dialup/capi4k-utils-20040810" + +S="${WORKDIR}/usr/src/kernel-modules/fritzcapi" + +FRITZCAPI_MODULES=("fcclassic" "fcpci" "fcpcmcia" "fcpnp" "fcusb" "fcusb2" + "fxusb_CZ" "fxusb" "e2220pc" "e5520pc") +FRITZCAPI_TARGETS=("fritz.classic" "fritz.pci" "fritz.pcmcia" "fritz.pnp" + "fritz.usb" "fritz.usb2" "fritz.xusb_CZ" "fritz.xusb" "e2220pc" "e5520pc") + +BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${WORKDIR}/var/lib/fritz" +BUILD_TARGETS="all" + +get_card_module_name() { + local CARD=$1 + echo "${FRITZCAPI_MODULES[CARD]}(extra:${S}/${FRITZCAPI_TARGETS[CARD]}/src)" + if [ "${FRITZCAPI_MODULES[CARD]/pcmcia/}" != ${FRITZCAPI_MODULES[CARD]} ]; then + #PCMCIA have also a *_cs module + echo "${FRITZCAPI_MODULES[CARD]}_cs(extra:${S}/${FRITZCAPI_TARGETS[CARD]}/src)" + fi +} + +pkg_setup() { + linux-mod_pkg_setup + if ! kernel_is 2 6; then + die "This package works only with 2.6 kernel!" + fi + if ! linux_chkconfig_present ISDN_CAPI_CAPI20; then + die "For using the driver you need a kernel with enabled CAPI support." + fi + + local USERCARD CARD + FRITZCAPI_BUILD_CARDS="" + FRITZCAPI_BUILD_TARGETS="" + MODULE_NAMES="" + if [ -n "${FRITZCAPI_CARDS}" ]; then + #Check existence of user selected cards + for USERCARD in ${FRITZCAPI_CARDS} ; do + for ((CARD=0; CARD < ${#FRITZCAPI_MODULES[*]}; CARD++)); do + if [ "${USERCARD}" = "${FRITZCAPI_MODULES[CARD]}" ]; then + FRITZCAPI_BUILD_CARDS="${FRITZCAPI_BUILD_CARDS} ${FRITZCAPI_MODULES[CARD]}" + FRITZCAPI_BUILD_TARGETS="${FRITZCAPI_BUILD_TARGETS} ${FRITZCAPI_TARGETS[CARD]}" + MODULE_NAMES="${MODULE_NAMES} `get_card_module_name ${CARD}`" + continue 2 + fi + done + die "Module ${USERCARD} not present in ${P}" + done + else + einfo + einfo "You can control the modules which are built with the variable" + einfo "FRITZCAPI_CARDS which should contain a blank separated list" + einfo "of a selection from the following cards:" + einfo " ${FRITZCAPI_MODULES[*]}" + einfo + ewarn "I give you the chance of hitting Ctrl-C and make the necessary" + ewarn "adjustments in /etc/make.conf." + ebeep + + #Filter build targets by USE + for ((CARD=0; CARD < ${#FRITZCAPI_MODULES[*]}; CARD++)); do + if [ "${FRITZCAPI_MODULES[CARD]/pcmcia/}" != ${FRITZCAPI_MODULES[CARD]} ] && ! useq pcmcia; then + continue + fi + if [ "${FRITZCAPI_MODULES[CARD]/usb/}" != ${FRITZCAPI_MODULES[CARD]} ] && ! useq usb; then + continue + fi + FRITZCAPI_BUILD_CARDS="${FRITZCAPI_BUILD_CARDS} ${FRITZCAPI_MODULES[CARD]}" + FRITZCAPI_BUILD_TARGETS="${FRITZCAPI_BUILD_TARGETS} ${FRITZCAPI_TARGETS[CARD]}" + MODULE_NAMES="${MODULE_NAMES} `get_card_module_name ${CARD}`" + done + fi + + einfo "Selected cards: ${FRITZCAPI_BUILD_CARDS}" +} + +src_unpack() { + rpm_unpack ${DISTDIR}/km_${P/2.6./2.6-}.i586.rpm ${DISTDIR}/capi4linux-2004.4.5-0.i586.rpm + cd ${S} + for ((CARD=0; CARD < ${#AVM_SRC[*]}; CARD++)); do + unpack ${AVM_FILES[CARD]}.tar.gz + CRD_NAME=${AVM_FILES[CARD]/-*} + CRD_NAME=${CRD_NAME/fc} + CRD_NAME=${CRD_NAME/f} + mv fritz.${CRD_NAME} fritz.${CRD_NAME}.orig + mv fritz fritz.${CRD_NAME} + done + + cd ${S} + if kernel_is ge 2 6 10; then + epatch ${FILESDIR}/fritzcapi-2.6.26.7-fix-for-2.6.10.patch + fi +} + +src_install() { + linux-mod_src_install + + dodir /lib/firmware /etc + + echo -e "# card\tfile\tproto\tio\tirq\tmem\tcardnr\toptions" >${D}/etc/capi.conf + echo "#" >>${D}/etc/capi.conf + + [ "${FRITZCAPI_BUILD_TARGETS/xusb_CZ/}" != "${FRITZCAPI_BUILD_TARGETS}" ] && \ + dodoc ${S}/fritz.xusb_CZ/README.fxusb_CZ + + [ "${FRITZCAPI_BUILD_TARGETS/usb2/}" != "${FRITZCAPI_BUILD_TARGETS}" ] && ( + insinto /lib/firmware + insopts -m0644 + doins ${WORKDIR}/usr/lib/isdn/* + echo -e "#fcusb2\tput_here_your_firmware\t-\t-\t-\t-\t-" >>${D}/etc/capi.conf + ) + + #Compatibility with <=net-dialup/isdn4k-utils-20041006-r3. + #Please remove it when it becomes obsolete + dosym firmware /lib/isdn +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "If your device needs a firmware, you should edit copy the firmware files" + einfo "in /lib/firmware and edit /etc/capi.conf." + einfo + [ "${FRITZCAPI_BUILD_TARGETS/usb2/}" != "${FRITZCAPI_BUILD_TARGETS}" ] && ( + einfo "Note: This ebuild has already installed firmware files necessary for following modules:" + einfo " fcusb2" + ) +} |