summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2004-12-05 17:44:22 +0000
committerAlin Năstac <mrness@gentoo.org>2004-12-05 17:44:22 +0000
commitfbd3f6c87f9192ef562a17691df1cecf36ce9b1b (patch)
tree9ac6c3a40646a4b6a9fe3158b4f9c6b9118351d6 /net-dialup
parentStable on x86. (Manifest recommit) (diff)
downloadgentoo-2-fbd3f6c87f9192ef562a17691df1cecf36ce9b1b.tar.gz
gentoo-2-fbd3f6c87f9192ef562a17691df1cecf36ce9b1b.tar.bz2
gentoo-2-fbd3f6c87f9192ef562a17691df1cecf36ce9b1b.zip
put infos about FRITZCAPI_CARDS
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/fritzcapi/ChangeLog7
-rw-r--r--net-dialup/fritzcapi/Manifest12
-rw-r--r--net-dialup/fritzcapi/files/digest-fritzcapi-2.6.26.7-r21
-rw-r--r--net-dialup/fritzcapi/fritzcapi-2.6.26.7-r2.ebuild99
4 files changed, 108 insertions, 11 deletions
diff --git a/net-dialup/fritzcapi/ChangeLog b/net-dialup/fritzcapi/ChangeLog
index a0b18b12a801..fa2c23314585 100644
--- a/net-dialup/fritzcapi/ChangeLog
+++ b/net-dialup/fritzcapi/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dialup/fritzcapi
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/ChangeLog,v 1.3 2004/11/28 10:16:48 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/ChangeLog,v 1.4 2004/12/05 17:44:22 mrness Exp $
+
+*fritzcapi-2.6.26.7-r2 (05 Dec 2004)
+
+ 05 Dec 2004; Alin Nastac <mrness@gentoo.org> +fritzcapi-2.6.26.7-r2.ebuild:
+ Put informational messages about env variable FRITZCAPI_CARDS (see #73431).
*fritzcapi-2.6.26.7-r1 (28 Nov 2004)
diff --git a/net-dialup/fritzcapi/Manifest b/net-dialup/fritzcapi/Manifest
index 6b4acbdff27c..3aa6e1e43887 100644
--- a/net-dialup/fritzcapi/Manifest
+++ b/net-dialup/fritzcapi/Manifest
@@ -1,16 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 1263c46695d96ea0f5d40540b938c13c metadata.xml 301
MD5 dee9f2b4892009394a34c596d3088a55 ChangeLog 759
MD5 1f97975f589a67c14d90d9070cee4350 fritzcapi-2.6.26.7.ebuild 1559
MD5 56afc8aaf5cb53aae9422881becf9cf8 fritzcapi-2.6.26.7-r1.ebuild 2605
+MD5 bdd6bbd570843dfdf6b084c0e03354d1 fritzcapi-2.6.26.7-r2.ebuild 3235
MD5 accf9b4a9f56c30c485802543f4e44d5 files/digest-fritzcapi-2.6.26.7 76
MD5 accf9b4a9f56c30c485802543f4e44d5 files/digest-fritzcapi-2.6.26.7-r1 76
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBqaWZjtv59x0+BrURAoPDAJ9KXAGy8ZkxwYW5IsFQlNsuyDo4fgCgnTAd
-xtXK3AbzTFLfqjMZH1Zn61c=
-=g9jd
------END PGP SIGNATURE-----
+MD5 accf9b4a9f56c30c485802543f4e44d5 files/digest-fritzcapi-2.6.26.7-r2 76
diff --git a/net-dialup/fritzcapi/files/digest-fritzcapi-2.6.26.7-r2 b/net-dialup/fritzcapi/files/digest-fritzcapi-2.6.26.7-r2
new file mode 100644
index 000000000000..364f6b2de00c
--- /dev/null
+++ b/net-dialup/fritzcapi/files/digest-fritzcapi-2.6.26.7-r2
@@ -0,0 +1 @@
+MD5 da1774a7774e22afc7bff26d2978118e km_fritzcapi-2.6-26.7.i586.rpm 1904272
diff --git a/net-dialup/fritzcapi/fritzcapi-2.6.26.7-r2.ebuild b/net-dialup/fritzcapi/fritzcapi-2.6.26.7-r2.ebuild
new file mode 100644
index 000000000000..7bb0425bc3f6
--- /dev/null
+++ b/net-dialup/fritzcapi/fritzcapi-2.6.26.7-r2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/fritzcapi-2.6.26.7-r2.ebuild,v 1.1 2004/12/05 17:44:22 mrness Exp $
+
+inherit kernel-mod rpm eutils
+
+S="${WORKDIR}/usr/src/kernel-modules/fritzcapi"
+
+DESCRIPTION="SuSE's 2.6 AVM kernel modules for fcclassic, fcpci, fcpcmcia, fcpnp, fcusb, fcusb2, fxusb_CZ and fxusb"
+HOMEPAGE="http://www.avm.de/"
+SRC_URI="ftp://ftp.suse.com/pub/suse/i386/update/9.1/rpm/i586/km_${P/2.6./2.6-}.i586.rpm"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="pcmcia usb"
+
+RDEPEND=">=net-dialup/capi4k-utils-20040810"
+DEPEND="${RDEPEND}
+ virtual/linux-sources"
+
+FRITZCAPI_MODULES=("fcclassic" "fcpci" "fcpcmcia" "fcpnp" "fcusb" "fcusb2" "fxusb_CZ" "fxusb")
+FRITZCAPI_TARGETS=("fritz.classic" "fritz.pci" "fritz.pcmcia" "fritz.pnp" "fritz.usb" "fritz.usb2" "fritz.xusb_CZ" "fritz.xusb")
+
+pkg_setup() {
+ if ! kernel-mod_is_2_6_kernel; then
+ die "This package works only with 2.6 kernel!"
+ fi
+ if ! kernel-mod_configoption_present ISDN_CAPI_CAPI20; then
+ die "For using the driver you need a kernel with enabled CAPI support."
+ fi
+ kernel-mod_check_modules_supported
+
+ local USERCARD CARD
+ FRITZCAPI_BUILD_CARDS=""
+ FRITZCAPI_BUILD_TARGETS=""
+ 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]}"
+ 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]}"
+ done
+ fi
+
+ einfo "Selected cards: ${FRITZCAPI_BUILD_CARDS}"
+}
+
+src_unpack() {
+ rpm_src_unpack ${A} || die "Could not unpack RPM package."
+}
+
+src_compile() {
+ (
+ unset ARCH
+ emake KERNEL_SOURCE="${ROOT}/usr/src/linux" TARGETS="${FRITZCAPI_BUILD_TARGETS}" modules || \
+ die "emake modules failed"
+ )
+}
+
+src_install() {
+ insinto /lib/modules/${KV_VERSION_FULL}/extra
+ doins fritz.*/src/*.ko
+}
+
+pkg_postinst() {
+ einfo "Checking kernel module dependencies"
+ [ -r "${ROOT}/usr/src/linux/System.map" ] && \
+ depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
+ [ "${FRITZCAPI_BUILD_TARGETS/xusb_CZ/}" = "${FRITZCAPI_BUILD_TARGETS}" ] || \
+ dodoc fritz.xusb_CZ/README.fxusb_CZ
+}