diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2009-11-10 11:46:08 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2009-11-10 11:46:08 +0000 |
commit | b5c56f1661e3837655f994a6ddeec2c8bc1b1a65 (patch) | |
tree | b05f0d0f97e7d6448175fb4125f14eb248df3232 /sys-cluster/drbd | |
parent | Fix pre-stripping of binaries, bug 265209. (diff) | |
download | gentoo-2-b5c56f1661e3837655f994a6ddeec2c8bc1b1a65.tar.gz gentoo-2-b5c56f1661e3837655f994a6ddeec2c8bc1b1a65.tar.bz2 gentoo-2-b5c56f1661e3837655f994a6ddeec2c8bc1b1a65.zip |
version bump wrt bug #290313
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'sys-cluster/drbd')
-rw-r--r-- | sys-cluster/drbd/ChangeLog | 7 | ||||
-rw-r--r-- | sys-cluster/drbd/drbd-8.3.6.ebuild | 81 |
2 files changed, 87 insertions, 1 deletions
diff --git a/sys-cluster/drbd/ChangeLog b/sys-cluster/drbd/ChangeLog index 075fa7ea6e5b..378bab91789f 100644 --- a/sys-cluster/drbd/ChangeLog +++ b/sys-cluster/drbd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-cluster/drbd # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.96 2009/09/30 14:00:20 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.97 2009/11/10 11:46:08 wschlich Exp $ + +*drbd-8.3.6 (10 Nov 2009) + + 10 Nov 2009; Wolfram Schlich <wschlich@gentoo.org> +drbd-8.3.6.ebuild: + version bump wrt bug #290313 30 Sep 2009; Christian Zoffoli <xmerlin@gentoo.org> +files/drbd-8.3.2-bitsperlong.h.patch, drbd-8.3.2.ebuild: diff --git a/sys-cluster/drbd/drbd-8.3.6.ebuild b/sys-cluster/drbd/drbd-8.3.6.ebuild new file mode 100644 index 000000000000..d3b70831ff48 --- /dev/null +++ b/sys-cluster/drbd/drbd-8.3.6.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/drbd-8.3.6.ebuild,v 1.1 2009/11/10 11:46:08 wschlich Exp $ + +EAPI="2" + +inherit eutils versionator + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~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}/${PN}-${PV}.tar.gz" +HOMEPAGE="http://www.drbd.org" + +IUSE="" + +DEPEND="" +RDEPEND="" +PDEPEND="~sys-cluster/drbd-kernel-${PV}" + +SLOT="0" + +src_configure() { + # TODO FIXME: add USE flags? + econf \ + --localstatedir=/var \ + --with-utils \ + --without-km \ + --without-udev \ + --with-xen \ + --without-pacemaker \ + --with-heartbeat \ + --without-rgmanager \ + --without-bashcompletion \ + --with-distro=gentoo \ + || die "configure failed" +} + +src_compile() { + # only compile the tools + emake -j1 OPTFLAGS="${CFLAGS}" tools || die "compilation failed" +} + +src_install() { + # only install the tools + emake DESTDIR="${D}" install-tools || die "installation failed" + + # install our own init script + newinitd "${FILESDIR}"/${PN}-8.0.rc ${PN} || die + + # manually install udev rules + insinto /etc/udev/rules.d + newins scripts/drbd.rules 65-drbd.rules || die + + # manually install bash-completion script + insinto /usr/share/bash-completion + newins scripts/drbdadm.bash_completion drbdadm + + # install the docs + dodoc README ChangeLog + + # it doesnt make sense to install a default conf in /etc, + # so we put it to the docs + rm -f "${D}"/etc/drbd.conf + dodoc scripts/drbd.conf || die +} + +pkg_postinst() { + 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 "" +} |