diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2007-05-11 12:14:31 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2007-05-11 12:14:31 +0000 |
commit | 405165caa7094f5417ef3684834133c4985e8bd8 (patch) | |
tree | 98e66dd61ed640e7ab2ca90ed9d076706c6dd3c2 /sys-cluster/drbd | |
parent | Added mirror URI. (diff) | |
download | gentoo-2-405165caa7094f5417ef3684834133c4985e8bd8.tar.gz gentoo-2-405165caa7094f5417ef3684834133c4985e8bd8.tar.bz2 gentoo-2-405165caa7094f5417ef3684834133c4985e8bd8.zip |
Version bumps.
(Portage version: 2.1.2.2)
Diffstat (limited to 'sys-cluster/drbd')
-rw-r--r-- | sys-cluster/drbd/ChangeLog | 9 | ||||
-rw-r--r-- | sys-cluster/drbd/drbd-0.7.24.ebuild | 84 | ||||
-rw-r--r-- | sys-cluster/drbd/drbd-8.0.3.ebuild | 88 | ||||
-rw-r--r-- | sys-cluster/drbd/files/digest-drbd-0.7.24 | 3 | ||||
-rw-r--r-- | sys-cluster/drbd/files/digest-drbd-8.0.3 | 3 |
5 files changed, 186 insertions, 1 deletions
diff --git a/sys-cluster/drbd/ChangeLog b/sys-cluster/drbd/ChangeLog index 1e6ca3dca3d8..4b5a300f23c0 100644 --- a/sys-cluster/drbd/ChangeLog +++ b/sys-cluster/drbd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-cluster/drbd # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.64 2007/05/07 15:48:57 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.65 2007/05/11 12:14:31 xmerlin Exp $ + +*drbd-8.0.3 (11 May 2007) +*drbd-0.7.24 (11 May 2007) + + 11 May 2007; Christian Zoffoli <xmerlin@gentoo.org> +drbd-0.7.24.ebuild, + +drbd-8.0.3.ebuild: + Version bumps. *drbd-8.0.2-r1 (07 May 2007) diff --git a/sys-cluster/drbd/drbd-0.7.24.ebuild b/sys-cluster/drbd/drbd-0.7.24.ebuild new file mode 100644 index 000000000000..12263b2d6ce6 --- /dev/null +++ b/sys-cluster/drbd/drbd-0.7.24.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/drbd-0.7.24.ebuild,v 1.1 2007/05/11 12:14:31 xmerlin Exp $ + +inherit eutils versionator linux-mod linux-info + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${P}.tar.gz" +HOMEPAGE="http://www.drbd.org" + +IUSE="" + +DEPEND="virtual/linux-sources" +RDEPEND="" +SLOT="0" + +pkg_setup() { + linux-mod_pkg_setup +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${PN}-0.7.22-nodevfs.patch || die + epatch ${FILESDIR}/${PN}-0.7.22-scripts.adjust_drbd_config_h.sh.patch || die +} + +src_compile() { + set_arch_to_kernel + + einfo "" + einfo "Your kernel-sources in /usr/src/linux-${KV} must be properly configured" + #einfo "and match the currently running kernel version ${KV}" + einfo "If otherwise -> build will fail." + einfo "" + + if kernel_is 2 6; then + emake -j1 KDIR=${KERNEL_DIR} || die "compile problem" + else + cp -R /usr/src/linux-${KV} ${WORKDIR} + emake -j1 KDIR=/${WORKDIR}/linux-${KV} || die "compile problem" + fi +} + +src_install() { + emake PREFIX=${D} install || die "install problem" + + # gentoo-ish init-script + newinitd ${FILESDIR}/${PN}-0.7.rc ${PN} || die + + # needed by drbd startup script + #keepdir /var/lib/drbd + + # docs + dodoc README ChangeLog COPYING + dodoc documentation/NFS-Server-README.txt + + # we put drbd.conf into docs + # it doesnt make sense to install a default conf in /etc + # put it to the docs + rm -f ${D}/etc/drbd.conf + dodoc scripts/drbd.conf || die + dodoc upgrade_0.6.x_to_0.7.0.txt upgrade_0.7.0_to_0.7.1.txt || die +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "Please remember to re-emerge drbd when you upgrade your kernel!" + einfo "" + einfo "Please copy and gunzip the configuration file" + einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc" + einfo "and edit it to your needs. Helpful commands:" + einfo "man 5 drbd.conf" + einfo "man 8 drbdsetup" + einfo "man 8 drbdadm" + einfo "" +} diff --git a/sys-cluster/drbd/drbd-8.0.3.ebuild b/sys-cluster/drbd/drbd-8.0.3.ebuild new file mode 100644 index 000000000000..2e6254169df9 --- /dev/null +++ b/sys-cluster/drbd/drbd-8.0.3.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/drbd-8.0.3.ebuild,v 1.1 2007/05/11 12:14:31 xmerlin Exp $ + +inherit eutils versionator linux-mod linux-info + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +MY_PV="${PV/_/}" +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${PN}-${MY_PV}.tar.gz" +HOMEPAGE="http://www.drbd.org" + +IUSE="" + +DEPEND="virtual/linux-sources" +RDEPEND="" +SLOT="0" + +S="${WORKDIR}/${PN}-${MY_PV}" + +pkg_setup() { + linux-mod_pkg_setup +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${PN}-8.0.0-scripts.adjust_drbd_config_h.sh.patch || die +} + +src_compile() { + set_arch_to_kernel + + einfo "" + einfo "Your kernel-sources in /usr/src/linux-${KV} must be properly configured and" + einfo "CONFIG_CONNECTOR must be enabled" + einfo "If otherwise -> build will fail." + einfo "" + + if kernel_is 2 6; then + emake -j1 KDIR=${KERNEL_DIR} || die "compile problem" + else + cp -R /usr/src/linux-${KV} ${WORKDIR} + emake -j1 KDIR=/${WORKDIR}/linux-${KV} || die "compile problem" + fi +} + +src_install() { + emake PREFIX=${D} install || die "install problem" + + # gentoo-ish init-script + newinitd ${FILESDIR}/${PN}-8.0.rc ${PN} || die + + # needed by drbd startup script + #keepdir /var/lib/drbd + + # docs + dodoc README ChangeLog COPYING ROADMAP INSTALL + #dodoc documentation/NFS-Server-README.txt + + # we put drbd.conf into docs + # it doesnt make sense to install a default conf in /etc + # put it to the docs + rm -f ${D}/etc/drbd.conf + dodoc scripts/drbd.conf || die + #dodoc upgrade*.txt || die +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "Please remember to re-emerge drbd when you upgrade your kernel!" + einfo "" + einfo "Please copy and gunzip the configuration file" + einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc" + einfo "and edit it to your needs. Helpful commands:" + einfo "man 5 drbd.conf" + einfo "man 8 drbdsetup" + einfo "man 8 drbdadm" + einfo "man 8 drbddisk" + einfo "man 8 drbdmeta" + einfo "" +} diff --git a/sys-cluster/drbd/files/digest-drbd-0.7.24 b/sys-cluster/drbd/files/digest-drbd-0.7.24 new file mode 100644 index 000000000000..a3e1dde9a2c6 --- /dev/null +++ b/sys-cluster/drbd/files/digest-drbd-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/files/digest-drbd-8.0.3 b/sys-cluster/drbd/files/digest-drbd-8.0.3 new file mode 100644 index 000000000000..0d36d7d0c068 --- /dev/null +++ b/sys-cluster/drbd/files/digest-drbd-8.0.3 @@ -0,0 +1,3 @@ +MD5 d7a2239f75468a99c2ce63d581d750e1 drbd-8.0.3.tar.gz 482489 +RMD160 4907e01a0d4453ab42f0c70989ab069536555eca drbd-8.0.3.tar.gz 482489 +SHA256 dc2d059777f02721f1ccbfbf8946f06c2c1bbb6b4ad123169342e84dd5393e32 drbd-8.0.3.tar.gz 482489 |