| Name |
dmsetup |
| Description |
Linux Kernel Device Mapper userspace library |
| Version |
2:1.02.185-3ubuntu3.2 |
| Package Base |
lvm2 |
| Homepage |
https://sourceware.org/lvm2/ |
| Maintainers |
['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>'] |
| Contributors |
['Bastian Blank <waldi@debian.org>'] |
| Distro-repo |
https://git.launchpad.net/ubuntu/+source/lvm2/tree/?h=ubuntu/noble |
| Sources |
['https://git.launchpad.net/ubuntu/+source/dmsetup/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lvm2/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lvm2/plain/debian/patches/0014-no-lvm2-monitor-in-containers.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lvm2/plain/debian/patches/debian-changes?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lvm2/plain/debian/patches/enable-issue-discards.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lvm2/plain/debian/patches/fix-systemd-run-location.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lvm2/plain/debian/patches/libdm-propagate-ioctl-errors-back-to-caller.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lvm2/plain/debian/patches/series?h=ubuntu/noble'] |
| Dependencies |
['libc6', 'libdevmapper1.02.1'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['debhelper-compat', 'autoconf-archive', 'automake', 'libaio-dev', 'libblkid-dev', 'pkg-config', 'systemd-dev', 'thin-provisioning-tools'] |
| Provides |
[] |
| Builddate |
|
| Architecture |
amd64 |
| Distro-Version |
noble |
| Licenses |
[] |
| Hash |
25619bad426e6ea795bf441c929f3c444ddf15c08740841ccc214951ce7ab6f8 |
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_CFLAGS_MAINT_STRIP = -O2
include /usr/share/dpkg/default.mk
VERSION_DEBIAN := $(shell echo "$(DEB_VERSION)" | sed -e 's,^[^-]*-,,')
DEVMAPPER_ABINAME = 1.02.1
DEVMAPPER_VERSION_PLAIN = $(shell awk '{print $$1}' VERSION_DM)
DEVMAPPER_VERSION = 2:$(DEVMAPPER_VERSION_PLAIN)
DEVMAPPER_VERSION_DEBIAN = $(DEVMAPPER_VERSION)-$(VERSION_DEBIAN)
DEVMAPPER_VERSION_FILE = $(DEVMAPPER_VERSION_PLAIN)-$(VERSION_DEBIAN)
GENCONTROL_ARGS = -Vdevmapper:Version=$(DEVMAPPER_VERSION_DEBIAN)
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS_OPT_DEB = -O2
CFLAGS_OPT_UDEB = -Os
endif
define CONFARGS.deb
--prefix=/usr
--exec-prefix=/usr
--with-usrlibdir=/usr/lib/$(DEB_HOST_MULTIARCH)
--with-optimisation="$(CFLAGS_OPT_DEB)"
--with-cache=internal
--with-device-uid=0
--with-device-gid=6
--with-device-mode=0660
--with-default-pid-dir=/run
--with-default-run-dir=/run/lvm
--with-default-locking-dir=/run/lock/lvm
--with-thin=internal
--with-thin-check=/usr/sbin/thin_check
--with-thin-dump=/usr/sbin/thin_dump
--with-thin-repair=/usr/sbin/thin_repair
--enable-applib
--enable-blkid_wiping
--enable-cmdlib
--enable-dmeventd
--enable-editline
--enable-lvmlockd-dlm
--enable-lvmlockd-sanlock
--enable-lvmpolld
--enable-notify-dbus
--enable-pkgconfig
--enable-udev_rules
--enable-udev_sync
--disable-readline
endef
define CONFARGS.deb_all
--enable-dbus-service
--disable-readline
--disable-selinux
endef
define CONFARGS.udeb
--with-optimisation="$(CFLAGS_OPT_UDEB)"
--with-lvm1=none
--with-pool=none
--disable-app-machineid
--disable-readline
--disable-selinux
--disable-systemd-journal
endef
BUILDS :=
ifneq ($(filter lvm2,$(shell dh_listpackages)),)
BUILDS += deb
endif
ifneq ($(filter lvm2-udeb,$(shell dh_listpackages)),)
BUILDS += udeb
endif
ifneq ($(filter lvm2-dbusd,$(shell dh_listpackages)),)
BUILDS += deb_all
endif
%:
dh $@ --parallel
override_dh_auto_configure: $(patsubst %,dh_auto_configure.%,$(BUILDS))
override_dh_auto_build: $(patsubst %,dh_auto_build.%,$(BUILDS))
override_dh_auto_install: $(patsubst %,dh_auto_install.%,$(BUILDS))
dh_auto_configure.%:
mkdir -p debian/build/build_$*
cp -al $(filter-out debian, $(wildcard * .[^.]*)) debian/build/build_$*/
dh_auto_configure --sourcedirectory=debian/build/build_$* -- $(strip $(CONFARGS.$*))
cp po/lvm2.po po/lvm2.pot
dh_auto_build.%:
dh_auto_build --sourcedirectory=debian/build/build_$* -- \
LIB_VERSION_DM=$(DEVMAPPER_ABINAME)
dh_auto_install.%:
dh_auto_install --sourcedirectory=debian/build/build_$* \
--destdir=debian/build/install_$* -- \
install \
install_systemd_generators \
install_systemd_units \
install_tmpfiles_configuration \
LIB_VERSION_DM=$(DEVMAPPER_ABINAME)
override_dh_auto_clean:
rm -rf debian/build
rm -f po/lvm2.pot
override_dh_gencontrol:
dh_gencontrol \
-pdmsetup \
-pdmsetup-udeb \
-pdmeventd \
-plibdevmapper-dev \
-plibdevmapper$(DEVMAPPER_ABINAME) \
-plibdevmapper$(DEVMAPPER_ABINAME)-udeb \
-plibdevmapper-event$(DEVMAPPER_ABINAME) \
-- -v$(DEVMAPPER_VERSION_DEBIAN) $(GENCONTROL_ARGS)
dh_gencontrol --remaining-packages \
-- $(GENCONTROL_ARGS)
override_dh_install:
ifneq ($(filter lvm2-udeb,$(shell dh_listpackages)),)
dh_install --sourcedir=debian/build/install_udeb \
-pdmsetup-udeb \
-plibdevmapper$(DEVMAPPER_ABINAME)-udeb \
-plvm2-udeb
endif
dh_install --sourcedir=debian/build/install_deb_all \
-plvm2-dbusd
dh_install --sourcedir=debian/build/install_deb \
--remaining-packages
override_dh_installchangelogs:
dh_installchangelogs -pdmeventd WHATS_NEW_DM
dh_installchangelogs -plvm2 WHATS_NEW
dh_installchangelogs --remaining-packages
override_dh_installinit:
dh_installinit -plvm2 --no-start
dh_installinit -plvm2 --restart-after-upgrade --name lvm2-lvmpolld
override_dh_makeshlibs:
dh_makeshlibs -plibdevmapper$(DEVMAPPER_ABINAME) \
--add-udeb 'libdevmapper$(DEVMAPPER_ABINAME)-udeb' \
"-Vlibdevmapper$(DEVMAPPER_ABINAME) (>= $(DEVMAPPER_VERSION))" \
-- "-v$(DEVMAPPER_VERSION_DEBIAN)" -c2
dh_makeshlibs -plibdevmapper-event$(DEVMAPPER_ABINAME) \
"-Vlibdevmapper-event$(DEVMAPPER_ABINAME) (>= $(DEVMAPPER_VERSION))" \
-- "-v$(DEVMAPPER_VERSION_DEBIAN)" -c2
dh_makeshlibs --remaining-packages -V \
-- -c2
override_dh_installsystemd:
dh_installsystemd -plvm2 --no-restart-after-upgrade --no-stop-on-upgrade \
blk-availability.service \
lvm2-monitor.service
dh_installsystemd -plvm2 \
lvm2-lvmpolld.socket
dh_installsystemd --remaining-packages
.NOTPARALLEL: