From 7a1b299a5532ca475afa6e8017b4ebdfd87182ce Mon Sep 17 00:00:00 2001 From: Christian Zoffoli Date: Fri, 9 Mar 2007 14:35:01 +0000 Subject: [PATCH] Version bump, fixed compilation with older and newer kernels. Package-Manager: portage-2.1.2-r9 --- sys-cluster/gnbd-kernel/ChangeLog | 11 ++- sys-cluster/gnbd-kernel/Manifest | 46 ++++++++---- .../files/digest-gnbd-kernel-1.04.00 | 3 + ...03.00-compile-fix-kernel-post-2.6.18.patch | 32 +++++++++ ....04.00-compile-fix-kernel-pre-2.6.19.patch | 32 +++++++++ .../gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild | 9 ++- .../gnbd-kernel/gnbd-kernel-1.03.00.ebuild | 13 ++-- .../gnbd-kernel/gnbd-kernel-1.04.00.ebuild | 72 +++++++++++++++++++ 8 files changed, 196 insertions(+), 22 deletions(-) create mode 100644 sys-cluster/gnbd-kernel/files/digest-gnbd-kernel-1.04.00 create mode 100644 sys-cluster/gnbd-kernel/files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch create mode 100644 sys-cluster/gnbd-kernel/files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch create mode 100644 sys-cluster/gnbd-kernel/gnbd-kernel-1.04.00.ebuild diff --git a/sys-cluster/gnbd-kernel/ChangeLog b/sys-cluster/gnbd-kernel/ChangeLog index 8dfa4366d063..0b8471d0c609 100644 --- a/sys-cluster/gnbd-kernel/ChangeLog +++ b/sys-cluster/gnbd-kernel/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-cluster/gnbd-kernel # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/ChangeLog,v 1.20 2007/03/02 23:57:43 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/ChangeLog,v 1.21 2007/03/09 14:35:01 xmerlin Exp $ + +*gnbd-kernel-1.04.00 (09 Mar 2007) + + 09 Mar 2007; Christian Zoffoli + +files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch, + +files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch, + gnbd-kernel-1.02.00-r1.ebuild, gnbd-kernel-1.03.00.ebuild, + +gnbd-kernel-1.04.00.ebuild: + Version bump, fixed compilation with older and newer kernels. 02 Mar 2007; Christian Zoffoli gnbd-kernel-1.02.00-r1.ebuild, gnbd-kernel-1.03.00.ebuild: diff --git a/sys-cluster/gnbd-kernel/Manifest b/sys-cluster/gnbd-kernel/Manifest index 1b9faac3f693..80e85e2ca2c0 100644 --- a/sys-cluster/gnbd-kernel/Manifest +++ b/sys-cluster/gnbd-kernel/Manifest @@ -1,25 +1,38 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch 1154 RMD160 c6024a6cb9d73db789e9d4fbfcbe183e9964e1bf SHA1 1fded2ce8e7ba4699f8cca6fa41f55d43992790e SHA256 147eab028cb542698ec0cf4d234e54ba38b3dc5d9e2988091a13c0d2cbf18ec3 +MD5 2ec326c6fe02c167a2a744aedbaf68a6 files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch 1154 +RMD160 c6024a6cb9d73db789e9d4fbfcbe183e9964e1bf files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch 1154 +SHA256 147eab028cb542698ec0cf4d234e54ba38b3dc5d9e2988091a13c0d2cbf18ec3 files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch 1154 +AUX gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch 1164 RMD160 ec4b0aff8a265b2ad4fa18f97085d920f22379d5 SHA1 da307a5bcf7ad30ac97c534d8872068ad934d6dd SHA256 b54878e639458ac49b69aba47a73cfc3c56c93d4c8e13c4da144b38c5e26fb88 +MD5 72f27e724697848becb6fdf408a92cd3 files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch 1164 +RMD160 ec4b0aff8a265b2ad4fa18f97085d920f22379d5 files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch 1164 +SHA256 b54878e639458ac49b69aba47a73cfc3c56c93d4c8e13c4da144b38c5e26fb88 files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch 1164 AUX gnbd-kernel-remove-devfs-support.patch 1387 RMD160 6b9d2b4bab7a2d3c2fe423844724f06a1661febd SHA1 74e18a212e02331acccf270ca5cd1db4457b0e7c SHA256 0c20977ba60fcaa8b4f48fddc9fc46d2511148648545ef398992c14e872f47bf MD5 a8a8ce68a0970fcc153d5d840b62f8bb files/gnbd-kernel-remove-devfs-support.patch 1387 RMD160 6b9d2b4bab7a2d3c2fe423844724f06a1661febd files/gnbd-kernel-remove-devfs-support.patch 1387 SHA256 0c20977ba60fcaa8b4f48fddc9fc46d2511148648545ef398992c14e872f47bf files/gnbd-kernel-remove-devfs-support.patch 1387 DIST cluster-1.02.00.tar.gz 1356451 RMD160 e9c0cdd1f5a7542c8a4ea38ccf6d057767269dc5 SHA1 d74cadb1ef21d1cfda333b20d7ef20272e0002d6 SHA256 de45885146f1481808f7a34af5e6b7e2042895a4e3844eaa6161f942345c7849 DIST cluster-1.03.00.tar.gz 1658274 RMD160 6fc16e2edba73dd1a83ecfad749b1553eca6d938 SHA1 c205d8ec034433c33f26724f7f69b0028d2a63d4 SHA256 e61c2438c7ee8d546aec9dd86ee1851c9a71f127c25ad1fb0c59eb4ed534e97b +DIST cluster-1.04.00.tar.gz 1663798 RMD160 5b241f38123c9ad65faf2a9eda7aa3e2dabee839 SHA1 af3bb244a11a6a26c31b142009f6c1f771799337 SHA256 6f4b48e67383681ea6ad6e2907b56e755049816186375c4f2bcb9482da31c2c2 DIST gnbd-kernel-1.02.00-20060713-cvs.patch.gz 381 RMD160 f2a241926fc8645bdf209fce89a80a7a96dc188d SHA1 a78241831b98845940bc3267f833a2cad7d5cb29 SHA256 eee3531aef1de1e1f3657d34b568fe311afd350db933e59410f1c87f65a1c425 -EBUILD gnbd-kernel-1.02.00-r1.ebuild 1557 RMD160 570ea5ee2df3e1ee691d84d5ca88f2581bd82697 SHA1 0e714218a05600dd4e5109dc58a12743fde91794 SHA256 1366e88879f8ca739687bb9e9f2a21229d3eeb653196bc61df64d43e60e55962 -MD5 63f247dcb0423aa9dfcb7595af6e02ba gnbd-kernel-1.02.00-r1.ebuild 1557 -RMD160 570ea5ee2df3e1ee691d84d5ca88f2581bd82697 gnbd-kernel-1.02.00-r1.ebuild 1557 -SHA256 1366e88879f8ca739687bb9e9f2a21229d3eeb653196bc61df64d43e60e55962 gnbd-kernel-1.02.00-r1.ebuild 1557 -EBUILD gnbd-kernel-1.03.00.ebuild 1335 RMD160 f4581591158034193b01e2b13d9d11a1207bdbfe SHA1 b72f174933ecbc4f95a33bc8c514a5f8253de775 SHA256 ad1a5ba46e5ddc153c4d767b1bb41a099500cf259deb80ec31ed37be999ac0b9 -MD5 52372d2cc7795e05f3c59a359407b58b gnbd-kernel-1.03.00.ebuild 1335 -RMD160 f4581591158034193b01e2b13d9d11a1207bdbfe gnbd-kernel-1.03.00.ebuild 1335 -SHA256 ad1a5ba46e5ddc153c4d767b1bb41a099500cf259deb80ec31ed37be999ac0b9 gnbd-kernel-1.03.00.ebuild 1335 -MISC ChangeLog 3326 RMD160 7e8efba418b9c54db65191e809e4d398af3548d0 SHA1 7abc7ae602a723858390aef30527cb230df3e0a1 SHA256 0a1d0e0aa7917e840fc1b87d6fc6c7b9a69f71a84554617f4873abd223399d08 -MD5 9648000019242898aa3033525914db3c ChangeLog 3326 -RMD160 7e8efba418b9c54db65191e809e4d398af3548d0 ChangeLog 3326 -SHA256 0a1d0e0aa7917e840fc1b87d6fc6c7b9a69f71a84554617f4873abd223399d08 ChangeLog 3326 +EBUILD gnbd-kernel-1.02.00-r1.ebuild 1720 RMD160 e4e8e2bce2e435450ac3e58b2c1761db2749809d SHA1 3faf4037e45ed186901136238440557858b2ef04 SHA256 71661d9c4554ba51aaa7c0f9792e2d64b356bdb03c9983fda655ec3aefe895dd +MD5 d7b5bfb7ef1063c70e1cf1c0c7304af0 gnbd-kernel-1.02.00-r1.ebuild 1720 +RMD160 e4e8e2bce2e435450ac3e58b2c1761db2749809d gnbd-kernel-1.02.00-r1.ebuild 1720 +SHA256 71661d9c4554ba51aaa7c0f9792e2d64b356bdb03c9983fda655ec3aefe895dd gnbd-kernel-1.02.00-r1.ebuild 1720 +EBUILD gnbd-kernel-1.03.00.ebuild 1482 RMD160 e026c15ae1eb51eddeaa314a0b30daf6ff69c6f5 SHA1 cee32bd69f2ea26dc0a302b5b03cbc46fe04b1ec SHA256 a2927d94d36b430a30866aa768a3d30ccd95669c461abd2d2ba7f5eb38c88ee8 +MD5 f7011c6b778bf06b666b287a9bf41884 gnbd-kernel-1.03.00.ebuild 1482 +RMD160 e026c15ae1eb51eddeaa314a0b30daf6ff69c6f5 gnbd-kernel-1.03.00.ebuild 1482 +SHA256 a2927d94d36b430a30866aa768a3d30ccd95669c461abd2d2ba7f5eb38c88ee8 gnbd-kernel-1.03.00.ebuild 1482 +EBUILD gnbd-kernel-1.04.00.ebuild 1614 RMD160 dc7b25c0aacf543cfc5380a7c8239c7ca340af53 SHA1 9fd991435e548fea71f7f590ba731be45c2ceec0 SHA256 8c875ba77e1bd5a19be9987c9307a7f053624938c495f8869c4296fd2f9ac4e6 +MD5 f7afacf1118aee766ba4b0857073d098 gnbd-kernel-1.04.00.ebuild 1614 +RMD160 dc7b25c0aacf543cfc5380a7c8239c7ca340af53 gnbd-kernel-1.04.00.ebuild 1614 +SHA256 8c875ba77e1bd5a19be9987c9307a7f053624938c495f8869c4296fd2f9ac4e6 gnbd-kernel-1.04.00.ebuild 1614 +MISC ChangeLog 3706 RMD160 6d9619e0c413099ec6c7e049b10d95a7843f1ed7 SHA1 ebd05606a751c722fbe7e311b30dde426339c2ef SHA256 6bcb4d9f81a712471083b25fd6ea8b1eda801b526c9f0ff0f53a5aff8ae10915 +MD5 2b73567439a0bb1cf3bd75a65d29cd56 ChangeLog 3706 +RMD160 6d9619e0c413099ec6c7e049b10d95a7843f1ed7 ChangeLog 3706 +SHA256 6bcb4d9f81a712471083b25fd6ea8b1eda801b526c9f0ff0f53a5aff8ae10915 ChangeLog 3706 MISC metadata.xml 223 RMD160 f9651ff0237b684fc6b65b83bb9140623b669a6d SHA1 033d2c47eb2bfe68e657ac2d68a7bfd28aab5b22 SHA256 b75b89c431f244420a0c81f9157c9fc656a919a8aac011778e1b410f70851bd3 MD5 a64b9a1937a5cfc2fbaf373521f65d47 metadata.xml 223 RMD160 f9651ff0237b684fc6b65b83bb9140623b669a6d metadata.xml 223 @@ -30,10 +43,13 @@ SHA256 e7dfb4fbd435a3636dc4ed4afad9a0cd7d0c7e349c516d107a5d429d7eed6e21 files/di MD5 e127cf65d51c816513b658dbed429e5f files/digest-gnbd-kernel-1.03.00 250 RMD160 5332ca5282fb5b303388c7939ecc08b44aa340eb files/digest-gnbd-kernel-1.03.00 250 SHA256 2cebe51521eb8f9a520e29bb0d8baa5820ef747d5e5e18218a5d1880e40167f8 files/digest-gnbd-kernel-1.03.00 250 +MD5 648c6ee5451d59bbe7aa185da1c4e1b5 files/digest-gnbd-kernel-1.04.00 250 +RMD160 c6f4b2412d1edf08cf42e538e447b2fea8aafd8e files/digest-gnbd-kernel-1.04.00 250 +SHA256 358be21a647dcb0388ec46ddf8044de17a3fdb8c57b0f63e5bcc6340eb476d31 files/digest-gnbd-kernel-1.04.00 250 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) -iD8DBQFF6MEAgMUyd/cdjWsRAoRGAJwK0gay3mARiBsa3lakiIGB0qB4JwCeJRpA -zCiMEHTAPQLeZqyFePns4oE= -=kt5x +iD8DBQFF8XCegMUyd/cdjWsRAmHqAJ99s413KcFz8GJ5xtQcqb4EFqVCKACdGiRf +OD7gkUSbxQsD1guujWLPPkQ= +=b2D/ -----END PGP SIGNATURE----- diff --git a/sys-cluster/gnbd-kernel/files/digest-gnbd-kernel-1.04.00 b/sys-cluster/gnbd-kernel/files/digest-gnbd-kernel-1.04.00 new file mode 100644 index 000000000000..2f86eed7f8e5 --- /dev/null +++ b/sys-cluster/gnbd-kernel/files/digest-gnbd-kernel-1.04.00 @@ -0,0 +1,3 @@ +MD5 d1a0363109d0188959ec35b7d6ebfb67 cluster-1.04.00.tar.gz 1663798 +RMD160 5b241f38123c9ad65faf2a9eda7aa3e2dabee839 cluster-1.04.00.tar.gz 1663798 +SHA256 6f4b48e67383681ea6ad6e2907b56e755049816186375c4f2bcb9482da31c2c2 cluster-1.04.00.tar.gz 1663798 diff --git a/sys-cluster/gnbd-kernel/files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch b/sys-cluster/gnbd-kernel/files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch new file mode 100644 index 000000000000..8b0f20beaf7e --- /dev/null +++ b/sys-cluster/gnbd-kernel/files/gnbd-kernel-1.03.00-compile-fix-kernel-post-2.6.18.patch @@ -0,0 +1,32 @@ +diff -uNr cluster-1.03.00/gnbd-kernel/src/gnbd.c cluster-1.04.00/gnbd-kernel/src/gnbd.c +--- cluster-1.03.00/gnbd-kernel/src/gnbd.c 2006-07-12 19:34:29.000000000 +0200 ++++ cluster-1.04.00/gnbd-kernel/src/gnbd.c 2007-02-07 16:25:05.000000000 +0100 +@@ -578,10 +577,10 @@ + struct gnbd_device *dev; + + blkdev_dequeue_request(req); +- dprintk(DBG_BLKDEV, "%s: request %p: dequeued (flags=%lx)\n", +- req->rq_disk->disk_name, req, req->flags); ++ dprintk(DBG_BLKDEV, "%s: request %p: dequeued (flags=%x)\n", ++ req->rq_disk->disk_name, req, req->cmd_type); + +- if (!(req->flags & REQ_CMD)) ++ if (!blk_fs_request(req)) + goto error_out; + + dev = req->rq_disk->private_data; +@@ -890,12 +888,12 @@ + printk(KERN_CRIT "gnbd: sizeof gnbd_request needs to be 28 in order to work!\n" ); + return -EIO; + } +- shutdown_req.flags = REQ_SPECIAL; ++ shutdown_req.cmd_type = REQ_TYPE_SPECIAL; + gnbd_cmd(&shutdown_req) = GNBD_CMD_DISC; + shutdown_req.sector = 0; + shutdown_req.nr_sectors = 0; + +- ping_req.flags = REQ_SPECIAL; ++ ping_req.cmd_type = REQ_TYPE_SPECIAL; + gnbd_cmd(&ping_req) = GNBD_CMD_PING; + ping_req.sector = 0; + ping_req.nr_sectors = 0; diff --git a/sys-cluster/gnbd-kernel/files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch b/sys-cluster/gnbd-kernel/files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch new file mode 100644 index 000000000000..9ed4302776ee --- /dev/null +++ b/sys-cluster/gnbd-kernel/files/gnbd-kernel-1.04.00-compile-fix-kernel-pre-2.6.19.patch @@ -0,0 +1,32 @@ +diff -uNr cluster-1.04.00.orig/gnbd-kernel/src/gnbd.c cluster-1.04.00/gnbd-kernel/src/gnbd.c +--- cluster-1.04.00.orig/gnbd-kernel/src/gnbd.c 2007-02-07 16:25:05.000000000 +0100 ++++ cluster-1.04.00/gnbd-kernel/src/gnbd.c 2006-07-12 19:34:29.000000000 +0200 +@@ -577,10 +578,10 @@ + struct gnbd_device *dev; + + blkdev_dequeue_request(req); +- dprintk(DBG_BLKDEV, "%s: request %p: dequeued (flags=%x)\n", +- req->rq_disk->disk_name, req, req->cmd_type); ++ dprintk(DBG_BLKDEV, "%s: request %p: dequeued (flags=%lx)\n", ++ req->rq_disk->disk_name, req, req->flags); + +- if (!blk_fs_request(req)) ++ if (!(req->flags & REQ_CMD)) + goto error_out; + + dev = req->rq_disk->private_data; +@@ -888,12 +890,12 @@ + printk(KERN_CRIT "gnbd: sizeof gnbd_request needs to be 28 in order to work!\n" ); + return -EIO; + } +- shutdown_req.cmd_type = REQ_TYPE_SPECIAL; ++ shutdown_req.flags = REQ_SPECIAL; + gnbd_cmd(&shutdown_req) = GNBD_CMD_DISC; + shutdown_req.sector = 0; + shutdown_req.nr_sectors = 0; + +- ping_req.cmd_type = REQ_TYPE_SPECIAL; ++ ping_req.flags = REQ_SPECIAL; + gnbd_cmd(&ping_req) = GNBD_CMD_PING; + ping_req.sector = 0; + ping_req.nr_sectors = 0; diff --git a/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild b/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild index c02be8865295..30a350b18c9a 100644 --- a/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild +++ b/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild @@ -1,11 +1,12 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild,v 1.9 2007/03/03 00:27:34 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild,v 1.10 2007/03/09 14:35:01 xmerlin Exp $ inherit eutils linux-mod linux-info +CLUSTER_RELEASE="1.02.00" +MY_P="cluster-${CLUSTER_RELEASE}" CVS_RELEASE="20060713" -MY_P="cluster-${PV}" DESCRIPTION="GFS Network Block Devices module" HOMEPAGE="http://sources.redhat.com/cluster/" @@ -39,6 +40,10 @@ src_unpack() { if [ "$KV_PATCH" -ge "18" ] ; then epatch ${FILESDIR}/${PN}-remove-devfs-support.patch || die fi + + if [ "$KV_PATCH" -ge "19" ] ; then + epatch ${FILESDIR}/${PN}-1.03.00-compile-fix-kernel-post-2.6.18.patch || die + fi fi } diff --git a/sys-cluster/gnbd-kernel/gnbd-kernel-1.03.00.ebuild b/sys-cluster/gnbd-kernel/gnbd-kernel-1.03.00.ebuild index 6908d2baba1d..c91e7876cf0e 100644 --- a/sys-cluster/gnbd-kernel/gnbd-kernel-1.03.00.ebuild +++ b/sys-cluster/gnbd-kernel/gnbd-kernel-1.03.00.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/gnbd-kernel-1.03.00.ebuild,v 1.8 2007/03/03 00:27:34 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/gnbd-kernel-1.03.00.ebuild,v 1.9 2007/03/09 14:35:01 xmerlin Exp $ inherit linux-mod linux-info -MY_P="cluster-${PV}" +CLUSTER_RELEASE="1.03.00" +MY_P="cluster-${CLUSTER_RELEASE}" DESCRIPTION="GFS Network Block Devices module" HOMEPAGE="http://sources.redhat.com/cluster/" @@ -28,13 +29,17 @@ pkg_setup() { } src_unpack() { - unpack ${A} - cd ${S} + unpack ${A} + cd ${S} if kernel_is 2 6; then if [ "$KV_PATCH" -ge "18" ] ; then epatch ${FILESDIR}/${PN}-remove-devfs-support.patch || die fi + + if [ "$KV_PATCH" -ge "19" ] ; then + epatch ${FILESDIR}/${P}-compile-fix-kernel-post-2.6.18.patch || die + fi fi } diff --git a/sys-cluster/gnbd-kernel/gnbd-kernel-1.04.00.ebuild b/sys-cluster/gnbd-kernel/gnbd-kernel-1.04.00.ebuild new file mode 100644 index 000000000000..3fb0a956d010 --- /dev/null +++ b/sys-cluster/gnbd-kernel/gnbd-kernel-1.04.00.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/gnbd-kernel-1.04.00.ebuild,v 1.1 2007/03/09 14:35:01 xmerlin Exp $ + +inherit linux-mod linux-info + +CLUSTER_RELEASE="1.04.00" +MY_P="cluster-${CLUSTER_RELEASE}" + +DESCRIPTION="GFS Network Block Devices module" +HOMEPAGE="http://sources.redhat.com/cluster/" +SRC_URI="ftp://sources.redhat.com/pub/cluster/releases/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND=">=virtual/linux-sources-2.6.16" +RDEPEND="" + +S="${WORKDIR}/${MY_P}/${PN}" + +pkg_setup() { + linux-mod_pkg_setup + case ${KV_FULL} in + 2.2.*|2.4.*) die "${P} supports only 2.6 kernels";; + esac +} + +src_unpack() { + unpack ${A} + cd ${S} + + if kernel_is 2 6; then + if [ "$KV_PATCH" -ge "18" ] ; then + epatch ${FILESDIR}/${PN}-remove-devfs-support.patch || die + fi + + if [ "$KV_PATCH" -lt "18" ] ; then + sed -i \ + -e 's|utsrelease.h|version.h|g' \ + configure \ + || die "sed failed" + fi + + if [ "$KV_PATCH" -lt "19" ] ; then + epatch ${FILESDIR}/${P}-compile-fix-kernel-pre-2.6.19.patch || die + fi + fi +} + +src_compile() { + set_arch_to_kernel + + ./configure --kernel_src=${KERNEL_DIR} --verbose || die "configure problem" + emake || die "compile problem" +} + +src_install() { + emake DESTDIR=${D} module_dir=${D}/lib/modules/${KV_FULL} install || die "install problem" + rm -f ${D}/usr/include/linux/gnbd.h || die +} + + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "Please remember to re-emerge ${PN} when you upgrade your kernel!" + einfo "" +} -- 2.26.2