Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 814243 Details for
Bug 662074
net-dialup/freeradius-3.0.17: rlm_mschap and USE="-samba"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for freeradius 3.0.25-r2 ebuild
freeradius-3.0.25-r2.ebuild.samba.patch (text/plain), 6.73 KB, created by
Laszlo Valko
on 2022-09-26 11:26:32 UTC
(
hide
)
Description:
patch for freeradius 3.0.25-r2 ebuild
Filename:
MIME Type:
Creator:
Laszlo Valko
Created:
2022-09-26 11:26:32 UTC
Size:
6.73 KB
patch
obsolete
>diff -Naur freeradius.orig/files/freeradius-3.0.25-samba.patch freeradius.new/files/freeradius-3.0.25-samba.patch >--- freeradius.orig/files/freeradius-3.0.25-samba.patch 1970-01-01 01:00:00.000000000 +0100 >+++ freeradius.new/files/freeradius-3.0.25-samba.patch 2022-09-24 07:04:48.515550449 +0200 >@@ -0,0 +1,160 @@ >+--- a/src/modules/rlm_mschap/configure.ac 2021-10-07 21:46:04.000000000 +0200 >++++ b/src/modules/rlm_mschap/configure.ac 2022-09-24 05:22:47.398688867 +0200 >+@@ -15,13 +15,14 @@ >+ dnl ############################################################ >+ >+ dnl extra argument: --with-winbind-include-dir=DIR >++ winbind_omit= >+ winbind_include_dir= >+ AC_ARG_WITH(winbind-include-dir, >+ [AS_HELP_STRING([--with-winbind-include-dir=DIR], >+ [Directory where the winbind includes may be found])], >+ [case "$withval" in >+ no) >+- AC_MSG_ERROR(Need winbind-include-dir) >++ winbind_omit="yes" >+ ;; >+ yes) >+ ;; >+@@ -37,7 +38,7 @@ >+ [Directory where the winbind libraries may be found])], >+ [case "$withval" in >+ no) >+- AC_MSG_ERROR(Need winbind-lib-dir) >++ winbind_omit="yes" >+ ;; >+ yes) >+ ;; >+@@ -52,7 +53,7 @@ >+ [Base directory where winbind is installed])], >+ [case "$withval" in >+ no) >+- AC_MSG_ERROR(Need winbind-dir) >++ winbind_omit="yes" >+ ;; >+ yes) >+ ;; >+@@ -67,44 +68,48 @@ >+ dnl # Check for header files >+ dnl ############################################################ >+ >+- mschap_sources= >+- FR_SMART_CHECK_INCLUDE(membership.h) >+- if test "x$ac_cv_header_membership_h" = "xyes"; then >++ if test "x$winbind_omit" = "xyes"; then >++ AC_MSG_WARN([building without support for direct authentication via winbind]) >++ else >++ mschap_sources= >++ FR_SMART_CHECK_INCLUDE(membership.h) >++ if test "x$ac_cv_header_membership_h" = "xyes"; then >+ AC_DEFINE([HAVE_MEMBERSHIP_H],[1],[Build with Apple Open Directory support]) >+ mschap_sources="$mschap_sources opendir.c" >+ mod_ldflags="-framework DirectoryService" >+- fi >++ fi >+ >+- smart_try_dir="$winbind_include_dir /usr/include/samba-4.0" >+- FR_SMART_CHECK_INCLUDE(wbclient.h, [#include <stdint.h> >++ smart_try_dir="$winbind_include_dir /usr/include/samba-4.0" >++ FR_SMART_CHECK_INCLUDE(wbclient.h, [#include <stdint.h> >+ #include <stdbool.h>]) >+- if test "x$ac_cv_header_wbclient_h" != "xyes"; then >++ if test "x$ac_cv_header_wbclient_h" != "xyes"; then >+ AC_MSG_WARN([wbclient.h not found. Use --with-winbind-include-dir=<path>.]) >+ AC_MSG_WARN([silently building without support for direct authentication via winbind. requires: libwbclient]) >+- fi >++ fi >+ >+- FR_SMART_CHECK_INCLUDE(core/ntstatus.h, [#include <stdint.h> >++ FR_SMART_CHECK_INCLUDE(core/ntstatus.h, [#include <stdint.h> >+ #include <stdbool.h>]) >+- if test "x$ac_cv_header_core_ntstatus_h" != "xyes"; then >++ if test "x$ac_cv_header_core_ntstatus_h" != "xyes"; then >+ AC_MSG_WARN([core/ntstatus.h not found. Use --with-winbind-include-dir=<path>.]) >+ AC_MSG_WARN([silently building without support for direct authentication via winbind. requires: libwbclient]) >+- fi >+- >+- dnl ############################################################ >+- dnl # Check for libraries >+- dnl ############################################################ >+- >+- if test "x$ac_cv_header_wbclient_h" = "xyes" && \ >+- test "x$ac_cv_header_core_ntstatus_h" = "xyes"; then >++ fi >+ >+- smart_try_dir="$winbind_lib_dir" >+- FR_SMART_CHECK_LIB(wbclient, wbcCtxAuthenticateUserEx) >+- if test "x$ac_cv_lib_wbclient_wbcCtxAuthenticateUserEx" != "xyes"; then >+- AC_MSG_WARN([winbind libraries not found. Use --with-winbind-lib-dir=<path>.]) >+- AC_MSG_WARN([Samba must be version 4.2.1 or higher to use this feature.]) >+- else >+- mschap_sources="$mschap_sources auth_wbclient.c" >+- AC_DEFINE([WITH_AUTH_WINBIND],[1],[Build with direct winbind auth support]) >++ dnl ############################################################ >++ dnl # Check for libraries >++ dnl ############################################################ >++ >++ if test "x$ac_cv_header_wbclient_h" = "xyes" && \ >++ test "x$ac_cv_header_core_ntstatus_h" = "xyes"; then >++ >++ smart_try_dir="$winbind_lib_dir" >++ FR_SMART_CHECK_LIB(wbclient, wbcCtxAuthenticateUserEx) >++ if test "x$ac_cv_lib_wbclient_wbcCtxAuthenticateUserEx" != "xyes"; then >++ AC_MSG_WARN([winbind libraries not found. Use --with-winbind-lib-dir=<path>.]) >++ AC_MSG_WARN([Samba must be version 4.2.1 or higher to use this feature.]) >++ else >++ mschap_sources="$mschap_sources auth_wbclient.c" >++ AC_DEFINE([WITH_AUTH_WINBIND],[1],[Build with direct winbind auth support]) >++ fi >+ fi >+ fi >+ >+--- a/src/modules/rlm_mschap/configure 2021-10-07 21:46:04.000000000 +0200 >++++ b/src/modules/rlm_mschap/configure 2022-09-24 07:03:53.673208336 +0200 >+@@ -2773,7 +2773,7 @@ >+ if test "${with_winbind_include_dir+set}" = set; then : >+ withval=$with_winbind_include_dir; case "$withval" in >+ no) >+- as_fn_error $? "Need winbind-include-dir" "$LINENO" 5 >++ winbind_omit="yes" >+ ;; >+ yes) >+ ;; >+@@ -2790,7 +2790,7 @@ >+ if test "${with_winbind_lib_dir+set}" = set; then : >+ withval=$with_winbind_lib_dir; case "$withval" in >+ no) >+- as_fn_error $? "Need winbind-lib-dir" "$LINENO" 5 >++ winbind_omit="yes" >+ ;; >+ yes) >+ ;; >+@@ -2806,7 +2806,7 @@ >+ if test "${with_winbind_dir+set}" = set; then : >+ withval=$with_winbind_dir; case "$withval" in >+ no) >+- as_fn_error $? "Need winbind-dir" "$LINENO" 5 >++ winbind_omit="yes" >+ ;; >+ yes) >+ ;; >+@@ -2819,6 +2819,10 @@ >+ >+ >+ >++ if test "x$winbind_omit" = "xyes"; then >++ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building without support for direct authentication via winbind" >&5 >++$as_echo "$as_me: WARNING: building without support for direct authentication via winbind" >&2;} >++ else >+ >+ mschap_sources= >+ >+@@ -3723,6 +3727,8 @@ >+ fi >+ fi >+ >++fi >++ >+ targetname=rlm_mschap >+ else >+ targetname= >diff -Naur freeradius.orig/freeradius-3.0.25-r2.ebuild freeradius.new/freeradius-3.0.25-r2.ebuild >--- freeradius.orig/freeradius-3.0.25-r2.ebuild 2022-05-06 20:10:24.000000000 +0200 >+++ freeradius.new/freeradius-3.0.25-r2.ebuild 2022-09-24 06:38:30.951437388 +0200 >@@ -68,6 +68,7 @@ > > PATCHES=( > "${FILESDIR}"/${PN}-3.0.20-systemd-service.patch >+ "${FILESDIR}"/${PN}-3.0.25-samba.patch > ) > > pkg_setup() { >@@ -192,6 +193,12 @@ > ) > fi > >+ if ! use samba ; then >+ myeconfargs+=( >+ --without-winbind-dir >+ ) >+ fi >+ > use readline || export ac_cv_lib_readline=no > use pcap || export ac_cv_lib_pcap_pcap_open_live=no >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 662074
: 814243