sys-fs/e2fsprogs: Revbump to make cron script optional
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 14 May 2019 09:50:24 +0000 (11:50 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 14 May 2019 09:55:32 +0000 (11:55 +0200)
because of its dependency to sys-fs/lvm2

Also remove trailing slash from --with-root-prefix configure option

Closes: https://bugs.gentoo.org/685934
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-fs/e2fsprogs/e2fsprogs-1.45.1-r1.ebuild [moved from sys-fs/e2fsprogs/e2fsprogs-1.45.1.ebuild with 95% similarity]
sys-fs/e2fsprogs/metadata.xml

similarity index 95%
rename from sys-fs/e2fsprogs/e2fsprogs-1.45.1.ebuild
rename to sys-fs/e2fsprogs/e2fsprogs-1.45.1-r1.ebuild
index 67447c7617e23604746e28064089e00036f53d52..c0ce32929e1be66f705dedc08c9c3a1c79b07e37 100644 (file)
@@ -14,10 +14,11 @@ SRC_URI="mirror://sourceforge/e2fsprogs/${P}.tar.xz
 LICENSE="GPL-2 BSD"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux ~m68k-mint"
-IUSE="fuse nls static-libs elibc_FreeBSD"
+IUSE="cron fuse nls static-libs elibc_FreeBSD"
 
 RDEPEND="~sys-libs/${PN}-libs-${PV}
        >=sys-apps/util-linux-2.16
+       cron? ( sys-fs/lvm2[-device-mapper-only(-)] )
        fuse? ( sys-fs/fuse:0 )
        nls? ( virtual/libintl )"
 DEPEND="${RDEPEND}"
@@ -71,8 +72,8 @@ src_configure() {
        append-cppflags -D_GNU_SOURCE
 
        local myeconfargs=(
-               --with-root-prefix="${EPREFIX}/"
-               --with-crond-dir="${EPREFIX}/etc/cron.d"
+               --with-root-prefix="${EPREFIX}"
+               $(use_with cron crond-dir "${EPREFIX}/etc/cron.d")
                --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
                --with-udev-rules-dir="${EPREFIX}$(get_udevdir)/rules.d"
                --enable-symlink-install
index ba8429b814c143ff3abff227621ece7109fb13d1..4ffc67ac95a77942b994f48701a09592221fd4fe 100644 (file)
@@ -6,6 +6,7 @@
        <name>Gentoo Base System</name>
 </maintainer>
 <use>
+       <flag name="cron">Install e2scrub_all cron script</flag>
        <flag name='fuse'>Build fuse2fs, a FUSE file system client for ext2/ext3/ext4 file systems</flag>
 </use>
 <upstream>