2009-05-14 01:10:47 +02:00
|
|
|
# Template file for 'lvm2'
|
|
|
|
pkgname=lvm2
|
2012-10-15 23:37:40 +02:00
|
|
|
version=2.02.98
|
2013-04-13 10:15:49 +02:00
|
|
|
revision=4
|
2009-05-14 01:10:47 +02:00
|
|
|
wrksrc=LVM2.${version}
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-10-06 18:02:51 +02:00
|
|
|
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
|
2012-10-15 23:37:40 +02:00
|
|
|
--enable-fsadm --enable-applib --sbindir=/usr/sbin --libdir=/usr/lib
|
|
|
|
--enable-dmeventd --enable-cmdlib --enable-udev_sync --enable-udev_rules
|
2013-02-13 09:20:02 +01:00
|
|
|
--with-udevdir=/usr/lib/udev/rules.d --with-default-pid-dir=/run
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
2013-01-12 12:15:30 +01:00
|
|
|
--with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm
|
|
|
|
--with-default-locking-dir=/run/lock/lvm --enable-lvmetad"
|
2013-03-24 10:21:58 +01:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="readline-devel libudev-devel>=183"
|
2009-10-03 10:58:22 +02:00
|
|
|
short_desc="Logical Volume Manager 2 utilities"
|
2009-05-14 01:10:47 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-31 16:39:30 +02:00
|
|
|
homepage="http://sourceware.org/lvm2/"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
2012-07-09 23:30:40 +02:00
|
|
|
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
|
2012-10-15 23:37:40 +02:00
|
|
|
checksum=71030a58fef7e00d82ca4144334548e46aad24551a3cfbe7c3059b1bd137d864
|
2009-05-14 01:10:47 +02:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-04-13 10:15:49 +02:00
|
|
|
configure_args+=" ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes"
|
2013-02-13 09:20:02 +01:00
|
|
|
fi
|
|
|
|
|
2013-01-12 12:15:30 +01:00
|
|
|
post_install() {
|
|
|
|
vinstall ${FILESDIR}/lvm2.tmpfiles 644 usr/lib/tmpfiles.d lvm2.conf
|
|
|
|
vinstall ${FILESDIR}/lvm-monitoring.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/lvmetad.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/lvmetad.socket 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/lvm-on-crypt.service 644 usr/lib/systemd/system
|
|
|
|
vmkdir usr/lib/systemd/system/sockets.target.wants
|
|
|
|
ln -sf /usr/lib/systemd/system/lvmetad.socket \
|
|
|
|
${DESTDIR}/usr/lib/systemd/system/sockets.target.wants/lvmetad.socket
|
|
|
|
# enable lvmetad
|
|
|
|
sed 's|use_lvmetad = 0|use_lvmetad = 1|' -i ${DESTDIR}/etc/lvm/lvm.conf
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
device-mapper-devel_package() {
|
|
|
|
depends="readline-devel ncurses-devel device-mapper-${version}_${revision}"
|
|
|
|
short_desc="Device Mapper userspace library -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/pkgconfig/devmapper.pc
|
|
|
|
vmove usr/lib/pkgconfig/devmapper-event.pc
|
|
|
|
vmove usr/include/libdevmapper.h
|
|
|
|
vmove usr/include/libdevmapper-event.h
|
|
|
|
vmove usr/include/lvm2cmd.h
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
device-mapper_package() {
|
|
|
|
short_desc="Device Mapper userspace library and tools"
|
|
|
|
replaces="lvm2<2.02.95_3"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/sbin/dm*"
|
|
|
|
vmove "usr/lib/libdevmapper*.so*"
|
|
|
|
vmove "usr/lib/liblvm2cmd.so*"
|
|
|
|
vmove "usr/share/man/man8/dm*"
|
2013-04-13 13:29:34 +02:00
|
|
|
vmove usr/lib/device-mapper
|
2013-04-13 10:15:49 +02:00
|
|
|
for f in 10-dm 13-dm-disk 95-dm-notify; do
|
|
|
|
vmove usr/lib/udev/rules.d/${f}.rules
|
2013-04-13 13:29:34 +02:00
|
|
|
done
|
|
|
|
install -d ${PKGDESTDIR}/usr/lib/systemd/system/sockets.target.wants
|
2013-04-13 10:15:49 +02:00
|
|
|
vinstall ${FILESDIR}/dmeventd.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/dmeventd.socket 644 usr/lib/systemd/system
|
|
|
|
ln -sf /usr/lib/systemd/system/dmeventd.socket \
|
|
|
|
${PKGDESTDIR}/usr/lib/systemd/system/sockets.target.wants/dmeventd.socket
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
liblvm2app-devel_package() {
|
|
|
|
depends="device-mapper-devel-${version}_${revision}
|
|
|
|
liblvm2app-${version}_${revision}"
|
|
|
|
short_desc="LVM2 application library - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/lvm2app.h
|
|
|
|
vmove "usr/lib/pkgconfig/lvm2app*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
liblvm2app_package() {
|
|
|
|
short_desc="LVM2 application library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/liblvm2app.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lvm2_package() {
|
|
|
|
make_dirs="
|
|
|
|
/etc/lvm/archive 0755 root root
|
|
|
|
/etc/lvm/backup 0755 root root"
|
|
|
|
conf_files="/etc/lvm/lvm.conf"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|