| Name |
device-mapper |
| Description |
Device mapper userspace library and tools |
| Version |
2.03.38-1 |
| Package Base |
lvm2 |
| Homepage |
http://sourceware.org/dm/ |
| Maintainers |
['Christian Hesse <eworm@archlinux.org>', 'Eric Bélanger <eric@archlinux.org>', 'Thomas Bächler <thomas@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/lvm2 |
| Sources |
['git+https://gitlab.com/lvmteam/lvm2.git#tag=v2_03_38?signed'] |
| Dependencies |
['glibc', 'libudev.so', 'systemd-libs'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['git', 'systemd', 'libaio', 'thin-provisioning-tools'] |
| Provides |
['libdevmapper.so', 'libdevmapper-event.so'] |
| Builddate |
15-12-2025 16:44:58 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['GPL-2.0-only', 'LGPL-2.1-only'] |
| Hash |
999fd405103d022a4d9032287af6b6f5f5a2a2922d1d1052b62b8a441e2f8230 |
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgbase=lvm2
pkgname=('lvm2' 'device-mapper')
pkgver=2.03.38
pkgrel=1
arch=('x86_64')
url='https://sourceware.org/lvm2/'
license=('GPL-2.0-only' 'LGPL-2.1-only')
makedepends=('git' 'systemd' 'libaio' 'thin-provisioning-tools')
validpgpkeys=('88437EF5C077BD113D3B7224228191C1567E2C17' # Alasdair G Kergon <agk@redhat.com>
'D501A478440AE2FD130A1BE8B9112431E509039F') # Marian Csontos <marian.csontos@gmail.com>
source=("git+https://gitlab.com/lvmteam/lvm2.git#tag=v${pkgver//./_}?signed")
sha256sums=('57906de8293d19f284c58bee82602f018bf7283ed03c043ca2ab3e28e453c974')
_backports=(
)
prepare() {
cd lvm2/
local _c
for _c in "${_backports[@]}"; do
git log --oneline -1 "${_c}"
git show "${_c}" -- ':(exclude)WHATS_NEW' | git apply
done
# remove install section from systemd units that are enabled by default
sed -i -e '/^\[Install\]$/,$d' \
scripts/dm_event_systemd_red_hat.socket.in \
scripts/lvm2_lvmpolld_systemd_red_hat.socket.in \
scripts/lvm2_monitoring_systemd_red_hat.service.in
}
build() {
# build system requires bash:
# https://www.redhat.com/archives/linux-lvm/2020-January/msg00004.html
# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Defining-Variables.html
export CONFIG_SHELL=/bin/bash
cd lvm2/
./configure \
CONFIG_SHELL=/bin/bash \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-cmdlib \
--enable-dmeventd \
--enable-lvmpolld \
--enable-pkgconfig \
--enable-readline \
--enable-udev_rules \
--enable-udev_sync \
--enable-write_install \
--with-cache=internal \
--with-default-dm-run-dir=/run \
--with-default-locking-dir=/run/lock/lvm \
--with-default-pid-dir=/run \
--with-default-run-dir=/run/lvm \
--with-libexecdir=/usr/lib/lvm2 \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-thin=internal \
--with-udev-prefix=/usr
make
}
package_device-mapper() {
pkgdesc="Device mapper userspace library and tools"
url="http://sourceware.org/dm/"
depends=('glibc' 'systemd-libs' 'libudev.so')
provides=('libdevmapper.so'
'libdevmapper-event.so')
cd lvm2/
make DESTDIR="${pkgdir}" install_device-mapper
# Install dmeventd socket and service
make DESTDIR="${pkgdir}" install_systemd_units
rm -f "${pkgdir}/usr/lib/systemd/system/"{blk-availability.service,lvm*}
install -d -m0755 "${pkgdir}/usr/lib/systemd/system/sockets.target.wants"
ln -sf ../dm-event.socket "${pkgdir}/usr/lib/systemd/system/sockets.target.wants/dm-event.socket"
}
package_lvm2() {
pkgdesc="Logical Volume Manager 2 utilities"
depends=('bash' "device-mapper>=${pkgver}" 'systemd-libs'
'libudev.so' 'util-linux-libs' 'libblkid.so' 'readline' 'libreadline.so'
'thin-provisioning-tools' 'libaio' 'libaio.so')
conflicts=('lvm' 'mkinitcpio<38-1')
backup=('etc/lvm/lvm.conf'
'etc/lvm/lvmlocal.conf')
cd lvm2/
make DESTDIR="${pkgdir}" install_lvm2
# /etc directories
install -d "${pkgdir}"/etc/lvm/{archive,backup}
# systemd support
make DESTDIR="${pkgdir}" install_systemd_units
rm -f "${pkgdir}/usr/lib/systemd/system/"dm-*
install -d -m0755 "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants"
ln -sf ../lvm2-lvmpolld.socket "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket"
ln -sf ../lvm2-monitor.service "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants/lvm2-monitor.service"
make DESTDIR="${pkgdir}" install_systemd_generators
}