diff options
author | 2012-05-21 23:20:18 +0200 | |
---|---|---|
committer | 2012-05-21 23:20:18 +0200 | |
commit | d75891cf4aa12191d194dc126a7ba0d3352dbc57 (patch) | |
tree | 39c72b7a4ae1e1934a824de60c67d9718569af6e | |
parent | Wrong commit... (diff) | |
download | dfreise-d75891cf4aa12191d194dc126a7ba0d3352dbc57.tar.gz dfreise-d75891cf4aa12191d194dc126a7ba0d3352dbc57.tar.bz2 dfreise-d75891cf4aa12191d194dc126a7ba0d3352dbc57.zip |
+fcpci-0.1-r8.ebuild
Kernel 3.4.0+ compatibility fix by Arnd Feldmueller.
-rw-r--r-- | net-dialup/fcpci/Manifest | 2 | ||||
-rw-r--r-- | net-dialup/fcpci/fcpci-0.1-r8.ebuild | 85 | ||||
-rw-r--r-- | net-dialup/fcpci/files/fcpci-kernel-3.4.0.patch | 11 |
3 files changed, 98 insertions, 0 deletions
diff --git a/net-dialup/fcpci/Manifest b/net-dialup/fcpci/Manifest index b9e5989..4aadf6c 100644 --- a/net-dialup/fcpci/Manifest +++ b/net-dialup/fcpci/Manifest @@ -2,11 +2,13 @@ AUX fcpci-kernel-2.6.34.patch 4358 RMD160 63ba14a64be689ac4f15cfe010106a9a3c4e7c AUX fcpci-kernel-2.6.39-amd64.patch 1663 RMD160 3c893fea87fafdca47dc2f9626cceefd0a94a057 SHA1 11c3b0f852b27e4ff0177c402de2d184cfdb16e4 SHA256 5170d808807897319d85ed035c170d672df81ee505e795ee0b31d2fc4a9359e1 AUX fcpci-kernel-2.6.39.patch 850 RMD160 d6f8573a5aa8b15fce6ee8096e20d23ca3032397 SHA1 cb67c68483a0c71e1b5800c7c76bbe415522dda2 SHA256 9f56ee45159365216fd58b1d76ce878fd4db2eee456c04354c56330db7a257d6 AUX fcpci-kernel-3.2.0.patch 336 RMD160 02ef9f76955937818bc389751ded148b461d3fbf SHA1 ba5592f70d584969299cab2e230f9b94c4604ca9 SHA256 b1c11e9909d5119bda153403adc3c1e54bec3567216bab2feaff7e1088c58d43 +AUX fcpci-kernel-3.4.0.patch 342 RMD160 b91005aefdc44b1a4a88ce8a3389b325a8a0458b SHA1 27e148bb0072fa26f100c8fbbcab7aeeefde6dda SHA256 221bdc9cbc275a79d872bae42fa8fdf3c87422300602d766f080e0ab1e741383 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-r5.ebuild 1535 RMD160 06a08d96f69d5afa4d0480d355d4b7a93ad21f8a SHA1 c9dea569088a9f6d9c96e45c4d34d6a2f88f44fd SHA256 f5458a60ae2dd955f1a6ed6527b89f18ff981c6364bff50f0c18a7d555412c97 EBUILD fcpci-0.1-r6.ebuild 1659 RMD160 c60e0ec4b0dc81198351aca20c4acc92c814f150 SHA1 445eb90548a18a846a93d0c3226e7d105a95ea38 SHA256 f3ef07ba92ed05943a55da310a1ac251344b60bdccebc081fbca2025b2332340 EBUILD fcpci-0.1-r7.ebuild 1744 RMD160 b09a65efa65a2d79111ef10b315d2a2a02e56513 SHA1 c0b192818b84ff68e8e0c63f8bd1e5f59612640c SHA256 76ccc097ed4482463d04cf74aae779b942431a8d9c09d04e156d85596cba460b +EBUILD fcpci-0.1-r8.ebuild 1827 RMD160 0999329ac9f708ecbff902e724cccf38d9b47287 SHA1 61365c81b6214dff00c0e74fe98d4ceef3e14659 SHA256 61074b317a3f421fefbf1f1ff25ec0d510a7cf1b78ff6e9caa0bff2b55cd7b59 MISC ChangeLog 3097 RMD160 ff32696374338d434a5d84fabc0f11817d236038 SHA1 36a182185b007dc0c3245f7556d24b356248b4ec SHA256 1e9e92869669cbdd080b807549cd10bf0f62d2b4ad611982f0ec22de029f81af MISC metadata.xml 263 RMD160 ea2e7ecb186a7fd9b309bd3aff02c9e139981ce8 SHA1 62ca0c83d00d102d78427e59920cf79b62d37dc1 SHA256 ad6c0344e90e2a2c1f631b6d6e0242799bec90eee1eaccdc04674f52be49ea75 diff --git a/net-dialup/fcpci/fcpci-0.1-r8.ebuild b/net-dialup/fcpci/fcpci-0.1-r8.ebuild new file mode 100644 index 0000000..1e074cf --- /dev/null +++ b/net-dialup/fcpci/fcpci-0.1-r8.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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" + +LICENSE="AVM-FC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +RESTRICT="primaryuri" + +S="${WORKDIR}/fritz" + +pkg_setup() { + linux-mod_pkg_setup + + if ! kernel_is ge 2 6 ; then + die "This package works only with 2.6/3.0 kernel!" + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" + MODULE_NAMES="${PN}(net:${S}/src)" +} + +src_unpack() { + local BIT="" PAT="012345" + if use amd64; then + BIT="64bit-" PAT="1234" + fi + + if kernel_is ge 2 6 31 ; then + PAT="${PAT}67" + 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) + + if kernel_is ge 2 6 34 ; then + epatch "${FILESDIR}"/fcpci-kernel-2.6.34.patch + fi + + if kernel_is ge 2 6 39 ; then + if use amd64; then + epatch "${FILESDIR}"/fcpci-kernel-2.6.39-amd64.patch + else + epatch "${FILESDIR}"/fcpci-kernel-2.6.39.patch + fi + + if kernel_is ge 3 2 0 ; then + epatch "${FILESDIR}"/fcpci-kernel-3.2.0.patch + fi + + if kernel_is ge 3 4 0 ; then + epatch "${FILESDIR}"/fcpci-kernel-3.4.0.patch + fi + + fi + + 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/files/fcpci-kernel-3.4.0.patch b/net-dialup/fcpci/files/fcpci-kernel-3.4.0.patch new file mode 100644 index 0000000..dacae28 --- /dev/null +++ b/net-dialup/fcpci/files/fcpci-kernel-3.4.0.patch @@ -0,0 +1,11 @@ +--- fritz/src/driver.c_old 2012-05-21 20:58:44.000000000 +0200 ++++ fritz/src/driver.c 2012-05-21 20:58:59.000000000 +0200 +@@ -23,7 +23,7 @@ + #include <asm/io.h> + #include <asm/irq.h> + #include <asm/atomic.h> +-#include <asm/system.h> ++#include <asm/switch_to.h> + #include <linux/version.h> + #include <linux/ioport.h> + #include <linux/sched.h> |