diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2008-01-30 01:22:32 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2008-01-30 01:22:32 +0000 |
commit | 4baf2c43c728deae05208691cc34a03c5254c083 (patch) | |
tree | 0d2f4e5302c4f2bd30d100035e636261c8a865fc /net-dialup/e5520pc | |
parent | fixing string.h problem (see bug #202385) + patches for kernel 2.6.24 (thanks... (diff) | |
download | gentoo-2-4baf2c43c728deae05208691cc34a03c5254c083.tar.gz gentoo-2-4baf2c43c728deae05208691cc34a03c5254c083.tar.bz2 gentoo-2-4baf2c43c728deae05208691cc34a03c5254c083.zip |
fixing string.h problem (see bug #202385) + patches for kernel 2.6.24 (thanks to Arnd Feldmueller <arnd.feldmueller@web.de>).
(Portage version: 2.1.4)
Diffstat (limited to 'net-dialup/e5520pc')
-rw-r--r-- | net-dialup/e5520pc/ChangeLog | 9 | ||||
-rw-r--r-- | net-dialup/e5520pc/e5520pc-0.1-r1.ebuild | 53 | ||||
-rw-r--r-- | net-dialup/e5520pc/files/digest-e5520pc-0.1-r1 | 3 | ||||
-rw-r--r-- | net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff | 46 |
4 files changed, 110 insertions, 1 deletions
diff --git a/net-dialup/e5520pc/ChangeLog b/net-dialup/e5520pc/ChangeLog index 016d07c89c82..abf20fb80411 100644 --- a/net-dialup/e5520pc/ChangeLog +++ b/net-dialup/e5520pc/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-dialup/e5520pc # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/e5520pc/ChangeLog,v 1.1 2008/01/06 01:27:58 sbriesen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/e5520pc/ChangeLog,v 1.2 2008/01/30 01:22:31 sbriesen Exp $ + +*e5520pc-0.1-r1 (30 Jan 2008) + + 30 Jan 2008; Stefan Briesenick <sbriesen@gentoo.org> + +files/e5520pc_kernel-2.6.24.diff, +e5520pc-0.1-r1.ebuild: + fixing string.h problem (see bug #202385) + patches for kernel 2.6.24 + (thanks to Arnd Feldmueller <arnd.feldmueller@web.de>). *e5520pc-0.1 (06 Jan 2008) diff --git a/net-dialup/e5520pc/e5520pc-0.1-r1.ebuild b/net-dialup/e5520pc/e5520pc-0.1-r1.ebuild new file mode 100644 index 000000000000..0c287bf2ea97 --- /dev/null +++ b/net-dialup/e5520pc/e5520pc-0.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/e5520pc/e5520pc-0.1-r1.ebuild,v 1.1 2008/01/30 01:22:31 sbriesen Exp $ + +inherit eutils rpm linux-mod + +DESCRIPTION="AVM kernel 2.6 modules for Eumex 5520 PC" +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="~x86" +IUSE="" + +DEPEND="!net-dialup/fritzcapi" +RDEPEND="${DEPEND} net-dialup/capi4k-utils" + +S="${WORKDIR}/${PN}" + +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() { + rpm_unpack "${DISTDIR}/${A}" || die "failed to unpack ${A} file" + DISTDIR="${WORKDIR}" unpack eumex*.tar.bz2 + + cd "${S}" + epatch $(sed -n "s|^Patch[01234]:\s*\(.*\)|../\1|p" ../${PN}.spec) + epatch "${FILESDIR}/${PN}_kernel-2.6.24.diff" + 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/e5520pc/files/digest-e5520pc-0.1-r1 b/net-dialup/e5520pc/files/digest-e5520pc-0.1-r1 new file mode 100644 index 000000000000..8995f0648ab5 --- /dev/null +++ b/net-dialup/e5520pc/files/digest-e5520pc-0.1-r1 @@ -0,0 +1,3 @@ +MD5 11efcd3345ba368d9104ce87bf127328 e5520pc-0.1-0.src.rpm 316463 +RMD160 3a58aa54c6903929b0f268784a3e0816a9654295 e5520pc-0.1-0.src.rpm 316463 +SHA256 898f5a0a9a14586012ec03a46cbb5d02d4012ed1c1edbcd828f2b975eb1b3438 e5520pc-0.1-0.src.rpm 316463 diff --git a/net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff b/net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff new file mode 100644 index 000000000000..a5f2043682be --- /dev/null +++ b/net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff @@ -0,0 +1,46 @@ +--- src/driver.c.orig 2008-01-30 02:07:00.000000000 +0100 ++++ src/driver.c 2008-01-30 02:07:00.000000000 +0100 +@@ -91,8 +91,12 @@ + static DECLARE_WAIT_QUEUE_HEAD(sched_wait); + static DECLARE_WAIT_QUEUE_HEAD(tx_wait); + static DECLARE_WAIT_QUEUE_HEAD(rx_wait); ++static DECLARE_COMPLETION(hotplug); /* New DECLARE, <arnd.feldmueller@web.de> */ ++static DECLARE_COMPLETION(notify); /* New DECLARE, <arnd.feldmueller@web.de> */ ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) + static DECLARE_MUTEX_LOCKED(hotplug); + static DECLARE_MUTEX_LOCKED(notify); ++#endif + + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +@@ -754,7 +758,7 @@ + close_func = func; + close_data = data; + +- INIT_WORK (&closing_work, closing_worker); ++ INIT_WORK (&closing_work, (work_func_t)closing_worker); + schedule_work (&closing_work); + LOG("Worker scheduled.\n"); + } /* start_closing_worker */ +@@ -1171,7 +1175,10 @@ + } + } + LOG("Scheduler thread stopped.\n"); ++ complete(&hotplug); /* Complete Thread Sync here <arnd.feldmueller@web.de> */ ++ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) + up (&hotplug); ++ #endif + return 0; + } /* scheduler */ + +@@ -1206,7 +1213,10 @@ + wake_up_interruptible (&wait); + } + LOG("Scheduler thread signalled, waiting...\n"); ++ wait_for_completion(&hotplug); /* Wait for complete Thread Sync <arnd.feldmueller@web.de> */ ++ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) + down (&hotplug); ++ #endif + LOG("Scheduler thread[%d] terminated.\n", thread_pid); + } + thread_pid = -1; |