diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2007-10-05 14:01:20 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2007-10-05 14:01:20 +0000 |
commit | e377d31fd364dcbc0af706ab67ee0440124490e7 (patch) | |
tree | 4e86accd61dce89ca7ff2a468b53f13190f4df90 /sys-cluster | |
parent | General cleanup of eclass: No longer support older versions of vdrplugin-rebu... (diff) | |
download | gentoo-2-e377d31fd364dcbc0af706ab67ee0440124490e7.tar.gz gentoo-2-e377d31fd364dcbc0af706ab67ee0440124490e7.tar.bz2 gentoo-2-e377d31fd364dcbc0af706ab67ee0440124490e7.zip |
DRDB package splitted in drbd + drbd-kernel, conversion to linux-mod.
(Portage version: 2.1.3.9)
Diffstat (limited to 'sys-cluster')
10 files changed, 217 insertions, 0 deletions
diff --git a/sys-cluster/drbd-kernel/ChangeLog b/sys-cluster/drbd-kernel/ChangeLog new file mode 100644 index 000000000000..d22cbea098ae --- /dev/null +++ b/sys-cluster/drbd-kernel/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for sys-cluster/drbd-kernel +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd-kernel/ChangeLog,v 1.1 2007/10/05 14:01:19 xmerlin Exp $ + +*drbd-kernel-8.0.6 (05 Oct 2007) +*drbd-kernel-0.7.24 (05 Oct 2007) + + 05 Oct 2007; Christian Zoffoli <xmerlin@gentoo.org> + +files/drbd-0.7.22-nodevfs.patch, + +files/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch, + +files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch, + +metadata.xml, +drbd-kernel-0.7.24.ebuild, +drbd-kernel-8.0.6.ebuild: + DRDB package splitted in drbd + drbd-kernel, conversion to linux-mod. + diff --git a/sys-cluster/drbd-kernel/Manifest b/sys-cluster/drbd-kernel/Manifest new file mode 100644 index 000000000000..5acb9d6c4421 --- /dev/null +++ b/sys-cluster/drbd-kernel/Manifest @@ -0,0 +1,36 @@ +AUX drbd-0.7.22-nodevfs.patch 306 RMD160 64fbbdc6347f3e0dca5e97dcffce6416a816ccd1 SHA1 39a6279e5ce1708eeaf27663196664c89303a2ef SHA256 54126b9910f2075d40c41e82418ee124618b2d5a1487805ceeb5646d9942bb54 +MD5 13f445e1b7d4aff12ad7c746b9515323 files/drbd-0.7.22-nodevfs.patch 306 +RMD160 64fbbdc6347f3e0dca5e97dcffce6416a816ccd1 files/drbd-0.7.22-nodevfs.patch 306 +SHA256 54126b9910f2075d40c41e82418ee124618b2d5a1487805ceeb5646d9942bb54 files/drbd-0.7.22-nodevfs.patch 306 +AUX drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch 376 RMD160 40a2e6fd54b8fedbe68f648341da590bd48f131e SHA1 b955b17aef3a2a218cedff1b33d81ed8180524e0 SHA256 d5d853484d3f9dcfb770391a97e74e5c2690a3410f7d3ed750ba5a9ed616d7bc +MD5 cbf755250132aadbbb726bb1f91b2eda files/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch 376 +RMD160 40a2e6fd54b8fedbe68f648341da590bd48f131e files/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch 376 +SHA256 d5d853484d3f9dcfb770391a97e74e5c2690a3410f7d3ed750ba5a9ed616d7bc files/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch 376 +AUX drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch 679 RMD160 f459b054e5a0ee43bac860a365ce42d19b35f70f SHA1 d1553f440d1c2b152e6166d2d3148e80d9cd5a1c SHA256 594527b03820de4f8fbfbdfdbfeb004242e8a712575fb2854f0f6b99880d9b36 +MD5 1a750b5925a82b04ae4624f0e3a64820 files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch 679 +RMD160 f459b054e5a0ee43bac860a365ce42d19b35f70f files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch 679 +SHA256 594527b03820de4f8fbfbdfdbfeb004242e8a712575fb2854f0f6b99880d9b36 files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch 679 +DIST drbd-0.7.24.tar.gz 292132 RMD160 3f8e5540e1040ec30926c1f7e114c56c499151e2 SHA1 b38846eb3cbb8aa356e3c28ebf4c4da6e971b06d SHA256 bdeec861bdab2b9a43eda2da743f3e7fd3974126d589f853ed2b22e1f27da5e4 +DIST drbd-8.0.6.tar.gz 495421 RMD160 7b920592d2d74e897cc904fbbfa010a088ad62ec SHA1 6c19883b19813ee0a3d02a07d89e6ba21517edb9 SHA256 f08eb9a1fade6a089fefd5652d394f516531857890e83757f67ec54144ae50a2 +EBUILD drbd-kernel-0.7.24.ebuild 1402 RMD160 8739b034578edf97cef555ac552ef40d19cfb9cf SHA1 ac15c77cf4947fb1b45b8d00de54e801e40face9 SHA256 e0fb62876d18300e9c68b48c53a06067ca7788162f7d00c677e4a97e85f9e725 +MD5 bd04964d43bf36abca4e7426727d5d9f drbd-kernel-0.7.24.ebuild 1402 +RMD160 8739b034578edf97cef555ac552ef40d19cfb9cf drbd-kernel-0.7.24.ebuild 1402 +SHA256 e0fb62876d18300e9c68b48c53a06067ca7788162f7d00c677e4a97e85f9e725 drbd-kernel-0.7.24.ebuild 1402 +EBUILD drbd-kernel-8.0.6.ebuild 1333 RMD160 a1d98196572a5bb17b2dfd75c849ea545da4086b SHA1 225699d7498fb80373efef57e40d613045ec0040 SHA256 d522993169a9d46462e773589a35b4bedf12d98bcdf6526d49fe76ef21274a6e +MD5 8675d837213dcd74869ce6f51ca64cf3 drbd-kernel-8.0.6.ebuild 1333 +RMD160 a1d98196572a5bb17b2dfd75c849ea545da4086b drbd-kernel-8.0.6.ebuild 1333 +SHA256 d522993169a9d46462e773589a35b4bedf12d98bcdf6526d49fe76ef21274a6e drbd-kernel-8.0.6.ebuild 1333 +MISC ChangeLog 553 RMD160 e1b365b936a830f11a374d27a31a478f6ef815e6 SHA1 35317d0b7e0e4cb8a341678a43b43bbe5e6ced8b SHA256 30c67618a8ec88e12e58739e1753568e6e7540aad3e53c4b170d9be47edb6d90 +MD5 d8eef5d9bf21c96f32e8e11ccce93f3f ChangeLog 553 +RMD160 e1b365b936a830f11a374d27a31a478f6ef815e6 ChangeLog 553 +SHA256 30c67618a8ec88e12e58739e1753568e6e7540aad3e53c4b170d9be47edb6d90 ChangeLog 553 +MISC metadata.xml 229 RMD160 4dcf17b88c5f4db2e817f473f3e8269b0bff2e6e SHA1 e6315be43241c55bdc0d12a42fa05632c5ff9b79 SHA256 49e13d2d49bef7298e3bb665ebeceeff9b0880fae5ff639cb8405993504f244f +MD5 58f295ba7477091e41340647670f3231 metadata.xml 229 +RMD160 4dcf17b88c5f4db2e817f473f3e8269b0bff2e6e metadata.xml 229 +SHA256 49e13d2d49bef7298e3bb665ebeceeff9b0880fae5ff639cb8405993504f244f metadata.xml 229 +MD5 5ff557fadf6bbe693af99d358eefaafa files/digest-drbd-kernel-0.7.24 235 +RMD160 3d1e9213c4fe0109b053491a430df78882a699c3 files/digest-drbd-kernel-0.7.24 235 +SHA256 53454684c2af8ede86225ea14988be403c5cc5032eb2dc4d559a23430bd5dcd4 files/digest-drbd-kernel-0.7.24 235 +MD5 50968aa52d5b3e666c8851d4aed69330 files/digest-drbd-kernel-8.0.6 232 +RMD160 ea1bf288ff55ce0be2b95569b3ad621c1997ade7 files/digest-drbd-kernel-8.0.6 232 +SHA256 a69e32325f00ec3ed5234b5774d768011d5d79e478216801c1c82883444f5054 files/digest-drbd-kernel-8.0.6 232 diff --git a/sys-cluster/drbd-kernel/drbd-kernel-0.7.24.ebuild b/sys-cluster/drbd-kernel/drbd-kernel-0.7.24.ebuild new file mode 100644 index 000000000000..3256b23e8c04 --- /dev/null +++ b/sys-cluster/drbd-kernel/drbd-kernel-0.7.24.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd-kernel/drbd-kernel-0.7.24.ebuild,v 1.1 2007/10/05 14:01:19 xmerlin Exp $ + +inherit eutils versionator linux-mod + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +MY_PN="${PN/-kernel/}" +MY_P="${MY_PN}-${PV}" +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" + +HOMEPAGE="http://www.drbd.org" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${PV}.tar.gz" + +IUSE="" + +DEPEND="virtual/linux-sources" +RDEPEND="" +SLOT="0" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { +# if ! kernel_is 2 6; then +# die "Unsupported kernel, drbd-8.0.x needs kernel 2.6.x ." +# fi + + MODULE_NAMES="drbd(block:${S}/drbd)" + BUILD_TARGETS="default" + CONFIG_CHECK="CONNECTOR" + CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it." + linux-mod_pkg_setup + BUILD_PARAMS="-j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT}" +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${MY_PN}-0.7.22-nodevfs.patch || die + epatch ${FILESDIR}/${MY_PN}-0.7.22-scripts.adjust_drbd_config_h.sh.patch || die +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "Please remember to re-emerge drbd when you upgrade your kernel!" + einfo "" +} diff --git a/sys-cluster/drbd-kernel/drbd-kernel-8.0.6.ebuild b/sys-cluster/drbd-kernel/drbd-kernel-8.0.6.ebuild new file mode 100644 index 000000000000..d162c8be758b --- /dev/null +++ b/sys-cluster/drbd-kernel/drbd-kernel-8.0.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd-kernel/drbd-kernel-8.0.6.ebuild,v 1.1 2007/10/05 14:01:19 xmerlin Exp $ + +inherit eutils versionator linux-mod + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +MY_PN="${PN/-kernel/}" +MY_P="${MY_PN}-${PV}" +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" + +HOMEPAGE="http://www.drbd.org" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${PV}.tar.gz" + +IUSE="" + +DEPEND="virtual/linux-sources" +RDEPEND="" +SLOT="0" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + if ! kernel_is 2 6; then + die "Unsupported kernel, drbd-8.0.x needs kernel 2.6.x ." + fi + + MODULE_NAMES="drbd(block:${S}/drbd)" + BUILD_TARGETS="default" + CONFIG_CHECK="CONNECTOR" + CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it." + linux-mod_pkg_setup + BUILD_PARAMS="-j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT}" +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${PN}-8.0.0-scripts.adjust_drbd_config_h.sh.patch || die +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "Please remember to re-emerge drbd when you upgrade your kernel!" + einfo "" +} diff --git a/sys-cluster/drbd-kernel/files/digest-drbd-kernel-0.7.24 b/sys-cluster/drbd-kernel/files/digest-drbd-kernel-0.7.24 new file mode 100644 index 000000000000..a3e1dde9a2c6 --- /dev/null +++ b/sys-cluster/drbd-kernel/files/digest-drbd-kernel-0.7.24 @@ -0,0 +1,3 @@ +MD5 b2c7335514a355b874a634dc12b22522 drbd-0.7.24.tar.gz 292132 +RMD160 3f8e5540e1040ec30926c1f7e114c56c499151e2 drbd-0.7.24.tar.gz 292132 +SHA256 bdeec861bdab2b9a43eda2da743f3e7fd3974126d589f853ed2b22e1f27da5e4 drbd-0.7.24.tar.gz 292132 diff --git a/sys-cluster/drbd-kernel/files/digest-drbd-kernel-8.0.6 b/sys-cluster/drbd-kernel/files/digest-drbd-kernel-8.0.6 new file mode 100644 index 000000000000..490d2a638f64 --- /dev/null +++ b/sys-cluster/drbd-kernel/files/digest-drbd-kernel-8.0.6 @@ -0,0 +1,3 @@ +MD5 a91dd9b9526e087507e21521c10c5828 drbd-8.0.6.tar.gz 495421 +RMD160 7b920592d2d74e897cc904fbbfa010a088ad62ec drbd-8.0.6.tar.gz 495421 +SHA256 f08eb9a1fade6a089fefd5652d394f516531857890e83757f67ec54144ae50a2 drbd-8.0.6.tar.gz 495421 diff --git a/sys-cluster/drbd-kernel/files/drbd-0.7.22-nodevfs.patch b/sys-cluster/drbd-kernel/files/drbd-0.7.22-nodevfs.patch new file mode 100644 index 000000000000..69454ac18c7b --- /dev/null +++ b/sys-cluster/drbd-kernel/files/drbd-0.7.22-nodevfs.patch @@ -0,0 +1,10 @@ +--- drbd-0.7.23/drbd_config.h.orig 2007-02-05 00:51:13.000000000 +0100 ++++ drbd-0.7.23/drbd_config.h 2007-02-05 00:51:18.000000000 +0100 +@@ -69,6 +69,6 @@ + // but more recent kernels define it in arch/um/include/mem.h + #define HAVE_UML_TO_VIRT + +-//#define NO_MORE_DEV_FS ++#define NO_MORE_DEV_FS + + #endif diff --git a/sys-cluster/drbd-kernel/files/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch b/sys-cluster/drbd-kernel/files/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch new file mode 100644 index 000000000000..7f0da93f24b6 --- /dev/null +++ b/sys-cluster/drbd-kernel/files/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch @@ -0,0 +1,15 @@ +--- drbd-0.7.22/scripts/adjust_drbd_config_h.sh.orig 2006-10-23 10:38:57.000000000 +0200 ++++ drbd-0.7.22/scripts/adjust_drbd_config_h.sh 2007-02-05 00:58:15.000000000 +0100 +@@ -22,11 +22,7 @@ + + test -n "$KDIR" + KDIR=${KDIR%/} +-if test -z "$O"; then +- O=$KDIR; +-else +- O=${O%/} +-fi ++O=$KDIR; + + # some paranoia: check that all files are where we expect them + ls > /dev/null \ diff --git a/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch b/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch new file mode 100644 index 000000000000..beb07fbdaeb9 --- /dev/null +++ b/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch @@ -0,0 +1,23 @@ +--- drbd-8.0.0/scripts/adjust_drbd_config_h.sh.orig 2007-02-05 01:20:58.000000000 +0100 ++++ drbd-8.0.0/scripts/adjust_drbd_config_h.sh 2007-02-05 01:21:28.000000000 +0100 +@@ -26,19 +26,7 @@ + pushd $KDIR + + KDIR=${KDIR%/} +-if test -z "$O"; then +- ## just in case... +- ## detect if $KDIR points to something which is actually $O ... +- X=$( make help | sed -ne '/ -C .* O=.* help$/p' | tr -s ' ' ) +- if [[ -n $X ]]; then +- KDIR=${X##* -C }; KDIR=${KDIR%% *}; KDIR=$(cd $KDIR && pwd) +- O=${X##* O=}; O=${O%% *}; O=$(cd $KDIR && cd $O && pwd) +- else +- O=$KDIR; +- fi +-else +- O=${O%/} +-fi ++O=$KDIR; + + # some paranoia: check that all files are where we expect them + ls > /dev/null \ diff --git a/sys-cluster/drbd-kernel/metadata.xml b/sys-cluster/drbd-kernel/metadata.xml new file mode 100644 index 000000000000..b2c73e8f3872 --- /dev/null +++ b/sys-cluster/drbd-kernel/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ha-cluster</herd> +<maintainer> + <email>ha-cluster@gentoo.org</email> +</maintainer> +</pkgmetadata> |