From b955066a2726c734664fe8d000c4b05675557707 Mon Sep 17 00:00:00 2001 From: Herb Miller Jr Date: Mon, 11 Jun 2018 17:50:02 -0400 Subject: net-dialup/freeradius: Add samba USE flag. The rlm_mschap module autodetects existence of samba. This changes the behavior a little to only build the module if the samba USE flag is specified. Bug: https://bugs.gentoo.org/638396 Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- net-dialup/freeradius/freeradius-3.0.17.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'net-dialup/freeradius') diff --git a/net-dialup/freeradius/freeradius-3.0.17.ebuild b/net-dialup/freeradius/freeradius-3.0.17.ebuild index 4ba47a9caa3b..59c9dfd3515e 100644 --- a/net-dialup/freeradius/freeradius-3.0.17.ebuild +++ b/net-dialup/freeradius/freeradius-3.0.17.ebuild @@ -21,7 +21,7 @@ SLOT="0" IUSE=" debug firebird iodbc kerberos ldap libressl memcached mysql odbc oracle pam - pcap postgres python readline rest sqlite ssl + pcap postgres python readline rest samba sqlite ssl " RESTRICT="test firebird? ( bindist )" @@ -40,6 +40,7 @@ RDEPEND="!net-dialup/cistronradius firebird? ( dev-db/firebird ) pam? ( virtual/pam ) rest? ( dev-libs/json-c:= ) + samba? ( net-fs/samba ) ssl? ( !libressl? ( dev-libs/openssl:0=[-bindist] ) libressl? ( dev-libs/libressl:0= ) @@ -79,6 +80,8 @@ src_prepare() { use pam || { rm -r src/modules/rlm_pam || die ; } use python || { rm -r src/modules/rlm_python || die ; } use rest || { rm -r src/modules/rlm_rest || die ; } + # can't just nuke rlm_mschap because many modules rely on smbdes.h + use samba || { rm -r src/modules/rlm_mschap/{configure,*.mk} || die ; } # Do not install ruby rlm module, bug #483108 rm -r src/modules/rlm_ruby || die -- cgit v1.2.3-65-gdbad