Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.98.ebuild,v 1.3 2013/01/18 03:39:06 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.98.ebuild,v 1.3 2013/01/18 03:39:06 ssuominen Exp $ |
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
inherit eutils multilib toolchain-funcs autotools linux-info udev |
6 |
inherit eutils multilib toolchain-funcs autotools linux-info systemd udev |
7 |
|
7 |
|
8 |
DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." |
8 |
DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." |
9 |
HOMEPAGE="http://sources.redhat.com/lvm2/" |
9 |
HOMEPAGE="http://sources.redhat.com/lvm2/" |
Lines 110-115
Link Here
|
110 |
tools/Makefile.in || die "sed failed" |
110 |
tools/Makefile.in || die "sed failed" |
111 |
fi |
111 |
fi |
112 |
|
112 |
|
|
|
113 |
# gentoo has lvm installed in /sbin |
114 |
sed -i 's:/usr/sbin/lvm:/sbin/lvm:' \ |
115 |
scripts/lvm2_activation_generator_systemd_red_hat.c || die "sed failed" |
116 |
|
113 |
eautoreconf |
117 |
eautoreconf |
114 |
} |
118 |
} |
115 |
|
119 |
|
Lines 177-182
Link Here
|
177 |
myconf="${myconf} --with-clvmd=none --with-cluster=none" |
181 |
myconf="${myconf} --with-clvmd=none --with-cluster=none" |
178 |
fi |
182 |
fi |
179 |
|
183 |
|
|
|
184 |
# better to just force the unit dir |
185 |
myconf="${myconf} --with-systemdsystemunitdir=$(systemd_get_unitdir)" |
186 |
# and also change the default pid directory to /run instead of /var/run |
187 |
myconf="${myconf} --with-default-pid-dir=/run" |
188 |
|
180 |
local udevdir="${EPREFIX}/lib/udev/rules.d" |
189 |
local udevdir="${EPREFIX}/lib/udev/rules.d" |
181 |
use udev && udevdir="${EPREFIX}/$(udev_get_udevdir)/rules.d" |
190 |
use udev && udevdir="${EPREFIX}/$(udev_get_udevdir)/rules.d" |
182 |
|
191 |
|
Lines 207-217
Link Here
|
207 |
|
216 |
|
208 |
einfo "Starting main build" |
217 |
einfo "Starting main build" |
209 |
emake AR="$(tc-getAR)" || die "compile fail" |
218 |
emake AR="$(tc-getAR)" || die "compile fail" |
|
|
219 |
|
220 |
# when using systemd with lvmetad disabled |
221 |
# a generator is needed for systemd to create /dev nodes |
222 |
# note: this should be already build, but I am not sure |
223 |
# if this is always, or just sometimes, better to force |
224 |
emake -C scripts lvm2_activation_generator_systemd_red_hat |
210 |
} |
225 |
} |
211 |
|
226 |
|
212 |
src_install() { |
227 |
src_install() { |
213 |
emake DESTDIR="${D}" install |
228 |
emake DESTDIR="${D}" install |
214 |
|
229 |
|
|
|
230 |
# install systemd files |
231 |
emake DESTDIR="${D}" install_systemd_generators |
232 |
emake DESTDIR="${D}" install_systemd_units |
233 |
|
215 |
dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{conf,c,txt} |
234 |
dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{conf,c,txt} |
216 |
newinitd "${FILESDIR}"/lvm.rc-2.02.95-r2 lvm |
235 |
newinitd "${FILESDIR}"/lvm.rc-2.02.95-r2 lvm |
217 |
newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.67-r2 lvm-monitoring |
236 |
newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.67-r2 lvm-monitoring |
Lines 270-275
Link Here
|
270 |
elog "baselayout-2 users. If you are using baselayout-2, be sure to" |
289 |
elog "baselayout-2 users. If you are using baselayout-2, be sure to" |
271 |
elog "run: # rc-update add lvm boot" |
290 |
elog "run: # rc-update add lvm boot" |
272 |
elog "Do NOT add it if you are still using baselayout-1." |
291 |
elog "Do NOT add it if you are still using baselayout-1." |
|
|
292 |
|
293 |
ewarn "Be sure to enabled use_lvmetad in /etc/lvm/lvm.conf" |
294 |
ewarn "if you want to enable lvm autoactivation and metadata caching" |
295 |
ewarn "More info can be found in lvmetad and lvm.conf man pages" |
273 |
} |
296 |
} |
274 |
|
297 |
|
275 |
src_test() { |
298 |
src_test() { |