Skip to content

Commit

Permalink
sys-fs/multipath-tools: Bump v.0.9.7+1
Browse files Browse the repository at this point in the history
  • Loading branch information
geaaru committed Jan 7, 2024
1 parent ff0b25e commit ecbb766
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 104 deletions.
4 changes: 1 addition & 3 deletions packages/atoms-extra/tools/sys-fs/multipath-tools/build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
prelude:
- >-
cp multipath-tools-0.9.3.ebuild /var/git/meta-repo/kits/core-kit/sys-fs/multipath-tools &&
cd /var/git/meta-repo/kits/core-kit/sys-fs/multipath-tools &&
ebuild multipath-tools-0.9.3.ebuild digest && cd -
cp multipath-tools-0.9.7.ebuild /var/git/meta-repo/kits/core-kit/sys-fs/multipath-tools
- |-
export CFLAGS="-fcommon" && \
export FEATURES="-sandbox -usersandbox -ipc-sandbox -pid-sandbox -network-sandbox" && \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: multipath-tools
version: 0.9.7
version: 0.9.7+1
category: sys-fs
use_flags:
- -rbd
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit linux-info toolchain-funcs udev tmpfiles

DESCRIPTION="Device mapper target autoconfig"
HOMEPAGE="http://christophe.varoqui.free.fr/"
SRC_URI="https://github.com/opensvc/multipath-tools/tarball/6bb7330fca4a85c4f5abab0f9de5bd3519923f0a -> multipath-tools-0.9.7-6bb7330.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
IUSE=""

RDEPEND="
dev-libs/json-c:=
dev-libs/libaio
dev-libs/userspace-rcu:=
>=sys-fs/lvm2-2.02.45
>=virtual/libudev-232
sys-libs/readline:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

CONFIG_CHECK="~DM_MULTIPATH"

post_src_unpack() {
if [ ! -d "${S}" ]; then
mv opensvc-multipath-tools* "${S}" || die
fi
}

src_prepare() {
default

sed -r -i -e '/^(CPPFLAGS|CFLAGS)\>/s,^(CPPFLAGS|CFLAGS)\>[[:space:]]+:=,\1 := $(GENTOO_\1),' \
"${S}"/Makefile.inc || die
}

src_compile() {
tc-export CC

# LIBDM_API_FLUSH involves grepping files in /usr/include,
# so force the test to go the way we want #411337.
emake \
prefix="${EPREFIX}/usr" \
LIB="$(get_libdir)" \
LIBDM_API_FLUSH=1 \
PKGCONFIG="$(tc-getPKG_CONFIG)" \
GENTOO_CFLAGS="${CFLAGS}" \
GENTOO_CPPFLAGS="${CPPFLAGS}" \
FAKEVAR=1
}

src_install() {
dodir /sbin

# Please clean this up > 0.9.3: https://github.com/opensvc/multipath-tools/pull/53
# $(prefix) doesn't work correctly in makefile in 0.9.3.
emake \
DESTDIR="${ED}" \
prefix="${EPREFIX}" \
LIB="$(get_libdir)" \
RUN=run \
libudevdir="${EPREFIX}/$(get_udevdir)" \
pkgconfdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig" \
GENTOO_CFLAGS="${CFLAGS}" \
GENTOO_CPPFLAGS="${CPPFLAGS}" \
install

einstalldocs

newinitd "${FILESDIR}"/multipathd-r1.rc multipathd
newinitd "${FILESDIR}"/multipath.rc multipath

find "${ED}" -type f -name '*.la' -delete || die
}

pkg_postinst() {
tmpfiles_process /usr/lib/tmpfiles.d/multipath.conf
udev_reload

if [[ -z ${REPLACING_VERSIONS} ]] ; then
elog "If you need multipath on your system, you must"
elog "add 'multipath' into your boot runlevel!"
fi
}

pkg_postrm() {
udev_reload
}

0 comments on commit ecbb766

Please sign in to comment.