net-fs/autofs: fix systemd issue
authorYixun Lan <dlan@gentoo.org>
Thu, 14 Feb 2019 04:22:52 +0000 (12:22 +0800)
committerYixun Lan <dlan@gentoo.org>
Thu, 14 Feb 2019 04:25:21 +0000 (12:25 +0800)
Closes: https://bugs.gentoo.org/677906

Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Yixun Lan <dlan@gentoo.org>
net-fs/autofs/autofs-5.1.5-r1.ebuild [moved from net-fs/autofs/autofs-5.1.5.ebuild with 94% similarity]

similarity index 94%
rename from net-fs/autofs/autofs-5.1.5.ebuild
rename to net-fs/autofs/autofs-5.1.5-r1.ebuild
index f120c687a17d289f0a01da9d829d29a0b77a065a..79c538dd1e1c32fce38e8b4e41c5cab237e73c90 100644 (file)
@@ -18,7 +18,7 @@ SRC_URI="
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="-dmalloc ldap +libtirpc mount-locking sasl"
+IUSE="-dmalloc ldap +libtirpc mount-locking sasl systemd"
 
 # USE="sasl" adds SASL support to the LDAP module which will not be build. If
 # SASL support should be available, please add "ldap" to the USE flags.
@@ -34,6 +34,7 @@ RDEPEND=">=sys-apps/util-linux-2.20
                        virtual/krb5
                )
        )
+       systemd? ( sys-apps/systemd )
        libtirpc? ( net-libs/libtirpc )
        !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
 "
@@ -73,12 +74,12 @@ src_configure() {
                $(use_with libtirpc)
                $(use_with sasl)
                $(use_enable mount-locking)
+               $(use_with systemd systemd $(systemd_get_systemunitdir)) #bug #479492
                --without-hesiod
                --disable-ext-env
                --enable-sloppy-mount # bug #453778
                --enable-force-shutdown
                --enable-ignore-busy
-               --with-systemd="$(systemd_get_systemunitdir)" #bug #479492
                RANLIB="$(type -P $(tc-getRANLIB))" # bug #483716
        )
        econf "${myeconfargs[@]}"