Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/drbd: ChangeLog drbd-8.3.6.ebuild
Date: Tue, 10 Nov 2009 11:46:12
Message-Id: E1N7pAn-0001Kn-En@stork.gentoo.org
1 wschlich 09/11/10 11:46:09
2
3 Modified: ChangeLog
4 Added: drbd-8.3.6.ebuild
5 Log:
6 version bump wrt bug #290313
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.97 sys-cluster/drbd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/drbd/ChangeLog?rev=1.97&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/drbd/ChangeLog?rev=1.97&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/drbd/ChangeLog?r1=1.96&r2=1.97
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v
19 retrieving revision 1.96
20 retrieving revision 1.97
21 diff -u -r1.96 -r1.97
22 --- ChangeLog 30 Sep 2009 14:00:20 -0000 1.96
23 +++ ChangeLog 10 Nov 2009 11:46:08 -0000 1.97
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-cluster/drbd
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.96 2009/09/30 14:00:20 xmerlin Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.97 2009/11/10 11:46:08 wschlich Exp $
29 +
30 +*drbd-8.3.6 (10 Nov 2009)
31 +
32 + 10 Nov 2009; Wolfram Schlich <wschlich@g.o> +drbd-8.3.6.ebuild:
33 + version bump wrt bug #290313
34
35 30 Sep 2009; Christian Zoffoli <xmerlin@g.o>
36 +files/drbd-8.3.2-bitsperlong.h.patch, drbd-8.3.2.ebuild:
37
38
39
40 1.1 sys-cluster/drbd/drbd-8.3.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/drbd/drbd-8.3.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/drbd/drbd-8.3.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: drbd-8.3.6.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/drbd-8.3.6.ebuild,v 1.1 2009/11/10 11:46:08 wschlich Exp $
50
51 EAPI="2"
52
53 inherit eutils versionator
54
55 LICENSE="GPL-2"
56 KEYWORDS="~amd64 ~x86"
57
58 MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})"
59 DESCRIPTION="mirror/replicate block-devices across a network-connection"
60 SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${PN}-${PV}.tar.gz"
61 HOMEPAGE="http://www.drbd.org"
62
63 IUSE=""
64
65 DEPEND=""
66 RDEPEND=""
67 PDEPEND="~sys-cluster/drbd-kernel-${PV}"
68
69 SLOT="0"
70
71 src_configure() {
72 # TODO FIXME: add USE flags?
73 econf \
74 --localstatedir=/var \
75 --with-utils \
76 --without-km \
77 --without-udev \
78 --with-xen \
79 --without-pacemaker \
80 --with-heartbeat \
81 --without-rgmanager \
82 --without-bashcompletion \
83 --with-distro=gentoo \
84 || die "configure failed"
85 }
86
87 src_compile() {
88 # only compile the tools
89 emake -j1 OPTFLAGS="${CFLAGS}" tools || die "compilation failed"
90 }
91
92 src_install() {
93 # only install the tools
94 emake DESTDIR="${D}" install-tools || die "installation failed"
95
96 # install our own init script
97 newinitd "${FILESDIR}"/${PN}-8.0.rc ${PN} || die
98
99 # manually install udev rules
100 insinto /etc/udev/rules.d
101 newins scripts/drbd.rules 65-drbd.rules || die
102
103 # manually install bash-completion script
104 insinto /usr/share/bash-completion
105 newins scripts/drbdadm.bash_completion drbdadm
106
107 # install the docs
108 dodoc README ChangeLog
109
110 # it doesnt make sense to install a default conf in /etc,
111 # so we put it to the docs
112 rm -f "${D}"/etc/drbd.conf
113 dodoc scripts/drbd.conf || die
114 }
115
116 pkg_postinst() {
117 einfo ""
118 einfo "Please copy and gunzip the configuration file"
119 einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc"
120 einfo "and edit it to your needs. Helpful commands:"
121 einfo "man 5 drbd.conf"
122 einfo "man 8 drbdsetup"
123 einfo "man 8 drbdadm"
124 einfo "man 8 drbddisk"
125 einfo "man 8 drbdmeta"
126 einfo ""
127 }