2009-05-13 23:10:47 +00:00
|
|
|
# Template file for 'lvm2'
|
|
|
|
pkgname=lvm2
|
2014-12-28 07:35:54 +00:00
|
|
|
version=2.02.114
|
|
|
|
revision=1
|
2009-05-13 23:10:47 +00:00
|
|
|
wrksrc=LVM2.${version}
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2009-10-06 16:02:51 +00:00
|
|
|
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
|
2012-10-15 21:37:40 +00:00
|
|
|
--enable-fsadm --enable-applib --sbindir=/usr/sbin --libdir=/usr/lib
|
|
|
|
--enable-dmeventd --enable-cmdlib --enable-udev_sync --enable-udev_rules
|
2013-02-13 08:20:02 +00:00
|
|
|
--with-udevdir=/usr/lib/udev/rules.d --with-default-pid-dir=/run
|
2013-01-12 11:15:30 +00:00
|
|
|
--with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm
|
2014-11-15 07:17:22 +00:00
|
|
|
--with-default-locking-dir=/run/lock/lvm --enable-lvmetad
|
|
|
|
$(vopt_if systemd --with-systemdsystemunitdir=/usr/lib/systemd/system)"
|
2013-03-24 09:21:58 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2014-01-19 10:57:55 +00:00
|
|
|
# By using eudev we avoid a cyclic dependency:
|
2014-11-15 07:19:29 +00:00
|
|
|
# device-mapper -> systemd -> cryptsetup -> device-mapper
|
|
|
|
makedepends="libblkid-devel readline-devel>=6.3 eudev-libudev-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
make_dirs="
|
|
|
|
/etc/lvm/archive 0755 root root
|
|
|
|
/etc/lvm/backup 0755 root root"
|
|
|
|
conf_files="/etc/lvm/lvm.conf"
|
2014-11-15 07:17:22 +00:00
|
|
|
build_options="systemd"
|
2009-10-03 08:58:22 +00:00
|
|
|
short_desc="Logical Volume Manager 2 utilities"
|
2009-05-13 23:10:47 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-31 14:39:30 +00:00
|
|
|
homepage="http://sourceware.org/lvm2/"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
2014-12-28 07:35:54 +00:00
|
|
|
update_pkgname="LVM2."
|
2012-07-09 21:30:40 +00:00
|
|
|
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
|
2014-12-28 07:35:54 +00:00
|
|
|
checksum=de9cb0acfb9c5a6afa6184160c9e066f19043677f91a72c741d153efcd2874a5
|
2014-08-20 10:20:18 +00:00
|
|
|
|
2013-01-12 11:15:30 +00:00
|
|
|
post_install() {
|
2014-08-20 10:20:18 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
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
|
|
|
|
fi
|
2013-01-12 11:15:30 +00:00
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
device-mapper-devel_package() {
|
2014-02-27 13:54:19 +00:00
|
|
|
depends="readline-devel>=6.3 ncurses-devel device-mapper>=${version}_${revision}"
|
2013-08-13 06:51:24 +00:00
|
|
|
short_desc="Device Mapper userspace library - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
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
|
2013-08-14 04:58:54 +00:00
|
|
|
vmove usr/lib/liblvm2cmd.so
|
|
|
|
vmove "usr/lib/libdevmapper*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
device-mapper_package() {
|
|
|
|
short_desc="Device Mapper userspace library and tools"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/sbin/dm*"
|
2013-08-14 04:58:54 +00:00
|
|
|
vmove "usr/lib/libdevmapper*.so.*"
|
|
|
|
vmove "usr/lib/liblvm2cmd.so.*"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove "usr/share/man/man8/dm*"
|
2013-04-13 11:29:34 +00:00
|
|
|
vmove usr/lib/device-mapper
|
2013-04-13 08:15:49 +00:00
|
|
|
for f in 10-dm 13-dm-disk 95-dm-notify; do
|
|
|
|
vmove usr/lib/udev/rules.d/${f}.rules
|
2013-04-13 11:29:34 +00:00
|
|
|
done
|
2014-08-20 10:20:18 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vmkdir usr/lib/systemd/system/sockets.target.wants
|
|
|
|
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
|
|
|
|
fi
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
liblvm2app-devel_package() {
|
2013-11-17 03:58:22 +00:00
|
|
|
depends="device-mapper-devel>=${version}_${revision} liblvm2app>=${version}_${revision}"
|
2013-04-13 08:15:49 +00:00
|
|
|
short_desc="LVM2 application library - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/lvm2app.h
|
|
|
|
vmove "usr/lib/pkgconfig/lvm2app*"
|
2013-08-14 04:58:54 +00:00
|
|
|
vmove usr/lib/liblvm2app.so
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
liblvm2app_package() {
|
|
|
|
short_desc="LVM2 application library"
|
|
|
|
pkg_install() {
|
2013-08-14 04:58:54 +00:00
|
|
|
vmove "usr/lib/liblvm2app.so.*"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|