diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2022-10-29 21:35:20 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2022-10-29 21:35:36 -0700 |
commit | 9199809d660b52e6f4e960fc1bea889bea15cdaa (patch) | |
tree | d20fafe6832f95f6e14bcc7dfabfc196bb627fb3 /sys-fs/multipath-tools | |
parent | sys-fs/multipath-tools: bump (diff) | |
download | gentoo-9199809d660b52e6f4e960fc1bea889bea15cdaa.tar.gz gentoo-9199809d660b52e6f4e960fc1bea889bea15cdaa.tar.bz2 gentoo-9199809d660b52e6f4e960fc1bea889bea15cdaa.zip |
sys-fs/multipath-tools: bump
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Reference: https://bugs.gentoo.org/show_bug.cgi?id=878763
Diffstat (limited to 'sys-fs/multipath-tools')
-rw-r--r-- | sys-fs/multipath-tools/multipath-tools-0.9.3.ebuild | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/sys-fs/multipath-tools/multipath-tools-0.9.3.ebuild b/sys-fs/multipath-tools/multipath-tools-0.9.3.ebuild index 937105680154..74c4e010e73a 100644 --- a/sys-fs/multipath-tools/multipath-tools-0.9.3.ebuild +++ b/sys-fs/multipath-tools/multipath-tools-0.9.3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit linux-info systemd toolchain-funcs udev +inherit linux-info systemd toolchain-funcs udev tmpfiles DESCRIPTION="Device mapper target autoconfig" HOMEPAGE="http://christophe.varoqui.free.fr/" @@ -34,7 +34,7 @@ PATCHES=( ) src_prepare() { default # life is too short for some trivial patches - sed -r -i -e '/^(CPPFLAGS|CFLAGS)/s,:=,+=,' \ + sed -r -i -e '/^(CPPFLAGS|CFLAGS)\>/s,^(CPPFLAGS|CFLAGS)\>[[:space:]]+:=,\1 := $(GENTOO_\1),' \ "${S}"/Makefile.inc || die } @@ -44,23 +44,33 @@ src_compile() { # LIBDM_API_FLUSH involves grepping files in /usr/include, # so force the test to go the way we want #411337. emake \ - prefix="${EPREFIX}" \ + prefix="${EPREFIX}/usr" \ LIB="$(get_libdir)" \ LIBDM_API_FLUSH=1 \ - PKGCONFIG="$(tc-getPKG_CONFIG)" + PKGCONFIG="$(tc-getPKG_CONFIG)" \ + GENTOO_CFLAGS="${CFLAGS}" \ + GENTOO_CPPFLAGS="${CPPFLAGS}" \ + FAKEVAR=1 } src_install() { - dodir /sbin /usr/share/man/man{3,5,8} + dodir /sbin + # upstream makefile has terrible $(prefix) choices emake \ - DESTDIR="${D}" \ + DESTDIR="${ED}" \ prefix="${EPREFIX}" \ LIB="$(get_libdir)" \ RUN=run \ unitdir="$(systemd_get_systemunitdir)" \ - libudevdir='$(prefix)'/$(get_udevdir) \ - pkgconfdir='$(prefix)/usr/$(LIB)/pkgconfig' \ + libudevdir="${EPREFIX}/$(get_udevdir)" \ + pkgconfdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig" \ + GENTOO_CFLAGS="${CFLAGS}" \ + GENTOO_CPPFLAGS="${CPPFLAGS}" \ install + rmdir "${ED}"/usr/include + rmdir "${ED}"/usr/share + mv "${ED}"/include "${ED}"/usr/include || die + mv "${ED}"/share "${ED}"/usr/share || die einstalldocs newinitd "${FILESDIR}"/multipathd-r1.rc multipathd @@ -70,6 +80,7 @@ src_install() { } pkg_postinst() { + tmpfiles_process /usr/lib/tmpfiles.d/multipath.conf udev_reload if [[ -z ${REPLACING_VERSIONS} ]] ; then |