diff options
author | 2011-08-26 23:24:15 +0200 | |
---|---|---|
committer | 2011-08-26 23:24:15 +0200 | |
commit | 521266990a2c7f63fed2b657815ee28a8e4f83fa (patch) | |
tree | 241847b5cfe8138779586610e3a10eec71081233 | |
download | dfreise-521266990a2c7f63fed2b657815ee28a8e4f83fa.tar.gz dfreise-521266990a2c7f63fed2b657815ee28a8e4f83fa.tar.bz2 dfreise-521266990a2c7f63fed2b657815ee28a8e4f83fa.zip |
Initial commit
-rw-r--r-- | net-dialup/fcpci/ChangeLog | 69 | ||||
-rw-r--r-- | net-dialup/fcpci/Manifest | 11 | ||||
-rw-r--r-- | net-dialup/fcpci/fcpci-0.1-r1.ebuild | 57 | ||||
-rw-r--r-- | net-dialup/fcpci/fcpci-0.1-r2.ebuild | 60 | ||||
-rw-r--r-- | net-dialup/fcpci/fcpci-0.1-r3.ebuild | 63 | ||||
-rw-r--r-- | net-dialup/fcpci/fcpci-0.1-r4.ebuild | 64 | ||||
-rw-r--r-- | net-dialup/fcpci/fcpci-0.1-r5.ebuild | 66 | ||||
-rw-r--r-- | net-dialup/fcpci/fcpci-0.1.ebuild | 51 | ||||
-rw-r--r-- | net-dialup/fcpci/files/kernel-2.6.34.patch | 129 | ||||
-rw-r--r-- | net-dialup/fcpci/files/kernel-2.6.39.patch | 24 | ||||
-rw-r--r-- | net-dialup/fcpci/metadata.xml | 9 | ||||
-rw-r--r-- | profiles/repo_name | 1 |
12 files changed, 604 insertions, 0 deletions
diff --git a/net-dialup/fcpci/ChangeLog b/net-dialup/fcpci/ChangeLog new file mode 100644 index 0000000..686a8d7 --- /dev/null +++ b/net-dialup/fcpci/ChangeLog @@ -0,0 +1,69 @@ +# ChangeLog for net-dialup/fcpci +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/ChangeLog,v 1.19 2008/01/30 01:36:37 sbriesen Exp $ + +*fcpci-0.1-r1 (30 Jan 2008) + + 30 Jan 2008; Stefan Briesenick <sbriesen@gentoo.org> +fcpci-0.1-r1.ebuild: + fixing string.h problem (see bug #202385). + + 06 Jan 2008; Stefan Briesenick <sbriesen@gentoo.org> + -fcpci-3.11.02-r2.ebuild: + removed old ebuild. + +*fcpci-0.1 (06 Jan 2008) + + 06 Jan 2008; Stefan Briesenick <sbriesen@gentoo.org> metadata.xml, + +fcpci-0.1.ebuild: + using special openSUSE repository for AVM drivers from now on. + + 12 Mar 2006; Alin Nastac <mrness@gentoo.org> fcpci-3.11.02-r2.ebuild: + Quote $WORKDIR. + +*fcpci-3.11.02-r2 (09 Mar 2005) + + 09 Mar 2005; Stefan Schweizer <genstef@gentoo.org> + -fcpci-3.11.02-r1.ebuild, +fcpci-3.11.02-r2.ebuild: + Revision bump, removing 2.6 kernel support in favour of fritzcapi. + + 09 Mar 2005; Alin Nastac <mrness@gentoo.org> fcpci-3.11.02-r1.ebuild: + Replace kernel-mod inheritance with linux-mod. + + 06 Feb 2005; Alin Nastac <mrness@gentoo.org> -fcpci-03.11.02.ebuild: + Remove obsolete ebuild. + + 10 Jan 2005; Alin Nastac <mrness@gentoo.org> -files/tools.c.diff, + -fcpci-03.10.02.ebuild, fcpci-3.11.02-r1.ebuild: + Mark stable on x86 and remove old ebuild. + + 19 Nov 2004; Alin Nastac <mrness@gentoo.org> -fcpci-03.09.10.ebuild, + fcpci-03.11.02.ebuild: + Marked stable on x86. Removed old ebuild. + +*fcpci-3.11.02-r1 (13 Nov 2004) + + 13 Nov 2004; Alin Nastac <mrness@gentoo.org> +fcpci-3.11.02-r1.ebuild: + Add support for 2.6 kernels. See #55902 + +*fcpci-03.11.02 (10 Apr 2004) + + 10 Apr 2004; Heinrich Wendel <lanius@gentoo.org> : + version bump, bug #45355, add kernel 2.6 warning bug #46769 + + 19 Nov 2003; Heinrich Wendel <lanius@gentoo.org> metadata.xml: + metadata + +*fcpci-03.10.02 (25 Apr 2003) + + 25 Apr 2003; Martin Holzer <mholzer@gentoo.org> fcpci-03.10.02.ebuild: + Version bumped. Submitted by Georg Lippold <georg.lippold@gmx.de> in #12348. + +*fcpci-03.09.10 (9 Aug 2002) + + 9 Aug 2002; Bart Verwilst <verwilst@gentoo.org> : + + Initial version, just in time for our Gentoo 1.4 release :o) + This version will be included on our bootcd. + + + diff --git a/net-dialup/fcpci/Manifest b/net-dialup/fcpci/Manifest new file mode 100644 index 0000000..b434ba0 --- /dev/null +++ b/net-dialup/fcpci/Manifest @@ -0,0 +1,11 @@ +AUX kernel-2.6.34.patch 4515 RMD160 679ad014f799d9bf9f13c1aa1fd6451faebc5bc8 SHA1 d5c94106b43f9f4371274efe47aaeb6e4347fce7 SHA256 94e83fad32998596f97d7f5df3e9c674419616a3bcfb3cb7309c220204ac0de7 +AUX kernel-2.6.39.patch 810 RMD160 811e597fa65a65a4aa59eb176f5e95b401b9124c SHA1 edb7f9e66331997a52023f6fb6c5ab9a3e762f45 SHA256 5ceb47f364064b11d8ed12f73cf6cbaf22b53cd5f9109d7b1beb7943620bc2af +DIST fcpci-0.1-0.src.rpm 1419782 RMD160 d6313192d01e0f6a64f890b3015e0541c9dbfbd3 SHA1 08e88c9b395b783dc8dce91b61f286f1c05a261e SHA256 f39c7cb83b21fa9ba1de71f357c72552aa1c5327d7ad4ac55274e71e9da3f8e4 +EBUILD fcpci-0.1-r1.ebuild 1420 RMD160 562a27896ae75fa930137c0d2fa1bb97f7903636 SHA1 f7a27fc5eac3a2633876a6cc6b94a8b7bcb4654d SHA256 12f393a4cdb3d9f1c7545e210a6e638141a77d20fabd733cf2bb6e45e966ba96 +EBUILD fcpci-0.1-r2.ebuild 1506 RMD160 7e366d3d49f65163a6f842296f4da0f266e7e082 SHA1 7f6c75f2b27ee80754947f5f26e662a936869fa5 SHA256 8a0853ca2da45c2d5088abd36c14777f7ca133b9b479ee9905fbab1271d93ed4 +EBUILD fcpci-0.1-r3.ebuild 1551 RMD160 b5704e2375fb17c3218c26c03150f0eab16e67c0 SHA1 3e03e35680f8446d8ea8602eac5160660b612b08 SHA256 b097ec71e74d452c687a3b934d226b09d6658d41763e0f05f9fd8b1be680202c +EBUILD fcpci-0.1-r4.ebuild 1591 RMD160 efc7c50b01d0ea6c3004037d0542d2644f6c12e6 SHA1 5cf3ec7d533226bcea51d5490002e5f361e344f5 SHA256 5b70c7e38f92195159e882b4b83d9a99275829425ce48d4ede82790f89039a4e +EBUILD fcpci-0.1-r5.ebuild 1628 RMD160 3412049681b7b1301726977861b70790b94e3826 SHA1 e7e12faaa5dbf4c2bdd4611a75f333c981039249 SHA256 36ab2336d82029c86f0b41daa22a562147b60feb68b65781ee8069e5295408d8 +EBUILD fcpci-0.1.ebuild 1218 RMD160 1cbf98258fa2c1e5d02a7296b8d5b3097edbc005 SHA1 0c83dcf3bd82d1093f584d711a6c3e081eb6cdce SHA256 55e480ea46d3a94f5007a2d09412eef6c4309daed2588d0d2e53e12b0ab85a2e +MISC ChangeLog 2227 RMD160 060922bcdde1ce2f790b6e64c91cb3614238e0e9 SHA1 23de2b3501dbc97e28ee28ce2fbe9a11625f7a68 SHA256 9cc04f0a006fd140d511aa0d08054c39eaa2ac423758349183ff8b9bf46e9819 +MISC metadata.xml 263 RMD160 ea2e7ecb186a7fd9b309bd3aff02c9e139981ce8 SHA1 62ca0c83d00d102d78427e59920cf79b62d37dc1 SHA256 ad6c0344e90e2a2c1f631b6d6e0242799bec90eee1eaccdc04674f52be49ea75 diff --git a/net-dialup/fcpci/fcpci-0.1-r1.ebuild b/net-dialup/fcpci/fcpci-0.1-r1.ebuild new file mode 100644 index 0000000..94f77de --- /dev/null +++ b/net-dialup/fcpci/fcpci-0.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/fcpci-0.1-r1.ebuild,v 1.1 2008/01/30 01:36:37 sbriesen Exp $ + +inherit eutils rpm linux-mod + +DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card PCI" +HOMEPAGE="http://opensuse.foehr-it.de/" +SRC_URI="http://opensuse.foehr-it.de/rpms/10_3/src/${P}-0.src.rpm" + +LICENSE="AVM-FC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +S="${WORKDIR}/fritz" + +pkg_setup() { + linux-mod_pkg_setup + + if ! kernel_is 2 6; then + die "This package works only with 2.6 kernel!" + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" + MODULE_NAMES="${PN}(net:${S}/src)" +} + +src_unpack() { + local BIT="" PAT="01234" + if use amd64; then + BIT="64bit-" PAT="1234" + fi + + rpm_unpack "${DISTDIR}/${A}" || die "failed to unpack ${A} file" + DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz + + cd "${S}" + epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec) + convert_to_m src/Makefile + + for i in lib/*-lib.o; do + einfo "Localize symbols in ${i##*/} ..." + objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat \ + -L strcmp -L strcpy -L strlen -L strncmp -L strncpy "${i}" + done +} + +src_install() { + linux-mod_src_install + dodoc CAPI*.txt + dohtml *.html +} diff --git a/net-dialup/fcpci/fcpci-0.1-r2.ebuild b/net-dialup/fcpci/fcpci-0.1-r2.ebuild new file mode 100644 index 0000000..0605a5e --- /dev/null +++ b/net-dialup/fcpci/fcpci-0.1-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/fcpci-0.1-r1.ebuild,v 1.1 2008/01/30 01:36:37 sbriesen Exp $ + +inherit eutils rpm linux-mod + +DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card PCI" +HOMEPAGE="http://opensuse.foehr-it.de/" +SRC_URI="http://opensuse.foehr-it.de/rpms/11_2/src/${P}-0.src.rpm" +RESTRICT="nomirror" + +LICENSE="AVM-FC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +S="${WORKDIR}/fritz" + +pkg_setup() { + linux-mod_pkg_setup + + if ! kernel_is 2 6; then + die "This package works only with 2.6 kernel!" + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" + MODULE_NAMES="${PN}(net:${S}/src)" +} + +src_unpack() { + local BIT="" PAT="01234567" + if use amd64; then + BIT="64bit-" PAT="1234" + fi + + rpm_unpack "${DISTDIR}/${A}" || die "failed to unpack ${A} file" + DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz + + cd "${S}" + epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec) + convert_to_m src/Makefile + + for i in lib/*-lib.o; do + einfo "Localize symbols in ${i##*/} ..." + objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat \ + -L strcmp -L strcpy -L strlen -L strncmp -L strncpy "${i}" + done + + sed -i "s#/var/lib/fritz#${WORKDIR}/fritz/lib#" src/Makefile +} + +src_install() { + linux-mod_src_install + dodoc CAPI*.txt + dohtml *.html +} diff --git a/net-dialup/fcpci/fcpci-0.1-r3.ebuild b/net-dialup/fcpci/fcpci-0.1-r3.ebuild new file mode 100644 index 0000000..bd06cbe --- /dev/null +++ b/net-dialup/fcpci/fcpci-0.1-r3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/fcpci-0.1-r1.ebuild,v 1.1 2008/01/30 01:36:37 sbriesen Exp $ + +inherit eutils rpm linux-mod + +DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card PCI" +HOMEPAGE="http://opensuse.foehr-it.de/" +SRC_URI="http://opensuse.foehr-it.de/rpms/11_2/src/${P}-0.src.rpm" +RESTRICT="nomirror" + +LICENSE="AVM-FC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +S="${WORKDIR}/fritz" + +pkg_setup() { + linux-mod_pkg_setup + + if ! kernel_is 2 6; then + die "This package works only with 2.6 kernel!" + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" + MODULE_NAMES="${PN}(net:${S}/src)" +} + +src_unpack() { + local BIT="" PAT="01234567" + if use amd64; then + BIT="64bit-" PAT="1234" + fi + + rpm_unpack "${A}" || die "failed to unpack ${A} file" + DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz + + cd "${S}" + epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec) + convert_to_m src/Makefile + + for i in lib/*-lib.o; do + einfo "Localize symbols in ${i##*/} ..." + objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat \ + -L strcmp -L strcpy -L strlen -L strncmp -L strncpy "${i}" + done + + sed -i "s#/var/lib/fritz#${WORKDIR}/fritz/lib#" src/Makefile + + cd "${S}/src" + epatch ${FILESDIR}/kernel-2.6.34.patch +} + +src_install() { + linux-mod_src_install + dodoc CAPI*.txt + dohtml *.html +} diff --git a/net-dialup/fcpci/fcpci-0.1-r4.ebuild b/net-dialup/fcpci/fcpci-0.1-r4.ebuild new file mode 100644 index 0000000..54ad72a --- /dev/null +++ b/net-dialup/fcpci/fcpci-0.1-r4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/fcpci-0.1-r1.ebuild,v 1.1 2008/01/30 01:36:37 sbriesen Exp $ + +inherit eutils rpm linux-mod + +DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card PCI" +HOMEPAGE="http://opensuse.foehr-it.de/" +SRC_URI="http://opensuse.foehr-it.de/rpms/11_2/src/${P}-0.src.rpm" +RESTRICT="nomirror" + +LICENSE="AVM-FC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +S="${WORKDIR}/fritz" + +pkg_setup() { + linux-mod_pkg_setup + + if ! kernel_is 2 6; then + die "This package works only with 2.6 kernel!" + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" + MODULE_NAMES="${PN}(net:${S}/src)" +} + +src_unpack() { + local BIT="" PAT="01234567" + if use amd64; then + BIT="64bit-" PAT="1234" + fi + + rpm_unpack "${A}" || die "failed to unpack ${A} file" + DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz + + cd "${S}" + epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec) + convert_to_m src/Makefile + + for i in lib/*-lib.o; do + einfo "Localize symbols in ${i##*/} ..." + objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat \ + -L strcmp -L strcpy -L strlen -L strncmp -L strncpy "${i}" + done + + sed -i "s#/var/lib/fritz#${WORKDIR}/fritz/lib#" src/Makefile + + cd "${S}/src" + epatch ${FILESDIR}/kernel-2.6.34.patch + epatch ${FILESDIR}/kernel-2.6.39.patch +} + +src_install() { + linux-mod_src_install + dodoc CAPI*.txt + dohtml *.html +} diff --git a/net-dialup/fcpci/fcpci-0.1-r5.ebuild b/net-dialup/fcpci/fcpci-0.1-r5.ebuild new file mode 100644 index 0000000..5c19f38 --- /dev/null +++ b/net-dialup/fcpci/fcpci-0.1-r5.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/fcpci-0.1-r1.ebuild,v 1.1 2008/01/30 01:36:37 sbriesen Exp $ + +inherit eutils rpm linux-mod + +DESCRIPTION="AVM kernel 2.6/3.0 modules for Fritz!Card PCI" +HOMEPAGE="http://opensuse.foehr-it.de/" +SRC_URI="http://opensuse.foehr-it.de/rpms/11_2/src/${P}-0.src.rpm" +RESTRICT="nomirror" + +LICENSE="AVM-FC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +S="${WORKDIR}/fritz" + +pkg_setup() { + linux-mod_pkg_setup + + if ! kernel_is 2 6; then + if ! kernel_is 3 0; then + die "This package works only with 2.6 kernel!" + fi + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" + MODULE_NAMES="${PN}(net:${S}/src)" +} + +src_unpack() { + local BIT="" PAT="01234567" + if use amd64; then + BIT="64bit-" PAT="1234" + fi + + rpm_unpack "${A}" || die "failed to unpack ${A} file" + DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz + + cd "${S}" + epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec) + convert_to_m src/Makefile + + for i in lib/*-lib.o; do + einfo "Localize symbols in ${i##*/} ..." + objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat \ + -L strcmp -L strcpy -L strlen -L strncmp -L strncpy "${i}" + done + + sed -i "s#/var/lib/fritz#${WORKDIR}/fritz/lib#" src/Makefile + + cd "${S}/src" + epatch ${FILESDIR}/kernel-2.6.34.patch + epatch ${FILESDIR}/kernel-2.6.39.patch +} + +src_install() { + linux-mod_src_install + dodoc CAPI*.txt + dohtml *.html +} diff --git a/net-dialup/fcpci/fcpci-0.1.ebuild b/net-dialup/fcpci/fcpci-0.1.ebuild new file mode 100644 index 0000000..94a5c1c --- /dev/null +++ b/net-dialup/fcpci/fcpci-0.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/fcpci-0.1.ebuild,v 1.1 2008/01/06 01:53:01 sbriesen Exp $ + +inherit eutils rpm linux-mod + +DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card PCI" +HOMEPAGE="http://opensuse.foehr-it.de/" +SRC_URI="http://opensuse.foehr-it.de/rpms/10_3/src/${P}-0.src.rpm" + +LICENSE="AVM-FC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +S="${WORKDIR}/fritz" + +pkg_setup() { + linux-mod_pkg_setup + + if ! kernel_is 2 6; then + die "This package works only with 2.6 kernel!" + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" + MODULE_NAMES="${PN}(net:${S}/src)" +} + +src_unpack() { + local BIT="" PAT="01234" + if use amd64; then + BIT="64bit-" PAT="1234" + fi + + rpm_unpack "${DISTDIR}/${A}" || die "failed to unpack ${A} file" + DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz + + cd "${S}" + epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec) + convert_to_m "src/Makefile" +} + +src_install() { + linux-mod_src_install + dodoc CAPI*.txt + dohtml *.html +} diff --git a/net-dialup/fcpci/files/kernel-2.6.34.patch b/net-dialup/fcpci/files/kernel-2.6.34.patch new file mode 100644 index 0000000..26b6381 --- /dev/null +++ b/net-dialup/fcpci/files/kernel-2.6.34.patch @@ -0,0 +1,129 @@ +--- driver.c~ 2010-05-17 11:51:30.315940940 +0200 ++++ driver.c 2010-05-17 11:51:30.362264370 +0200 +@@ -48,6 +48,8 @@ + #include "defs.h" + #include "lib.h" + #include "driver.h" ++#include <linux/proc_fs.h> ++#include <linux/seq_file.h> + + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +@@ -490,39 +492,34 @@ + + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +-static int __kcapi ctr_info ( +- char * page, +- char ** start, +- off_t ofs, +- int count, +- int * eof, +- struct capi_ctr * ctrl ++ ++static int __kcapi ctr_info (struct seq_file *m, void *v + ) { ++ struct capi_ctr *ctrl = m->private; + card_t * card; + char * temp; + unsigned char flag; +- int len = 0; + + assert (ctrl != NULL); + card = (card_t *) ctrl->driverdata; + assert (card != NULL); +- pprintf (page, &len, "%-16s %s\n", "name", SHORT_LOGO); +- pprintf (page, &len, "%-16s 0x%04x\n", "io", card->base); +- pprintf (page, &len, "%-16s %d\n", "irq", card->irq); ++ seq_printf(m, "%-16s %s\n", "name", SHORT_LOGO); ++ seq_printf(m, "%-16s 0x%04x\n", "io", card->base); ++ seq_printf(m, "%-16s %d\n", "irq", card->irq); + temp = card->version ? card->string[1] : "A1"; +- pprintf (page, &len, "%-16s %s\n", "type", temp); ++ seq_printf(m, "%-16s %s\n", "type", temp); + temp = card->version ? card->string[0] : "-"; + #if defined (__fcclassic__) || defined (__fcpcmcia__) +- pprintf (page, &len, "%-16s 0x%04x\n", "revision", card->info); ++ seq_printf(m, "%-16s 0x%04x\n", "revision", card->info); + #elif defined (__fcpci__) +- pprintf (page, &len, "%-16s %d\n", "class", card_id); ++ seq_printf(m, "%-16s %d\n", "class", card_id); + #endif +- pprintf (page, &len, "%-16s %s\n", "ver_driver", temp); +- pprintf (page, &len, "%-16s %s\n", "ver_cardtype", SHORT_LOGO); ++ seq_printf(m, "%-16s %s\n", "ver_driver", temp); ++ seq_printf(m, "%-16s %s\n", "ver_cardtype", SHORT_LOGO); + + flag = ((unsigned char *) (ctrl->profile.manu))[3]; + if (flag) { +- pprintf(page, &len, "%-16s%s%s%s%s%s%s%s\n", "protocol", ++ seq_printf(m, "%-16s%s%s%s%s%s%s%s\n", "protocol", + (flag & 0x01) ? " DSS1" : "", + (flag & 0x02) ? " CT1" : "", + (flag & 0x04) ? " VN3" : "", +@@ -534,21 +531,30 @@ + } + flag = ((unsigned char *) (ctrl->profile.manu))[5]; + if (flag) { +- pprintf(page, &len, "%-16s%s%s%s%s\n", "linetype", ++ seq_printf(m, "%-16s%s%s%s%s\n", "linetype", + (flag & 0x01) ? " point to point" : "", + (flag & 0x02) ? " point to multipoint" : "", + (flag & 0x08) ? " leased line without D-channel" : "", + (flag & 0x04) ? " leased line with D-channel" : "" + ); + } +- if (len < ofs) { +- return 0; +- } +- *eof = 1; +- *start = page - ofs; +- return ((count < len - ofs) ? count : len - ofs); ++ ++ return 0; + } /* ctr_info */ + ++static int ctr_proc_open(struct inode *inode, struct file *file) ++{ ++ return single_open(file, ctr_info, PDE(inode)->data); ++} ++ ++const struct file_operations ctr_proc_fops = { ++ .owner = THIS_MODULE, ++ .open = ctr_proc_open, ++ .read = seq_read, ++ .llseek = seq_lseek, ++ .release = single_release, ++}; ++ + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ + static void __kcapi reset_ctrl (struct capi_ctr * ctrl) { +--- driver.c~ 2010-05-17 19:55:09.158499792 +0200 ++++ driver.c 2010-05-17 19:55:09.190784099 +0200 +@@ -222,16 +222,6 @@ + } /* kill_version */ + + /*---------------------------------------------------------------------------*\ +-\*---------------------------------------------------------------------------*/ +-static void pprintf (char * page, int * len, const char * fmt, ...) { +- va_list args; +- +- va_start (args, fmt); +- *len += vsprintf (page + *len, fmt, args); +- va_end (args); +-} /* pprintf */ +- +-/*---------------------------------------------------------------------------*\ + \*-C-------------------------------------------------------------------------*/ + static inline int in_critical (void) { + +@@ -632,7 +622,7 @@ + ctrl->release_appl = release_appl; + ctrl->send_message = send_msg; + ctrl->procinfo = proc_info; +- ctrl->ctr_read_proc = ctr_info; ++ ctrl->proc_fops = &ctr_proc_fops; + if (0 != (res = attach_capi_ctr (ctrl))) { + dec_use_count (); + stop (card); diff --git a/net-dialup/fcpci/files/kernel-2.6.39.patch b/net-dialup/fcpci/files/kernel-2.6.39.patch new file mode 100644 index 0000000..a77a112 --- /dev/null +++ b/net-dialup/fcpci/files/kernel-2.6.39.patch @@ -0,0 +1,24 @@ +--- driver.c~ 2011-06-15 21:18:25.792662667 +0200 ++++ driver.c 2011-06-15 21:22:15.307420952 +0200 +@@ -101,7 +101,8 @@ + static unsigned long crit_flags; + static atomic_t scheduler_enabled = ATOMIC_INIT (0); + static atomic_t scheduler_id = ATOMIC_INIT (-1); +-static spinlock_t sched_lock = SPIN_LOCK_UNLOCKED; ++//static spinlock_t sched_lock = SPIN_LOCK_UNLOCKED; ++static DEFINE_SPINLOCK(sched_lock); + #if !defined (__fcclassic__) + static int card_id = 0; + #endif +--- tools.c~ 2011-06-15 21:18:32.336741325 +0200 ++++ tools.c 2011-06-15 21:22:23.899524196 +0200 +@@ -529,7 +529,8 @@ + ERROR("Could not allocate lock structure!!!\n"); + return 0; + } +- tmp->lock = SPIN_LOCK_UNLOCKED; ++// tmp->lock = SPIN_LOCK_UNLOCKED; ++ spin_lock_init(&tmp->lock); + *plock = tmp; + return 1; + } /* lock_init */ diff --git a/net-dialup/fcpci/metadata.xml b/net-dialup/fcpci/metadata.xml new file mode 100644 index 0000000..5c648b8 --- /dev/null +++ b/net-dialup/fcpci/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-dialup</herd> + <maintainer> + <email>sbriesen@gentoo.org</email> + <name>Stefan Briesenick</name> + </maintainer> +</pkgmetadata> diff --git a/profiles/repo_name b/profiles/repo_name new file mode 100644 index 0000000..a555219 --- /dev/null +++ b/profiles/repo_name @@ -0,0 +1 @@ +dfreise |