diff options
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch | 46 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-enble-user-in-conf.patch) | 12 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch) | 10 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch) | 33 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch) | 12 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch) | 57 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-rlm_python-add-PY_INC_DIR.patch) | 12 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-do-not-use-jlibtool.patch) | 24 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-quoting-for-BUILT_WITH.patch) | 13 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-error-for-expansion-of-macro.patch) | 6 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/0001-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch) | 17 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/0001-raddb-certs-Makefile-fix-the-existed-certificate-err.patch) | 10 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/0001-raddb-certs-Makefile-fix-the-occasional-verification.patch) | 17 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/0001-workaround-error-with-autoconf-2.7.patch) | 14 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/check-openssl-cmds-in-script-bootstrap.patch) | 10 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch (renamed from meta-networking/recipes-connectivity/freeradius/files/0001-version.c-don-t-print-build-flags.patch) | 6 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/0017-add-python.m4-for-detecting-python-3.10.patch | 427 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb (renamed from meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb) | 60 |
18 files changed, 632 insertions, 154 deletions
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch b/meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch new file mode 100644 index 0000000000..e1228c2ebe --- /dev/null +++ b/meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 3be3b9a1345942d1578ec73efa9b2e3c41bd67c5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Fri, 21 Jan 2022 13:22:24 +0800 | ||
4 | Subject: [PATCH] Add autogen.sh | ||
5 | |||
6 | The autogen.sh has been removed since 3.0.22[1]. But we still need it in | ||
7 | do_configure. Add it back. | ||
8 | |||
9 | [1] https://github.com/FreeRADIUS/freeradius-server/commit/2e9b6227efd19e2b0926541aa26874908e7b7314 | ||
10 | |||
11 | Upstream-Status: Inappropriate [embedded specific] | ||
12 | |||
13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
14 | --- | ||
15 | autogen.sh | 19 +++++++++++++++++++ | ||
16 | 1 file changed, 19 insertions(+) | ||
17 | create mode 100755 autogen.sh | ||
18 | |||
19 | diff --git a/autogen.sh b/autogen.sh | ||
20 | new file mode 100755 | ||
21 | index 0000000000..959182b39e | ||
22 | --- /dev/null | ||
23 | +++ b/autogen.sh | ||
24 | @@ -0,0 +1,19 @@ | ||
25 | +#!/bin/sh -e | ||
26 | + | ||
27 | +parentdir=`dirname $0` | ||
28 | + | ||
29 | +cd $parentdir | ||
30 | +parentdir=`pwd` | ||
31 | +m4include="-I$parentdir -I$parentdir/m4 -Im4" | ||
32 | + | ||
33 | +autoreconf -Wcross --verbose --install --force | ||
34 | + | ||
35 | +mysubdirs="$mysubdirs `find src/modules/ -name configure -print | sed 's%/configure%%'`" | ||
36 | +mysubdirs=`echo $mysubdirs` | ||
37 | + | ||
38 | +for F in $mysubdirs | ||
39 | +do | ||
40 | + echo "Configuring in $F..." | ||
41 | + (cd $F && grep "^AC_CONFIG_HEADER" configure.ac > /dev/null || exit 0; autoheader $m4include) | ||
42 | + (cd $F && autoconf $m4include) | ||
43 | +done | ||
44 | -- | ||
45 | 2.25.1 | ||
46 | |||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-enble-user-in-conf.patch b/meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch index 4a62bf1fa2..c57ee93c33 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-enble-user-in-conf.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch | |||
@@ -1,4 +1,8 @@ | |||
1 | Enable and change user and group of freeradius server to radiusd | 1 | From 2a74c10836c0d2d19248ca40d113936f4a56b039 Mon Sep 17 00:00:00 2001 |
2 | From: "Roy.Li" <rongqing.li@windriver.com> | ||
3 | Date: Sun, 8 Jan 2023 22:47:11 +0800 | ||
4 | Subject: [PATCH] Enable and change user and group of freeradius server to | ||
5 | radiusd | ||
2 | 6 | ||
3 | Upstream-Status: Inappropriate [configuration] | 7 | Upstream-Status: Inappropriate [configuration] |
4 | 8 | ||
@@ -9,10 +13,10 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
9 | 1 file changed, 2 insertions(+), 2 deletions(-) | 13 | 1 file changed, 2 insertions(+), 2 deletions(-) |
10 | 14 | ||
11 | diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in | 15 | diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in |
12 | index c62f4ff..0b4a84e 100644 | 16 | index 154b50d610..4594d6d2d2 100644 |
13 | --- a/raddb/radiusd.conf.in | 17 | --- a/raddb/radiusd.conf.in |
14 | +++ b/raddb/radiusd.conf.in | 18 | +++ b/raddb/radiusd.conf.in |
15 | @@ -436,8 +436,8 @@ security { | 19 | @@ -557,8 +557,8 @@ security { |
16 | # member. This can allow for some finer-grained access | 20 | # member. This can allow for some finer-grained access |
17 | # controls. | 21 | # controls. |
18 | # | 22 | # |
@@ -24,5 +28,5 @@ index c62f4ff..0b4a84e 100644 | |||
24 | # Core dumps are a bad thing. This should only be set to | 28 | # Core dumps are a bad thing. This should only be set to |
25 | # 'yes' if you're debugging a problem with the server. | 29 | # 'yes' if you're debugging a problem with the server. |
26 | -- | 30 | -- |
27 | 1.9.1 | 31 | 2.25.1 |
28 | 32 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch b/meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch index 38e7c36227..e5442360b3 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0780b7053fb0d33d721aa70ab2ecd75299e5ba31 Mon Sep 17 00:00:00 2001 | 1 | From ba1390a80662ff2ab7bfda978cde7df9a871f6ae Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Tue, 24 Jul 2018 15:03:39 +0800 | 3 | Date: Tue, 24 Jul 2018 15:03:39 +0800 |
4 | Subject: [PATCH] configure.ac: allow cross-compilation | 4 | Subject: [PATCH] configure.ac: allow cross-compilation |
@@ -7,7 +7,7 @@ The checking OpenSSL library and header version consistency will | |||
7 | always fail in cross compiling, skip the check and give a warning | 7 | always fail in cross compiling, skip the check and give a warning |
8 | instead for cross compiling. | 8 | instead for cross compiling. |
9 | 9 | ||
10 | Upstream-Status: Inappropriate[embedded specific] | 10 | Upstream-Status: Inappropriate [embedded specific] |
11 | 11 | ||
12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | 13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
@@ -19,10 +19,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
19 | 1 file changed, 2 insertions(+), 1 deletion(-) | 19 | 1 file changed, 2 insertions(+), 1 deletion(-) |
20 | 20 | ||
21 | diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac | 21 | diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac |
22 | index efc9f29..98a97e4 100644 | 22 | index a0f510cfb3..d2f3eca03e 100644 |
23 | --- a/src/modules/rlm_krb5/configure.ac | 23 | --- a/src/modules/rlm_krb5/configure.ac |
24 | +++ b/src/modules/rlm_krb5/configure.ac | 24 | +++ b/src/modules/rlm_krb5/configure.ac |
25 | @@ -137,7 +137,8 @@ if test x$with_[]modname != xno; then | 25 | @@ -140,7 +140,8 @@ if test x$with_[]modname != xno; then |
26 | FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe) | 26 | FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe) |
27 | if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then | 27 | if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then |
28 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])], | 28 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])], |
@@ -33,5 +33,5 @@ index efc9f29..98a97e4 100644 | |||
33 | else | 33 | else |
34 | krb5threadsafe="" | 34 | krb5threadsafe="" |
35 | -- | 35 | -- |
36 | 2.7.4 | 36 | 2.25.1 |
37 | 37 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch b/meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch index 4265f9d0de..479e1ba76f 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch | |||
@@ -1,9 +1,7 @@ | |||
1 | From bfe4d7ed72edc9d4ae1a0f0d2dd84367d6214886 Mon Sep 17 00:00:00 2001 | 1 | From 5ba3d140842268cbbdd983266efecb1fba5bdd59 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Thu, 22 Aug 2019 10:45:46 +0800 | 3 | Date: Thu, 22 Aug 2019 10:45:46 +0800 |
4 | Subject: [PATCH 1/2] Fix libtool detection | 4 | Subject: [PATCH] Fix libtool detection |
5 | |||
6 | Upstream-Status: pending | ||
7 | 5 | ||
8 | Use LT_INIT instead of the deprecated AC_PROG_LIBTOOL to detect libtool, so it | 6 | Use LT_INIT instead of the deprecated AC_PROG_LIBTOOL to detect libtool, so it |
9 | can work with our libtoolize and libtool. | 7 | can work with our libtoolize and libtool. |
@@ -12,37 +10,20 @@ Simplify the detection of ltdl. It will find the ltdl from the sysroot; the | |||
12 | switch --with-system-libltdl is no longer needed. The code is copied from | 10 | switch --with-system-libltdl is no longer needed. The code is copied from |
13 | pulseaudio configure.ac, together with the comment paragraph. | 11 | pulseaudio configure.ac, together with the comment paragraph. |
14 | 12 | ||
15 | Also patch autogen.sh so it uses autoreconf, which handles libtoolize better. | 13 | Upstream-Status: Inappropriate [embedded specific] |
16 | 14 | ||
17 | Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> | 15 | Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> |
18 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 16 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
19 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 17 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
20 | --- | 18 | --- |
21 | autogen.sh | 5 +---- | ||
22 | configure.ac | 36 ++++++++++++++++++++++++++++++++++++ | 19 | configure.ac | 36 ++++++++++++++++++++++++++++++++++++ |
23 | 2 files changed, 37 insertions(+), 4 deletions(-) | 20 | 1 file changed, 36 insertions(+) |
24 | 21 | ||
25 | diff --git a/autogen.sh b/autogen.sh | ||
26 | index a1d08a6..959182b 100755 | ||
27 | --- a/autogen.sh | ||
28 | +++ b/autogen.sh | ||
29 | @@ -6,10 +6,7 @@ cd $parentdir | ||
30 | parentdir=`pwd` | ||
31 | m4include="-I$parentdir -I$parentdir/m4 -Im4" | ||
32 | |||
33 | -libtoolize -f -c | ||
34 | -#aclocal | ||
35 | -autoheader | ||
36 | -autoconf | ||
37 | +autoreconf -Wcross --verbose --install --force | ||
38 | |||
39 | mysubdirs="$mysubdirs `find src/modules/ -name configure -print | sed 's%/configure%%'`" | ||
40 | mysubdirs=`echo $mysubdirs` | ||
41 | diff --git a/configure.ac b/configure.ac | 22 | diff --git a/configure.ac b/configure.ac |
42 | index a7abf00..65db61e 100644 | 23 | index ad8bc8cdda..ef8fced680 100644 |
43 | --- a/configure.ac | 24 | --- a/configure.ac |
44 | +++ b/configure.ac | 25 | +++ b/configure.ac |
45 | @@ -220,6 +220,42 @@ dnl # See if we have Git. | 26 | @@ -321,6 +321,42 @@ dnl # See if we have Git. |
46 | dnl # | 27 | dnl # |
47 | AC_CHECK_PROG(GIT, git, yes, no) | 28 | AC_CHECK_PROG(GIT, git, yes, no) |
48 | 29 | ||
@@ -86,5 +67,5 @@ index a7abf00..65db61e 100644 | |||
86 | dnl AC_ARG_WITH(disablemodulefoo, | 67 | dnl AC_ARG_WITH(disablemodulefoo, |
87 | dnl [ --without-rlm_foo Disables module compilation. Module list:] | 68 | dnl [ --without-rlm_foo Disables module compilation. Module list:] |
88 | -- | 69 | -- |
89 | 2.7.4 | 70 | 2.25.1 |
90 | 71 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch b/meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch index 4719358722..8ef3c4bdf9 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 98a9eff357959d1113e33a615c2178751d5b2054 Mon Sep 17 00:00:00 2001 | 1 | From 9548dc5e1a6c835cd4f387ba384d8f3f14c3fc8b Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Thu, 22 Aug 2019 10:50:21 +0800 | 3 | Date: Thu, 22 Aug 2019 10:50:21 +0800 |
4 | Subject: [PATCH 2/2] configure.ac: add option for libcap | 4 | Subject: [PATCH] configure.ac: add option for libcap |
5 | 5 | ||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | 7 | ||
@@ -12,10 +12,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
12 | 1 file changed, 27 insertions(+), 9 deletions(-) | 12 | 1 file changed, 27 insertions(+), 9 deletions(-) |
13 | 13 | ||
14 | diff --git a/configure.ac b/configure.ac | 14 | diff --git a/configure.ac b/configure.ac |
15 | index 65db61e..6486aac 100644 | 15 | index ef8fced680..263098f7fd 100644 |
16 | --- a/configure.ac | 16 | --- a/configure.ac |
17 | +++ b/configure.ac | 17 | +++ b/configure.ac |
18 | @@ -977,6 +977,22 @@ fi | 18 | @@ -1161,6 +1161,22 @@ fi |
19 | dnl Set by FR_SMART_CHECKLIB | 19 | dnl Set by FR_SMART_CHECKLIB |
20 | LIBS="${old_LIBS}" | 20 | LIBS="${old_LIBS}" |
21 | 21 | ||
@@ -38,7 +38,7 @@ index 65db61e..6486aac 100644 | |||
38 | dnl Check for cap | 38 | dnl Check for cap |
39 | dnl extra argument: --with-cap-lib-dir=DIR | 39 | dnl extra argument: --with-cap-lib-dir=DIR |
40 | cap_lib_dir= | 40 | cap_lib_dir= |
41 | @@ -1010,15 +1026,17 @@ AC_ARG_WITH(cap-include-dir, | 41 | @@ -1194,15 +1210,17 @@ AC_ARG_WITH(cap-include-dir, |
42 | ;; | 42 | ;; |
43 | esac]) | 43 | esac]) |
44 | 44 | ||
@@ -66,5 +66,5 @@ index 65db61e..6486aac 100644 | |||
66 | 66 | ||
67 | dnl # | 67 | dnl # |
68 | -- | 68 | -- |
69 | 2.7.4 | 69 | 2.25.1 |
70 | 70 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch b/meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch index 9c997661fc..8fd0dca443 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch | |||
@@ -1,14 +1,15 @@ | |||
1 | From dc41591d5ceb18900ec85894f8f7b7bb44bb3bd9 Mon Sep 17 00:00:00 2001 | 1 | From 8fe25b30b6fbb3170705f4468eb4c92eef3a968f Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Mon, 4 Jan 2016 01:44:04 -0500 | 3 | Date: Mon, 4 Jan 2016 01:44:04 -0500 |
4 | Subject: [PATCH] avoid searching host dirs | 4 | Subject: [PATCH] Avoid searching host dirs |
5 | 5 | ||
6 | Don't search the hardcoded host dirs to avoid | 6 | Don't search the hardcoded host dirs to avoid |
7 | host contamination. | 7 | host contamination. |
8 | 8 | ||
9 | Upstream-Status: Inappropriate [cross-compile specific] | 9 | Upstream-Status: Inappropriate [embedded specific] |
10 | 10 | ||
11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
12 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
12 | --- | 13 | --- |
13 | acinclude.m4 | 4 ++-- | 14 | acinclude.m4 | 4 ++-- |
14 | src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac | 4 ++-- | 15 | src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac | 4 ++-- |
@@ -21,19 +22,19 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
21 | 8 files changed, 16 insertions(+), 16 deletions(-) | 22 | 8 files changed, 16 insertions(+), 16 deletions(-) |
22 | 23 | ||
23 | diff --git a/acinclude.m4 b/acinclude.m4 | 24 | diff --git a/acinclude.m4 b/acinclude.m4 |
24 | index da48acc..b513ae1 100644 | 25 | index a953d0e1b6..ede143d3c2 100644 |
25 | --- a/acinclude.m4 | 26 | --- a/acinclude.m4 |
26 | +++ b/acinclude.m4 | 27 | +++ b/acinclude.m4 |
27 | @@ -178,7 +178,7 @@ if test "x$smart_lib" = "x"; then | 28 | @@ -115,7 +115,7 @@ dnl # |
28 | FR_LOCATE_DIR(smart_lib_dir,[lib$1${libltdl_cv_shlibext}]) | 29 | dnl # Try to guess possible locations. |
29 | FR_LOCATE_DIR(smart_lib_dir,[lib$1.a]) | 30 | dnl # |
30 | 31 | if test "x$smart_lib" = "x"; then | |
31 | - for try in $smart_lib_dir /usr/local/lib /opt/lib; do | 32 | - for try in /usr/local/lib /opt/lib; do |
32 | + for try in $smart_lib_dir; do | 33 | + for try in $smart_lib_dir; do |
33 | AC_MSG_CHECKING([for $2 in -l$1 in $try]) | 34 | AC_MSG_CHECKING([for $2 in -l$1 in $try]) |
34 | LIBS="-l$1 $old_LIBS" | 35 | LIBS="-l$1 $old_LIBS" |
35 | CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" | 36 | CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" |
36 | @@ -218,7 +218,7 @@ ac_safe=`echo "$1" | sed 'y%./+-%__pm%'` | 37 | @@ -155,7 +155,7 @@ ac_safe=`echo "$1" | sed 'y%./+-%__pm%'` |
37 | old_CPPFLAGS="$CPPFLAGS" | 38 | old_CPPFLAGS="$CPPFLAGS" |
38 | smart_include= | 39 | smart_include= |
39 | dnl # The default directories we search in (in addition to the compilers search path) | 40 | dnl # The default directories we search in (in addition to the compilers search path) |
@@ -43,10 +44,10 @@ index da48acc..b513ae1 100644 | |||
43 | dnl # Our local versions | 44 | dnl # Our local versions |
44 | _smart_try_dir= | 45 | _smart_try_dir= |
45 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac | 46 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac |
46 | index 75c851a..a262d71 100644 | 47 | index 44f84aa27e..23a1899591 100644 |
47 | --- a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac | 48 | --- a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac |
48 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac | 49 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac |
49 | @@ -57,14 +57,14 @@ if test x$with_[]modname != xno; then | 50 | @@ -61,14 +61,14 @@ if test x$with_[]modname != xno; then |
50 | esac]) | 51 | esac]) |
51 | 52 | ||
52 | dnl Check for SQLConnect in -ldb2 | 53 | dnl Check for SQLConnect in -ldb2 |
@@ -64,10 +65,10 @@ index 75c851a..a262d71 100644 | |||
64 | if test "x$ac_cv_header_sqlcli_h" != xyes; then | 65 | if test "x$ac_cv_header_sqlcli_h" != xyes; then |
65 | fail="$fail sqlcli.h" | 66 | fail="$fail sqlcli.h" |
66 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac | 67 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac |
67 | index 4da57b3..752b043 100644 | 68 | index 4c2fd7ba9e..10c864def5 100644 |
68 | --- a/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac | 69 | --- a/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac |
69 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac | 70 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac |
70 | @@ -56,14 +56,14 @@ if test x$with_[]modname != xno; then | 71 | @@ -60,14 +60,14 @@ if test x$with_[]modname != xno; then |
71 | esac]) | 72 | esac]) |
72 | 73 | ||
73 | dnl Check for isc_attach_database in -lfbclient | 74 | dnl Check for isc_attach_database in -lfbclient |
@@ -85,10 +86,10 @@ index 4da57b3..752b043 100644 | |||
85 | if test "x$ac_cv_header_ibase_h" != xyes; then | 86 | if test "x$ac_cv_header_ibase_h" != xyes; then |
86 | fail="$fail ibase.h" | 87 | fail="$fail ibase.h" |
87 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac | 88 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac |
88 | index ba6304f..3393557 100644 | 89 | index d26ac9c431..6e4500e948 100644 |
89 | --- a/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac | 90 | --- a/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac |
90 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac | 91 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac |
91 | @@ -57,14 +57,14 @@ if test x$with_[]modname != xno; then | 92 | @@ -61,14 +61,14 @@ if test x$with_[]modname != xno; then |
92 | esac]) | 93 | esac]) |
93 | 94 | ||
94 | dnl Check for SQLConnect in -liodbc | 95 | dnl Check for SQLConnect in -liodbc |
@@ -106,10 +107,10 @@ index ba6304f..3393557 100644 | |||
106 | if test "x$ac_cv_header_isql_h" != xyes; then | 107 | if test "x$ac_cv_header_isql_h" != xyes; then |
107 | fail="$fail isql.h" | 108 | fail="$fail isql.h" |
108 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac | 109 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac |
109 | index 1401677..2e7db44 100644 | 110 | index df36da77bf..31359041c7 100644 |
110 | --- a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac | 111 | --- a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac |
111 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac | 112 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac |
112 | @@ -136,7 +136,7 @@ if test x$with_[]modname != xno; then | 113 | @@ -140,7 +140,7 @@ if test x$with_[]modname != xno; then |
113 | 114 | ||
114 | dnl # Check for libmysqlclient_r | 115 | dnl # Check for libmysqlclient_r |
115 | if test "x$have_a_libmysqlclient" != "xyes"; then | 116 | if test "x$have_a_libmysqlclient" != "xyes"; then |
@@ -118,7 +119,7 @@ index 1401677..2e7db44 100644 | |||
118 | FR_SMART_CHECK_LIB(mysqlclient_r, mysql_init) | 119 | FR_SMART_CHECK_LIB(mysqlclient_r, mysql_init) |
119 | if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = "xyes"; then | 120 | if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = "xyes"; then |
120 | have_a_libmysqlclient='yes' | 121 | have_a_libmysqlclient='yes' |
121 | @@ -145,7 +145,7 @@ if test x$with_[]modname != xno; then | 122 | @@ -149,7 +149,7 @@ if test x$with_[]modname != xno; then |
122 | 123 | ||
123 | dnl # Check for libmysqlclient | 124 | dnl # Check for libmysqlclient |
124 | if test "x$have_a_libmysqlclient" != "xyes"; then | 125 | if test "x$have_a_libmysqlclient" != "xyes"; then |
@@ -127,7 +128,7 @@ index 1401677..2e7db44 100644 | |||
127 | FR_SMART_CHECK_LIB(mysqlclient, mysql_init) | 128 | FR_SMART_CHECK_LIB(mysqlclient, mysql_init) |
128 | if test "x$ac_cv_lib_mysqlclient_mysql_init" = "xyes"; then | 129 | if test "x$ac_cv_lib_mysqlclient_mysql_init" = "xyes"; then |
129 | have_a_libmysqlclient='yes' | 130 | have_a_libmysqlclient='yes' |
130 | @@ -189,7 +189,7 @@ if test x$with_[]modname != xno; then | 131 | @@ -243,7 +243,7 @@ if test x$with_[]modname != xno; then |
131 | fi | 132 | fi |
132 | 133 | ||
133 | if test "x$have_mysql_h" != "xyes"; then | 134 | if test "x$have_mysql_h" != "xyes"; then |
@@ -137,10 +138,10 @@ index 1401677..2e7db44 100644 | |||
137 | if test "x$ac_cv_header_mysql_mysql_h" = "xyes"; then | 138 | if test "x$ac_cv_header_mysql_mysql_h" = "xyes"; then |
138 | AC_DEFINE(HAVE_MYSQL_MYSQL_H, [], [Define if you have <mysql/mysql.h>]) | 139 | AC_DEFINE(HAVE_MYSQL_MYSQL_H, [], [Define if you have <mysql/mysql.h>]) |
139 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac | 140 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac |
140 | index 3178462..5cbc8c2 100644 | 141 | index 3b45da582a..03e6607d2b 100644 |
141 | --- a/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac | 142 | --- a/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac |
142 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac | 143 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac |
143 | @@ -63,7 +63,7 @@ if test x$with_[]modname != xno; then | 144 | @@ -68,7 +68,7 @@ if test x$with_[]modname != xno; then |
144 | dnl # Check for header files | 145 | dnl # Check for header files |
145 | dnl ############################################################ | 146 | dnl ############################################################ |
146 | 147 | ||
@@ -150,10 +151,10 @@ index 3178462..5cbc8c2 100644 | |||
150 | if test "x$ORACLE_HOME" != "x"; then | 151 | if test "x$ORACLE_HOME" != "x"; then |
151 | smart_try_dir="${smart_try_dir} ${ORACLE_HOME}/include" | 152 | smart_try_dir="${smart_try_dir} ${ORACLE_HOME}/include" |
152 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac | 153 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac |
153 | index 4f9a890..e1cf811 100644 | 154 | index 8ac1022e89..d46c0f66bf 100644 |
154 | --- a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac | 155 | --- a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac |
155 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac | 156 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac |
156 | @@ -41,7 +41,7 @@ if test x$with_[]modname != xno; then | 157 | @@ -45,7 +45,7 @@ if test x$with_[]modname != xno; then |
157 | esac ] | 158 | esac ] |
158 | ) | 159 | ) |
159 | 160 | ||
@@ -162,7 +163,7 @@ index 4f9a890..e1cf811 100644 | |||
162 | FR_SMART_CHECK_INCLUDE(libpq-fe.h) | 163 | FR_SMART_CHECK_INCLUDE(libpq-fe.h) |
163 | if test "x$ac_cv_header_libpqmfe_h" != "xyes"; then | 164 | if test "x$ac_cv_header_libpqmfe_h" != "xyes"; then |
164 | fail="$fail libpq-fe.h" | 165 | fail="$fail libpq-fe.h" |
165 | @@ -76,7 +76,7 @@ if test x$with_[]modname != xno; then | 166 | @@ -94,7 +94,7 @@ if test x$with_[]modname != xno; then |
166 | ]) | 167 | ]) |
167 | fi | 168 | fi |
168 | 169 | ||
@@ -172,10 +173,10 @@ index 4f9a890..e1cf811 100644 | |||
172 | if test "x$ac_cv_lib_pq_PQconnectdb" != "xyes"; then | 173 | if test "x$ac_cv_lib_pq_PQconnectdb" != "xyes"; then |
173 | fail="$fail libpq" | 174 | fail="$fail libpq" |
174 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac | 175 | diff --git a/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac |
175 | index 3545387..c543ed4 100644 | 176 | index f10279fe1f..0081a338c8 100644 |
176 | --- a/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac | 177 | --- a/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac |
177 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac | 178 | +++ b/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac |
178 | @@ -57,14 +57,14 @@ if test x$with_[]modname != xno; then | 179 | @@ -61,14 +61,14 @@ if test x$with_[]modname != xno; then |
179 | esac]) | 180 | esac]) |
180 | 181 | ||
181 | dnl Check for SQLConnect in -lodbc | 182 | dnl Check for SQLConnect in -lodbc |
@@ -193,5 +194,5 @@ index 3545387..c543ed4 100644 | |||
193 | if test "x$ac_cv_header_sql_h" != xyes; then | 194 | if test "x$ac_cv_header_sql_h" != xyes; then |
194 | fail="$fail sql.h" | 195 | fail="$fail sql.h" |
195 | -- | 196 | -- |
196 | 1.9.1 | 197 | 2.25.1 |
197 | 198 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-rlm_python-add-PY_INC_DIR.patch b/meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch index 675940dd6c..cb71fb1373 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-rlm_python-add-PY_INC_DIR.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch | |||
@@ -1,14 +1,14 @@ | |||
1 | From a0bf65e04d2bbd3271cab94bd5ac93f8e877bfc5 Mon Sep 17 00:00:00 2001 | 1 | From e4ff7a2a9834e2589bc7bdda4b74f5bc962b15e6 Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Wed, 27 Jan 2016 05:07:19 -0500 | 3 | Date: Wed, 27 Jan 2016 05:07:19 -0500 |
4 | Subject: [PATCH] rlm_python: add PY_INC_DIR in search dir | 4 | Subject: [PATCH] rlm_python: add PY_INC_DIR in search dir |
5 | 5 | ||
6 | Upstream-Status: Pending | ||
7 | |||
8 | configure option --with-rlm-python-include-dir is used to set | 6 | configure option --with-rlm-python-include-dir is used to set |
9 | PY_INC_DIR which is never used and it fails to find Python.h, | 7 | PY_INC_DIR which is never used and it fails to find Python.h, |
10 | so add it into search dir to fix it. | 8 | so add it into search dir to fix it. |
11 | 9 | ||
10 | Upstream-Status: Inappropriate [embedded specific] | ||
11 | |||
12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | 13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
14 | --- | 14 | --- |
@@ -16,10 +16,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
17 | 17 | ||
18 | diff --git a/src/modules/rlm_python/configure.ac b/src/modules/rlm_python/configure.ac | 18 | diff --git a/src/modules/rlm_python/configure.ac b/src/modules/rlm_python/configure.ac |
19 | index 831a33a..c3792d8 100644 | 19 | index 08ecb62518..d5c0944ff1 100644 |
20 | --- a/src/modules/rlm_python/configure.ac | 20 | --- a/src/modules/rlm_python/configure.ac |
21 | +++ b/src/modules/rlm_python/configure.ac | 21 | +++ b/src/modules/rlm_python/configure.ac |
22 | @@ -93,7 +93,7 @@ if test x$with_[]modname != xno; then | 22 | @@ -98,7 +98,7 @@ if test x$with_[]modname != xno; then |
23 | 23 | ||
24 | old_CFLAGS=$CFLAGS | 24 | old_CFLAGS=$CFLAGS |
25 | CFLAGS="$CFLAGS $PY_CFLAGS" | 25 | CFLAGS="$CFLAGS $PY_CFLAGS" |
@@ -29,5 +29,5 @@ index 831a33a..c3792d8 100644 | |||
29 | CFLAGS=$old_CFLAGS | 29 | CFLAGS=$old_CFLAGS |
30 | 30 | ||
31 | -- | 31 | -- |
32 | 2.10.2 | 32 | 2.25.1 |
33 | 33 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-do-not-use-jlibtool.patch b/meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch index 1954586b2b..559b857b63 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-do-not-use-jlibtool.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 16bf899447fc1524ffc3c79e1d35380e5285a552 Mon Sep 17 00:00:00 2001 | 1 | From d0fa5b259c2dc942d0a43a9cf1bfc32f40c184f9 Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Thu, 7 Jan 2016 22:37:30 -0800 | 3 | Date: Thu, 7 Jan 2016 22:37:30 -0800 |
4 | Subject: [PATCH] libtool: do not use jlibtool | 4 | Subject: [PATCH] libtool: do not use jlibtool |
@@ -7,7 +7,7 @@ jlibtool is hardcoded to be used but we need to use | |||
7 | our libtool, so fix the makfiles to make it compatible | 7 | our libtool, so fix the makfiles to make it compatible |
8 | with our libtool. | 8 | with our libtool. |
9 | 9 | ||
10 | Upstream-Status: Inappropriate [oe specific] | 10 | Upstream-Status: Inappropriate [embedded specific] |
11 | 11 | ||
12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | 13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
@@ -19,7 +19,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
19 | 4 files changed, 27 insertions(+), 15 deletions(-) | 19 | 4 files changed, 27 insertions(+), 15 deletions(-) |
20 | 20 | ||
21 | diff --git a/Make.inc.in b/Make.inc.in | 21 | diff --git a/Make.inc.in b/Make.inc.in |
22 | index 7a77625..fd8aa3e 100644 | 22 | index 05f82776ff..e78f3fe9dc 100644 |
23 | --- a/Make.inc.in | 23 | --- a/Make.inc.in |
24 | +++ b/Make.inc.in | 24 | +++ b/Make.inc.in |
25 | @@ -57,7 +57,7 @@ CPPFLAGS = @CPPFLAGS@ | 25 | @@ -57,7 +57,7 @@ CPPFLAGS = @CPPFLAGS@ |
@@ -31,7 +31,7 @@ index 7a77625..fd8aa3e 100644 | |||
31 | ACLOCAL = @ACLOCAL@ | 31 | ACLOCAL = @ACLOCAL@ |
32 | AUTOCONF = @AUTOCONF@ | 32 | AUTOCONF = @AUTOCONF@ |
33 | AUTOHEADER = @AUTOHEADER@ | 33 | AUTOHEADER = @AUTOHEADER@ |
34 | @@ -163,7 +163,7 @@ ANALYZE.c := @clang_path@ | 34 | @@ -168,7 +168,7 @@ ANALYZE.c := @clang_path@ |
35 | # | 35 | # |
36 | ifeq "$(USE_SHARED_LIBS)" "yes" | 36 | ifeq "$(USE_SHARED_LIBS)" "yes" |
37 | TESTBINDIR = ./$(BUILD_DIR)/bin/local | 37 | TESTBINDIR = ./$(BUILD_DIR)/bin/local |
@@ -41,10 +41,10 @@ index 7a77625..fd8aa3e 100644 | |||
41 | TESTBINDIR = ./$(BUILD_DIR)/bin | 41 | TESTBINDIR = ./$(BUILD_DIR)/bin |
42 | TESTBIN = ./$(BUILD_DIR)/bin | 42 | TESTBIN = ./$(BUILD_DIR)/bin |
43 | diff --git a/scripts/boiler.mk b/scripts/boiler.mk | 43 | diff --git a/scripts/boiler.mk b/scripts/boiler.mk |
44 | index bccec5e..926a13e 100644 | 44 | index 2ce0c18f34..567cc0f22f 100644 |
45 | --- a/scripts/boiler.mk | 45 | --- a/scripts/boiler.mk |
46 | +++ b/scripts/boiler.mk | 46 | +++ b/scripts/boiler.mk |
47 | @@ -266,6 +266,7 @@ define COMPILE_C_CMDS | 47 | @@ -272,6 +272,7 @@ define COMPILE_C_CMDS |
48 | $(Q)$(ECHO) CC $< | 48 | $(Q)$(ECHO) CC $< |
49 | $(Q)$(strip ${COMPILE.c} -o $@ -c -MD ${CPPFLAGS} ${CFLAGS} ${SRC_CFLAGS} ${INCDIRS} \ | 49 | $(Q)$(strip ${COMPILE.c} -o $@ -c -MD ${CPPFLAGS} ${CFLAGS} ${SRC_CFLAGS} ${INCDIRS} \ |
50 | $(addprefix -I, ${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} $<) | 50 | $(addprefix -I, ${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} $<) |
@@ -52,7 +52,7 @@ index bccec5e..926a13e 100644 | |||
52 | endef | 52 | endef |
53 | else | 53 | else |
54 | # | 54 | # |
55 | @@ -281,6 +282,7 @@ define COMPILE_C_CMDS | 55 | @@ -287,6 +288,7 @@ define COMPILE_C_CMDS |
56 | $(Q)cppcheck --enable=style -q ${CHECKFLAGS} $(filter -isystem%,${SRC_CFLAGS}) \ | 56 | $(Q)cppcheck --enable=style -q ${CHECKFLAGS} $(filter -isystem%,${SRC_CFLAGS}) \ |
57 | $(filter -I%,${SRC_CFLAGS}) $(filter -D%,${SRC_CFLAGS}) ${INCDIRS} \ | 57 | $(filter -I%,${SRC_CFLAGS}) $(filter -D%,${SRC_CFLAGS}) ${INCDIRS} \ |
58 | $(addprefix -I,${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} --suppress=variableScope --suppress=invalidscanf $< | 58 | $(addprefix -I,${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} --suppress=variableScope --suppress=invalidscanf $< |
@@ -61,7 +61,7 @@ index bccec5e..926a13e 100644 | |||
61 | endif | 61 | endif |
62 | 62 | ||
63 | diff --git a/scripts/install.mk b/scripts/install.mk | 63 | diff --git a/scripts/install.mk b/scripts/install.mk |
64 | index 9164115..e38c1ed 100644 | 64 | index 916411563b..e38c1ed697 100644 |
65 | --- a/scripts/install.mk | 65 | --- a/scripts/install.mk |
66 | +++ b/scripts/install.mk | 66 | +++ b/scripts/install.mk |
67 | @@ -46,7 +46,7 @@ define ADD_INSTALL_RULE.exe | 67 | @@ -46,7 +46,7 @@ define ADD_INSTALL_RULE.exe |
@@ -116,10 +116,10 @@ index 9164115..e38c1ed 100644 | |||
116 | 116 | ||
117 | 117 | ||
118 | diff --git a/scripts/libtool.mk b/scripts/libtool.mk | 118 | diff --git a/scripts/libtool.mk b/scripts/libtool.mk |
119 | index 57915e1..2cb2f7d 100644 | 119 | index 381127ec2d..e83d7e6ad7 100644 |
120 | --- a/scripts/libtool.mk | 120 | --- a/scripts/libtool.mk |
121 | +++ b/scripts/libtool.mk | 121 | +++ b/scripts/libtool.mk |
122 | @@ -55,7 +55,9 @@ ifeq "${LIBTOOL}" "JLIBTOOL" | 122 | @@ -60,7 +60,9 @@ ifeq "${LIBTOOL}" "JLIBTOOL" |
123 | # Tell GNU Make to use this value, rather than anything specified | 123 | # Tell GNU Make to use this value, rather than anything specified |
124 | # on the command line. | 124 | # on the command line. |
125 | override LIBTOOL := ${JLIBTOOL} | 125 | override LIBTOOL := ${JLIBTOOL} |
@@ -130,7 +130,7 @@ index 57915e1..2cb2f7d 100644 | |||
130 | 130 | ||
131 | # When using libtool, it produces a '.libs' directory. Ensure that it | 131 | # When using libtool, it produces a '.libs' directory. Ensure that it |
132 | # is removed on "make clean", too. | 132 | # is removed on "make clean", too. |
133 | @@ -69,11 +71,19 @@ clean: .libs_clean | 133 | @@ -74,11 +76,19 @@ clean: .libs_clean |
134 | # Re-define compilers and linkers | 134 | # Re-define compilers and linkers |
135 | # | 135 | # |
136 | OBJ_EXT = lo | 136 | OBJ_EXT = lo |
@@ -156,5 +156,5 @@ index 57915e1..2cb2f7d 100644 | |||
156 | 156 | ||
157 | # LIBTOOL_ENDINGS - Given a library ending in ".a" or ".so", replace that | 157 | # LIBTOOL_ENDINGS - Given a library ending in ".a" or ".so", replace that |
158 | -- | 158 | -- |
159 | 2.10.2 | 159 | 2.25.1 |
160 | 160 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-quoting-for-BUILT_WITH.patch b/meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch index b0929c4b07..9386675e46 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-quoting-for-BUILT_WITH.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Fix quoting for BUILD_WITH | 1 | From 3e701d6274924adaed568e22af2362aa5af1f055 Mon Sep 17 00:00:00 2001 |
2 | From: Peter Seebach <peter.seebach@windriver.com> | ||
3 | Date: Sun, 8 Jan 2023 23:01:28 +0800 | ||
4 | Subject: [PATCH] Fix quoting for BUILD_WITH | ||
2 | 5 | ||
3 | The escaped quotes are to make the -D values produce strings which | 6 | The escaped quotes are to make the -D values produce strings which |
4 | can be used to display these values. However, if the values are more | 7 | can be used to display these values. However, if the values are more |
@@ -16,7 +19,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
16 | 3 files changed, 3 insertions(+), 3 deletions(-) | 19 | 3 files changed, 3 insertions(+), 3 deletions(-) |
17 | 20 | ||
18 | diff --git a/src/main/libfreeradius-server.mk b/src/main/libfreeradius-server.mk | 21 | diff --git a/src/main/libfreeradius-server.mk b/src/main/libfreeradius-server.mk |
19 | index 4495f72..07c28f1 100644 | 22 | index 4495f72481..07c28f1968 100644 |
20 | --- a/src/main/libfreeradius-server.mk | 23 | --- a/src/main/libfreeradius-server.mk |
21 | +++ b/src/main/libfreeradius-server.mk | 24 | +++ b/src/main/libfreeradius-server.mk |
22 | @@ -18,5 +18,5 @@ SOURCES := conffile.c \ | 25 | @@ -18,5 +18,5 @@ SOURCES := conffile.c \ |
@@ -27,7 +30,7 @@ index 4495f72..07c28f1 100644 | |||
27 | +SRC_CFLAGS += -DBUILT_WITH_CPPFLAGS="\"$(CPPFLAGS)\"" -DBUILT_WITH_CFLAGS="\"$(CFLAGS)\"" -DBUILT_WITH_LDFLAGS="\"$(LDFLAGS)\"" -DBUILT_WITH_LIBS="\"$(LIBS)\"" | 30 | +SRC_CFLAGS += -DBUILT_WITH_CPPFLAGS="\"$(CPPFLAGS)\"" -DBUILT_WITH_CFLAGS="\"$(CFLAGS)\"" -DBUILT_WITH_LDFLAGS="\"$(LDFLAGS)\"" -DBUILT_WITH_LIBS="\"$(LIBS)\"" |
28 | endif | 31 | endif |
29 | diff --git a/src/main/unittest.mk b/src/main/unittest.mk | 32 | diff --git a/src/main/unittest.mk b/src/main/unittest.mk |
30 | index 09f3938..ed33952 100644 | 33 | index edd4f133a7..b5b44d5e11 100644 |
31 | --- a/src/main/unittest.mk | 34 | --- a/src/main/unittest.mk |
32 | +++ b/src/main/unittest.mk | 35 | +++ b/src/main/unittest.mk |
33 | @@ -21,5 +21,5 @@ TGT_PREREQS += libfreeradius-eap.a | 36 | @@ -21,5 +21,5 @@ TGT_PREREQS += libfreeradius-eap.a |
@@ -38,7 +41,7 @@ index 09f3938..ed33952 100644 | |||
38 | +SRC_CFLAGS += -DBUILT_WITH_CPPFLAGS="\"$(CPPFLAGS)\"" -DBUILT_WITH_CFLAGS="\"$(CFLAGS)\"" -DBUILT_WITH_LDFLAGS="\"$(LDFLAGS)\"" -DBUILT_WITH_LIBS="\"$(LIBS)\"" | 41 | +SRC_CFLAGS += -DBUILT_WITH_CPPFLAGS="\"$(CPPFLAGS)\"" -DBUILT_WITH_CFLAGS="\"$(CFLAGS)\"" -DBUILT_WITH_LDFLAGS="\"$(LDFLAGS)\"" -DBUILT_WITH_LIBS="\"$(LIBS)\"" |
39 | endif | 42 | endif |
40 | diff --git a/src/modules/rlm_eap/radeapclient.mk b/src/modules/rlm_eap/radeapclient.mk | 43 | diff --git a/src/modules/rlm_eap/radeapclient.mk b/src/modules/rlm_eap/radeapclient.mk |
41 | index 6068f54..7d3c556 100644 | 44 | index 6068f54813..7d3c55625b 100644 |
42 | --- a/src/modules/rlm_eap/radeapclient.mk | 45 | --- a/src/modules/rlm_eap/radeapclient.mk |
43 | +++ b/src/modules/rlm_eap/radeapclient.mk | 46 | +++ b/src/modules/rlm_eap/radeapclient.mk |
44 | @@ -23,7 +23,7 @@ SRC_CFLAGS += -DWITH_EAPCLIENT | 47 | @@ -23,7 +23,7 @@ SRC_CFLAGS += -DWITH_EAPCLIENT |
@@ -51,5 +54,5 @@ index 6068f54..7d3c556 100644 | |||
51 | 54 | ||
52 | endif | 55 | endif |
53 | -- | 56 | -- |
54 | 2.10.2 | 57 | 2.25.1 |
55 | 58 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-error-for-expansion-of-macro.patch b/meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch index af1bff051f..051b66af8f 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-error-for-expansion-of-macro.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 5b6d8b14f2696fcf1dca119212f9d0a0fa04defd Mon Sep 17 00:00:00 2001 | 1 | From 30ce5ccd62446349d432ff65d3fe8d46872423c8 Mon Sep 17 00:00:00 2001 |
2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
3 | Date: Wed, 18 Jan 2017 14:59:39 +0800 | 3 | Date: Wed, 18 Jan 2017 14:59:39 +0800 |
4 | Subject: [PATCH] fix error for expansion of macro in thread.h | 4 | Subject: [PATCH] fix error for expansion of macro in thread.h |
@@ -22,7 +22,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
22 | 1 file changed, 5 insertions(+), 5 deletions(-) | 22 | 1 file changed, 5 insertions(+), 5 deletions(-) |
23 | 23 | ||
24 | diff --git a/src/include/threads.h b/src/include/threads.h | 24 | diff --git a/src/include/threads.h b/src/include/threads.h |
25 | index e36d81d..2bcb6aa 100644 | 25 | index e36d81dac0..2bcb6aadcb 100644 |
26 | --- a/src/include/threads.h | 26 | --- a/src/include/threads.h |
27 | +++ b/src/include/threads.h | 27 | +++ b/src/include/threads.h |
28 | @@ -89,7 +89,7 @@ static _t __fr_thread_local_init_##_n(pthread_destructor_t func)\ | 28 | @@ -89,7 +89,7 @@ static _t __fr_thread_local_init_##_n(pthread_destructor_t func)\ |
@@ -57,5 +57,5 @@ index e36d81d..2bcb6aa 100644 | |||
57 | #endif | 57 | #endif |
58 | #endif | 58 | #endif |
59 | -- | 59 | -- |
60 | 2.10.2 | 60 | 2.25.1 |
61 | 61 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch b/meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch index db8caab12e..69125eb3cb 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/0001-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 66e8bcdcca8971b5c43c31755d56d7f675d8b5ff Mon Sep 17 00:00:00 2001 | 1 | From f0e764826e3a85488047f7f4e94ebf91460d2c12 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 16 Jun 2017 20:10:49 -0700 | 3 | Date: Fri, 16 Jun 2017 20:10:49 -0700 |
4 | Subject: [PATCH] rlm_mschap: Use includedir instead of hardcoding /usr/include | 4 | Subject: [PATCH] rlm_mschap: Use includedir instead of hardcoding /usr/include |
@@ -13,12 +13,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
13 | src/modules/rlm_mschap/configure.ac | 2 +- | 13 | src/modules/rlm_mschap/configure.ac | 2 +- |
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 15 | ||
16 | Index: freeradius-server-3.0.14/src/modules/rlm_mschap/configure.ac | 16 | diff --git a/src/modules/rlm_mschap/configure.ac b/src/modules/rlm_mschap/configure.ac |
17 | =================================================================== | 17 | index 0fd105d7e6..6ab15509e5 100644 |
18 | --- freeradius-server-3.0.14.orig/src/modules/rlm_mschap/configure.ac | 18 | --- a/src/modules/rlm_mschap/configure.ac |
19 | +++ freeradius-server-3.0.14/src/modules/rlm_mschap/configure.ac | 19 | +++ b/src/modules/rlm_mschap/configure.ac |
20 | @@ -72,7 +72,7 @@ if test x$with_[]modname != xno; then | 20 | @@ -75,7 +75,7 @@ if test x$with_[]modname != xno; then |
21 | mod_ldflags="-framework DirectoryService" | 21 | mod_ldflags="-F /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks -framework DirectoryService" |
22 | fi | 22 | fi |
23 | 23 | ||
24 | - smart_try_dir="$winbind_include_dir /usr/include/samba-4.0" | 24 | - smart_try_dir="$winbind_include_dir /usr/include/samba-4.0" |
@@ -26,3 +26,6 @@ Index: freeradius-server-3.0.14/src/modules/rlm_mschap/configure.ac | |||
26 | FR_SMART_CHECK_INCLUDE(wbclient.h, [#include <stdint.h> | 26 | FR_SMART_CHECK_INCLUDE(wbclient.h, [#include <stdint.h> |
27 | #include <stdbool.h>]) | 27 | #include <stdbool.h>]) |
28 | if test "x$ac_cv_header_wbclient_h" != "xyes"; then | 28 | if test "x$ac_cv_header_wbclient_h" != "xyes"; then |
29 | -- | ||
30 | 2.25.1 | ||
31 | |||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-raddb-certs-Makefile-fix-the-existed-certificate-err.patch b/meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch index 669f363e72..cbac989284 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/0001-raddb-certs-Makefile-fix-the-existed-certificate-err.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 084f5467672f2ae37003b77e8f8706772f3da3ec Mon Sep 17 00:00:00 2001 | 1 | From 0f9f18fc330fe88080be13e43f300fbf7ba4a85a Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Mon, 13 Jul 2020 07:01:45 +0000 | 3 | Date: Mon, 13 Jul 2020 07:01:45 +0000 |
4 | Subject: [PATCH] raddb/certs/Makefile: fix the existed certificate error | 4 | Subject: [PATCH] raddb/certs/Makefile: fix the existed certificate error |
@@ -29,13 +29,13 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
29 | 1 file changed, 2 insertions(+), 2 deletions(-) | 29 | 1 file changed, 2 insertions(+), 2 deletions(-) |
30 | 30 | ||
31 | diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile | 31 | diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile |
32 | index 5cbfd467ce..77eec9baa1 100644 | 32 | index c9fbc9e864..d064fe252d 100644 |
33 | --- a/raddb/certs/Makefile | 33 | --- a/raddb/certs/Makefile |
34 | +++ b/raddb/certs/Makefile | 34 | +++ b/raddb/certs/Makefile |
35 | @@ -92,7 +92,7 @@ server.csr server.key: server.cnf | 35 | @@ -92,7 +92,7 @@ server.csr server.key: server.cnf |
36 | chmod g+r server.key | 36 | chmod g+r server.key |
37 | 37 | ||
38 | server.crt: server.csr ca.key ca.pem | 38 | server.crt: ca.key ca.pem server.csr |
39 | - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf | 39 | - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf |
40 | + @[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf | 40 | + @[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf |
41 | 41 | ||
@@ -44,12 +44,12 @@ index 5cbfd467ce..77eec9baa1 100644 | |||
44 | @@ -117,7 +117,7 @@ client.csr client.key: client.cnf | 44 | @@ -117,7 +117,7 @@ client.csr client.key: client.cnf |
45 | chmod g+r client.key | 45 | chmod g+r client.key |
46 | 46 | ||
47 | client.crt: client.csr ca.pem ca.key | 47 | client.crt: ca.key ca.pem client.csr |
48 | - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf | 48 | - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf |
49 | + @[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf | 49 | + @[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf |
50 | 50 | ||
51 | client.p12: client.crt | 51 | client.p12: client.crt |
52 | $(OPENSSL) pkcs12 -export -in client.crt -inkey client.key -out client.p12 -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) | 52 | $(OPENSSL) pkcs12 -export -in client.crt -inkey client.key -out client.p12 -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) |
53 | -- | 53 | -- |
54 | 2.26.2 | 54 | 2.25.1 |
55 | 55 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-raddb-certs-Makefile-fix-the-occasional-verification.patch b/meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch index dce0427e1a..287e47adcc 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/0001-raddb-certs-Makefile-fix-the-occasional-verification.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 3eda5d35fbaf66ed6bdc86ada4320a0a18681b7e Mon Sep 17 00:00:00 2001 | 1 | From bb1cb2ffc7a31c0a2bb2de51ef82d304b0a107c3 Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Wed, 5 Aug 2020 07:23:11 +0000 | 3 | Date: Wed, 5 Aug 2020 07:23:11 +0000 |
4 | Subject: [PATCH] raddb/certs/Makefile: fix the occasional verification failure | 4 | Subject: [PATCH] raddb/certs/Makefile: fix the occasional verification failure |
@@ -29,7 +29,7 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
29 | 1 file changed, 15 insertions(+), 15 deletions(-) | 29 | 1 file changed, 15 insertions(+), 15 deletions(-) |
30 | 30 | ||
31 | diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile | 31 | diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile |
32 | index 77eec9baa1..3dcb63fe71 100644 | 32 | index d064fe252d..86f4547804 100644 |
33 | --- a/raddb/certs/Makefile | 33 | --- a/raddb/certs/Makefile |
34 | +++ b/raddb/certs/Makefile | 34 | +++ b/raddb/certs/Makefile |
35 | @@ -59,7 +59,7 @@ passwords.mk: server.cnf ca.cnf client.cnf inner-server.cnf | 35 | @@ -59,7 +59,7 @@ passwords.mk: server.cnf ca.cnf client.cnf inner-server.cnf |
@@ -71,7 +71,7 @@ index 77eec9baa1..3dcb63fe71 100644 | |||
71 | + @[ -f server.csr ] || $(OPENSSL) req -new -out server.csr -keyout server.key -config ./server.cnf | 71 | + @[ -f server.csr ] || $(OPENSSL) req -new -out server.csr -keyout server.key -config ./server.cnf |
72 | chmod g+r server.key | 72 | chmod g+r server.key |
73 | 73 | ||
74 | server.crt: server.csr ca.key ca.pem | 74 | server.crt: ca.key ca.pem server.csr |
75 | @[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf | 75 | @[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf |
76 | 76 | ||
77 | server.p12: server.crt | 77 | server.p12: server.crt |
@@ -85,7 +85,7 @@ index 77eec9baa1..3dcb63fe71 100644 | |||
85 | chmod g+r server.pem | 85 | chmod g+r server.pem |
86 | 86 | ||
87 | .PHONY: server.vrfy | 87 | .PHONY: server.vrfy |
88 | @@ -113,18 +113,18 @@ server.vrfy: ca.pem | 88 | @@ -113,19 +113,19 @@ server.vrfy: ca.pem |
89 | # | 89 | # |
90 | ###################################################################### | 90 | ###################################################################### |
91 | client.csr client.key: client.cnf | 91 | client.csr client.key: client.cnf |
@@ -93,13 +93,14 @@ index 77eec9baa1..3dcb63fe71 100644 | |||
93 | + @[ -f client.csr ] || $(OPENSSL) req -new -out client.csr -keyout client.key -config ./client.cnf | 93 | + @[ -f client.csr ] || $(OPENSSL) req -new -out client.csr -keyout client.key -config ./client.cnf |
94 | chmod g+r client.key | 94 | chmod g+r client.key |
95 | 95 | ||
96 | client.crt: client.csr ca.pem ca.key | 96 | client.crt: ca.key ca.pem client.csr |
97 | @[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf | 97 | @[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf |
98 | 98 | ||
99 | client.p12: client.crt | 99 | client.p12: client.crt |
100 | - $(OPENSSL) pkcs12 -export -in client.crt -inkey client.key -out client.p12 -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) | 100 | - $(OPENSSL) pkcs12 -export -in client.crt -inkey client.key -out client.p12 -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) |
101 | + @[ -f client.p12 ] || $(OPENSSL) pkcs12 -export -in client.crt -inkey client.key -out client.p12 -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) | 101 | + @[ -f client.p12 ] || $(OPENSSL) pkcs12 -export -in client.crt -inkey client.key -out client.p12 -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) |
102 | chmod g+r client.p12 | 102 | chmod g+r client.p12 |
103 | cp client.p12 $(USER_NAME).p12 | ||
103 | 104 | ||
104 | client.pem: client.p12 | 105 | client.pem: client.p12 |
105 | - $(OPENSSL) pkcs12 -in client.p12 -out client.pem -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) | 106 | - $(OPENSSL) pkcs12 -in client.p12 -out client.pem -passin pass:$(PASSWORD_CLIENT) -passout pass:$(PASSWORD_CLIENT) |
@@ -107,7 +108,7 @@ index 77eec9baa1..3dcb63fe71 100644 | |||
107 | chmod g+r client.pem | 108 | chmod g+r client.pem |
108 | cp client.pem $(USER_NAME).pem | 109 | cp client.pem $(USER_NAME).pem |
109 | 110 | ||
110 | @@ -139,18 +139,18 @@ client.vrfy: ca.pem client.pem | 111 | @@ -140,18 +140,18 @@ client.vrfy: ca.pem client.pem |
111 | # | 112 | # |
112 | ###################################################################### | 113 | ###################################################################### |
113 | inner-server.csr inner-server.key: inner-server.cnf | 114 | inner-server.csr inner-server.key: inner-server.cnf |
@@ -115,7 +116,7 @@ index 77eec9baa1..3dcb63fe71 100644 | |||
115 | + @[ -f inner-server.csr] || $(OPENSSL) req -new -out inner-server.csr -keyout inner-server.key -config ./inner-server.cnf | 116 | + @[ -f inner-server.csr] || $(OPENSSL) req -new -out inner-server.csr -keyout inner-server.key -config ./inner-server.cnf |
116 | chmod g+r inner-server.key | 117 | chmod g+r inner-server.key |
117 | 118 | ||
118 | inner-server.crt: inner-server.csr ca.key ca.pem | 119 | inner-server.crt: ca.key ca.pem inner-server.csr |
119 | - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in inner-server.csr -key $(PASSWORD_CA) -out inner-server.crt -extensions xpserver_ext -extfile xpextensions -config ./inner-server.cnf | 120 | - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in inner-server.csr -key $(PASSWORD_CA) -out inner-server.crt -extensions xpserver_ext -extfile xpextensions -config ./inner-server.cnf |
120 | + @[ -f inner-server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in inner-server.csr -key $(PASSWORD_CA) -out inner-server.crt -extensions xpserver_ext -extfile xpextensions -config ./inner-server.cnf | 121 | + @[ -f inner-server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in inner-server.csr -key $(PASSWORD_CA) -out inner-server.crt -extensions xpserver_ext -extfile xpextensions -config ./inner-server.cnf |
121 | 122 | ||
@@ -131,5 +132,5 @@ index 77eec9baa1..3dcb63fe71 100644 | |||
131 | 132 | ||
132 | .PHONY: inner-server.vrfy | 133 | .PHONY: inner-server.vrfy |
133 | -- | 134 | -- |
134 | 2.26.2 | 135 | 2.25.1 |
135 | 136 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-workaround-error-with-autoconf-2.7.patch b/meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch index 80c571df98..17eadc7e59 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/0001-workaround-error-with-autoconf-2.7.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 3b4ba29c7c5800df87eecd65214244619e01162b Mon Sep 17 00:00:00 2001 | 1 | From c591da4a361496eec93625cf8c4f89bddfedaca7 Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Sun, 7 Feb 2021 16:02:36 +0800 | 3 | Date: Sun, 7 Feb 2021 16:02:36 +0800 |
4 | Subject: [PATCH] workaround error with autoconf 2.7 | 4 | Subject: [PATCH] Workaround error with autoconf 2.7 |
5 | 5 | ||
6 | While using autoconf 2.7, the AM_MISSING_PROG caused unexpected error: | 6 | While using autoconf 2.7, the AM_MISSING_PROG caused unexpected error: |
7 | ... | 7 | ... |
@@ -11,7 +11,7 @@ configure.ac: error: required file 'missing' not found | |||
11 | Since these tools were explicitly added by autotools bbclass, | 11 | Since these tools were explicitly added by autotools bbclass, |
12 | remove the testing to workaround the error with autoconf 2.7 | 12 | remove the testing to workaround the error with autoconf 2.7 |
13 | 13 | ||
14 | Upstream-Status: Inappropriate [oe specific] | 14 | Upstream-Status: Inappropriate [embedded specific] |
15 | 15 | ||
16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
17 | --- | 17 | --- |
@@ -19,10 +19,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
19 | 1 file changed, 8 deletions(-) | 19 | 1 file changed, 8 deletions(-) |
20 | 20 | ||
21 | diff --git a/configure.ac b/configure.ac | 21 | diff --git a/configure.ac b/configure.ac |
22 | index 609efb104b..2d761cf62c 100644 | 22 | index 263098f7fd..fc296832d8 100644 |
23 | --- a/configure.ac | 23 | --- a/configure.ac |
24 | +++ b/configure.ac | 24 | +++ b/configure.ac |
25 | @@ -693,14 +693,6 @@ fi | 25 | @@ -878,14 +878,6 @@ fi |
26 | 26 | ||
27 | AC_PATH_PROG(RUSERS, rusers, /usr/bin/rusers) | 27 | AC_PATH_PROG(RUSERS, rusers, /usr/bin/rusers) |
28 | 28 | ||
@@ -34,9 +34,9 @@ index 609efb104b..2d761cf62c 100644 | |||
34 | -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) | 34 | -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
35 | -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) | 35 | -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
36 | - | 36 | - |
37 | AC_PATH_PROG(LOCATE,locate) | ||
38 | AC_PATH_PROG(DIRNAME,dirname) | 37 | AC_PATH_PROG(DIRNAME,dirname) |
39 | AC_PATH_PROG(GREP,grep) | 38 | AC_PATH_PROG(GREP,grep) |
39 | |||
40 | -- | 40 | -- |
41 | 2.27.0 | 41 | 2.25.1 |
42 | 42 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/check-openssl-cmds-in-script-bootstrap.patch b/meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch index fcadae93a0..d1d0111607 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/check-openssl-cmds-in-script-bootstrap.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | bootstrap: check commands of openssl exist | 1 | From 78494ea005bd38324953b05176d6eb2c3f55af2c Mon Sep 17 00:00:00 2001 |
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Sun, 8 Jan 2023 23:21:24 +0800 | ||
4 | Subject: [PATCH] bootstrap: check commands of openssl exist | ||
2 | 5 | ||
3 | It calls openssl commands dhparam and pkcs12 in script bootstrap. These | 6 | It calls openssl commands dhparam and pkcs12 in script bootstrap. These |
4 | commands are configurable based on configure options 'no-dh' and | 7 | commands are configurable based on configure options 'no-dh' and |
@@ -18,7 +21,7 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com> | |||
18 | 1 file changed, 8 insertions(+) | 21 | 1 file changed, 8 insertions(+) |
19 | 22 | ||
20 | diff --git a/raddb/certs/bootstrap b/raddb/certs/bootstrap | 23 | diff --git a/raddb/certs/bootstrap b/raddb/certs/bootstrap |
21 | index 0f719aafd4..17feddbeeb 100755 | 24 | index 57de8cf0d7..4641c71700 100755 |
22 | --- a/raddb/certs/bootstrap | 25 | --- a/raddb/certs/bootstrap |
23 | +++ b/raddb/certs/bootstrap | 26 | +++ b/raddb/certs/bootstrap |
24 | @@ -13,6 +13,14 @@ | 27 | @@ -13,6 +13,14 @@ |
@@ -36,3 +39,6 @@ index 0f719aafd4..17feddbeeb 100755 | |||
36 | make -h > /dev/null 2>&1 | 39 | make -h > /dev/null 2>&1 |
37 | 40 | ||
38 | # | 41 | # |
42 | -- | ||
43 | 2.25.1 | ||
44 | |||
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-version.c-don-t-print-build-flags.patch b/meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch index 697205efe0..2d67fdef05 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/0001-version.c-don-t-print-build-flags.patch +++ b/meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch | |||
@@ -1,11 +1,11 @@ | |||
1 | From cbc64dcf6aa2a1be63f45ea6dd7d2c49b70a0bee Mon Sep 17 00:00:00 2001 | 1 | From cbbb62ddda5c189c225f96bf6b599b3b3e8c8252 Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Wed, 3 Aug 2022 16:44:29 +0800 | 3 | Date: Wed, 3 Aug 2022 16:44:29 +0800 |
4 | Subject: [PATCH] version.c: don't print build flags | 4 | Subject: [PATCH] version.c: don't print build flags |
5 | 5 | ||
6 | Don't print the build flags to avoid collecting the build environment info. | 6 | Don't print the build flags to avoid collecting the build environment info. |
7 | 7 | ||
8 | Upstream-Status: Inappropriate [oe specific] | 8 | Upstream-Status: Inappropriate [embedded specific] |
9 | 9 | ||
10 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 10 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
11 | --- | 11 | --- |
@@ -13,7 +13,7 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
13 | 1 file changed, 13 deletions(-) | 13 | 1 file changed, 13 deletions(-) |
14 | 14 | ||
15 | diff --git a/src/main/version.c b/src/main/version.c | 15 | diff --git a/src/main/version.c b/src/main/version.c |
16 | index 62972d9f53..cf81de72c9 100644 | 16 | index f1f1e87810..3ffcbb25a0 100644 |
17 | --- a/src/main/version.c | 17 | --- a/src/main/version.c |
18 | +++ b/src/main/version.c | 18 | +++ b/src/main/version.c |
19 | @@ -589,19 +589,6 @@ void version_print(void) | 19 | @@ -589,19 +589,6 @@ void version_print(void) |
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0017-add-python.m4-for-detecting-python-3.10.patch b/meta-networking/recipes-connectivity/freeradius/files/0017-add-python.m4-for-detecting-python-3.10.patch new file mode 100644 index 0000000000..62a4869c95 --- /dev/null +++ b/meta-networking/recipes-connectivity/freeradius/files/0017-add-python.m4-for-detecting-python-3.10.patch | |||
@@ -0,0 +1,427 @@ | |||
1 | From f1418e1b46cb1cbd130935b76f5c78c577d1ad28 Mon Sep 17 00:00:00 2001 | ||
2 | From: Matthew Newton <matthew-git@newtoncomputing.co.uk> | ||
3 | Date: Wed, 28 Sep 2022 23:49:32 +0100 | ||
4 | Subject: [PATCH] add python.m4 for detecting python > 3.10 | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | [https://github.com/FreeRADIUS/freeradius-server/commit/86584d2753829756cc73aadce5d48f703af472b1] | ||
8 | |||
9 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
10 | --- | ||
11 | src/modules/rlm_python3/configure.ac | 4 + | ||
12 | src/modules/rlm_python3/m4/python.m4 | 363 +++++++++++++++++++++++++++ | ||
13 | src/modules/rlm_python3/m4/runlog.m4 | 17 ++ | ||
14 | 3 files changed, 384 insertions(+) | ||
15 | create mode 100644 src/modules/rlm_python3/m4/python.m4 | ||
16 | create mode 100644 src/modules/rlm_python3/m4/runlog.m4 | ||
17 | |||
18 | diff --git a/src/modules/rlm_python3/configure.ac b/src/modules/rlm_python3/configure.ac | ||
19 | index bc0e97f9ba..90f2116e73 100644 | ||
20 | --- a/src/modules/rlm_python3/configure.ac | ||
21 | +++ b/src/modules/rlm_python3/configure.ac | ||
22 | @@ -3,6 +3,10 @@ AC_INIT(rlm_python3.c) | ||
23 | AC_REVISION($Revision$) | ||
24 | AC_DEFUN(modname,[rlm_python3]) | ||
25 | |||
26 | +m4_include([ax_compare_version.m4]) | ||
27 | +m4_include([runlog.m4]) | ||
28 | +m4_include([python.m4]) | ||
29 | + | ||
30 | AC_ARG_WITH([]modname, | ||
31 | [ --with-[]modname build []modname. (default=yes)]) | ||
32 | |||
33 | diff --git a/src/modules/rlm_python3/m4/python.m4 b/src/modules/rlm_python3/m4/python.m4 | ||
34 | new file mode 100644 | ||
35 | index 0000000000..78ca7635ab | ||
36 | --- /dev/null | ||
37 | +++ b/src/modules/rlm_python3/m4/python.m4 | ||
38 | @@ -0,0 +1,363 @@ | ||
39 | +## ------------------------ -*- Autoconf -*- | ||
40 | +## Python file handling | ||
41 | +## From Andrew Dalke | ||
42 | +## Updated by James Henstridge and other contributors. | ||
43 | +## ------------------------ | ||
44 | +# Copyright (C) 1999-2021 Free Software Foundation, Inc. | ||
45 | +# | ||
46 | +# This file is free software; the Free Software Foundation | ||
47 | +# gives unlimited permission to copy and/or distribute it, | ||
48 | +# with or without modifications, as long as this notice is preserved. | ||
49 | + | ||
50 | + | ||
51 | +# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | ||
52 | +# --------------------------------------------------------------------------- | ||
53 | +# Adds support for distributing Python modules and packages. To | ||
54 | +# install modules, copy them to $(pythondir), using the python_PYTHON | ||
55 | +# automake variable. To install a package with the same name as the | ||
56 | +# automake package, install to $(pkgpythondir), or use the | ||
57 | +# pkgpython_PYTHON automake variable. | ||
58 | +# | ||
59 | +# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as | ||
60 | +# locations to install python extension modules (shared libraries). | ||
61 | +# Another macro is required to find the appropriate flags to compile | ||
62 | +# extension modules. | ||
63 | +# | ||
64 | +# If your package is configured with a different prefix to python, | ||
65 | +# users will have to add the install directory to the PYTHONPATH | ||
66 | +# environment variable, or create a .pth file (see the python | ||
67 | +# documentation for details). | ||
68 | +# | ||
69 | +# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will | ||
70 | +# cause an error if the version of python installed on the system | ||
71 | +# doesn't meet the requirement. MINIMUM-VERSION should consist of | ||
72 | +# numbers and dots only. | ||
73 | +AC_DEFUN([AM_PATH_PYTHON], | ||
74 | + [ | ||
75 | + dnl Find a Python interpreter. Python versions prior to 2.0 are not | ||
76 | + dnl supported. (2.0 was released on October 16, 2000). | ||
77 | + m4_define_default([_AM_PYTHON_INTERPRETER_LIST], | ||
78 | +[python python2 python3 dnl | ||
79 | + python3.11 python3.10 dnl | ||
80 | + python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl | ||
81 | + python3.2 python3.1 python3.0 dnl | ||
82 | + python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl | ||
83 | + python2.0]) | ||
84 | + | ||
85 | + AC_ARG_VAR([PYTHON], [the Python interpreter]) | ||
86 | + | ||
87 | + m4_if([$1],[],[ | ||
88 | + dnl No version check is needed. | ||
89 | + # Find any Python interpreter. | ||
90 | + if test -z "$PYTHON"; then | ||
91 | + AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) | ||
92 | + fi | ||
93 | + am_display_PYTHON=python | ||
94 | + ], [ | ||
95 | + dnl A version check is needed. | ||
96 | + if test -n "$PYTHON"; then | ||
97 | + # If the user set $PYTHON, use it and don't search something else. | ||
98 | + AC_MSG_CHECKING([whether $PYTHON version is >= $1]) | ||
99 | + AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], | ||
100 | + [AC_MSG_RESULT([yes])], | ||
101 | + [AC_MSG_RESULT([no]) | ||
102 | + AC_MSG_ERROR([Python interpreter is too old])]) | ||
103 | + am_display_PYTHON=$PYTHON | ||
104 | + else | ||
105 | + # Otherwise, try each interpreter until we find one that satisfies | ||
106 | + # VERSION. | ||
107 | + AC_CACHE_CHECK([for a Python interpreter with version >= $1], | ||
108 | + [am_cv_pathless_PYTHON],[ | ||
109 | + for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do | ||
110 | + test "$am_cv_pathless_PYTHON" = none && break | ||
111 | + AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) | ||
112 | + done]) | ||
113 | + # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. | ||
114 | + if test "$am_cv_pathless_PYTHON" = none; then | ||
115 | + PYTHON=: | ||
116 | + else | ||
117 | + AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) | ||
118 | + fi | ||
119 | + am_display_PYTHON=$am_cv_pathless_PYTHON | ||
120 | + fi | ||
121 | + ]) | ||
122 | + | ||
123 | + if test "$PYTHON" = :; then | ||
124 | + dnl Run any user-specified action, or abort. | ||
125 | + m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) | ||
126 | + else | ||
127 | + | ||
128 | + dnl Query Python for its version number. Although site.py simply uses | ||
129 | + dnl sys.version[:3], printing that failed with Python 3.10, since the | ||
130 | + dnl trailing zero was eliminated. So now we output just the major | ||
131 | + dnl and minor version numbers, as numbers. Apparently the tertiary | ||
132 | + dnl version is not of interest. | ||
133 | + dnl | ||
134 | + AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], | ||
135 | + [am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[[:2]])"`]) | ||
136 | + AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) | ||
137 | + | ||
138 | + dnl At times, e.g., when building shared libraries, you may want | ||
139 | + dnl to know which OS platform Python thinks this is. | ||
140 | + dnl | ||
141 | + AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], | ||
142 | + [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`]) | ||
143 | + AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) | ||
144 | + | ||
145 | + dnl emacs-page | ||
146 | + dnl If --with-python-sys-prefix is given, use the values of sys.prefix | ||
147 | + dnl and sys.exec_prefix for the corresponding values of PYTHON_PREFIX | ||
148 | + dnl and PYTHON_EXEC_PREFIX. Otherwise, use the GNU ${prefix} and | ||
149 | + dnl ${exec_prefix} variables. | ||
150 | + dnl | ||
151 | + dnl The two are made distinct variables so they can be overridden if | ||
152 | + dnl need be, although general consensus is that you shouldn't need | ||
153 | + dnl this separation. | ||
154 | + dnl | ||
155 | + dnl Also allow directly setting the prefixes via configure options, | ||
156 | + dnl overriding any default. | ||
157 | + dnl | ||
158 | + if test "x$prefix" = xNONE; then | ||
159 | + am__usable_prefix=$ac_default_prefix | ||
160 | + else | ||
161 | + am__usable_prefix=$prefix | ||
162 | + fi | ||
163 | + | ||
164 | + # Allow user to request using sys.* values from Python, | ||
165 | + # instead of the GNU $prefix values. | ||
166 | + AC_ARG_WITH([python-sys-prefix], | ||
167 | + [AS_HELP_STRING([--with-python-sys-prefix], | ||
168 | + [use Python's sys.prefix and sys.exec_prefix values])], | ||
169 | + [am_use_python_sys=:], | ||
170 | + [am_use_python_sys=false]) | ||
171 | + | ||
172 | + # Allow user to override whatever the default Python prefix is. | ||
173 | + AC_ARG_WITH([python_prefix], | ||
174 | + [AS_HELP_STRING([--with-python_prefix], | ||
175 | + [override the default PYTHON_PREFIX])], | ||
176 | + [am_python_prefix_subst=$withval | ||
177 | + am_cv_python_prefix=$withval | ||
178 | + AC_MSG_CHECKING([for explicit $am_display_PYTHON prefix]) | ||
179 | + AC_MSG_RESULT([$am_cv_python_prefix])], | ||
180 | + [ | ||
181 | + if $am_use_python_sys; then | ||
182 | + # using python sys.prefix value, not GNU | ||
183 | + AC_CACHE_CHECK([for python default $am_display_PYTHON prefix], | ||
184 | + [am_cv_python_prefix], | ||
185 | + [am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`]) | ||
186 | + | ||
187 | + dnl If sys.prefix is a subdir of $prefix, replace the literal value of | ||
188 | + dnl $prefix with a variable reference so it can be overridden. | ||
189 | + case $am_cv_python_prefix in | ||
190 | + $am__usable_prefix*) | ||
191 | + am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` | ||
192 | + am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` | ||
193 | + ;; | ||
194 | + *) | ||
195 | + am_python_prefix_subst=$am_cv_python_prefix | ||
196 | + ;; | ||
197 | + esac | ||
198 | + else # using GNU prefix value, not python sys.prefix | ||
199 | + am_python_prefix_subst='${prefix}' | ||
200 | + am_python_prefix=$am_python_prefix_subst | ||
201 | + AC_MSG_CHECKING([for GNU default $am_display_PYTHON prefix]) | ||
202 | + AC_MSG_RESULT([$am_python_prefix]) | ||
203 | + fi]) | ||
204 | + # Substituting python_prefix_subst value. | ||
205 | + AC_SUBST([PYTHON_PREFIX], [$am_python_prefix_subst]) | ||
206 | + | ||
207 | + # emacs-page Now do it all over again for Python exec_prefix, but with yet | ||
208 | + # another conditional: fall back to regular prefix if that was specified. | ||
209 | + AC_ARG_WITH([python_exec_prefix], | ||
210 | + [AS_HELP_STRING([--with-python_exec_prefix], | ||
211 | + [override the default PYTHON_EXEC_PREFIX])], | ||
212 | + [am_python_exec_prefix_subst=$withval | ||
213 | + am_cv_python_exec_prefix=$withval | ||
214 | + AC_MSG_CHECKING([for explicit $am_display_PYTHON exec_prefix]) | ||
215 | + AC_MSG_RESULT([$am_cv_python_exec_prefix])], | ||
216 | + [ | ||
217 | + # no explicit --with-python_exec_prefix, but if | ||
218 | + # --with-python_prefix was given, use its value for python_exec_prefix too. | ||
219 | + AS_IF([test -n "$with_python_prefix"], | ||
220 | + [am_python_exec_prefix_subst=$with_python_prefix | ||
221 | + am_cv_python_exec_prefix=$with_python_prefix | ||
222 | + AC_MSG_CHECKING([for python_prefix-given $am_display_PYTHON exec_prefix]) | ||
223 | + AC_MSG_RESULT([$am_cv_python_exec_prefix])], | ||
224 | + [ | ||
225 | + # Set am__usable_exec_prefix whether using GNU or Python values, | ||
226 | + # since we use that variable for pyexecdir. | ||
227 | + if test "x$exec_prefix" = xNONE; then | ||
228 | + am__usable_exec_prefix=$am__usable_prefix | ||
229 | + else | ||
230 | + am__usable_exec_prefix=$exec_prefix | ||
231 | + fi | ||
232 | + # | ||
233 | + if $am_use_python_sys; then # using python sys.exec_prefix, not GNU | ||
234 | + AC_CACHE_CHECK([for python default $am_display_PYTHON exec_prefix], | ||
235 | + [am_cv_python_exec_prefix], | ||
236 | + [am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`]) | ||
237 | + dnl If sys.exec_prefix is a subdir of $exec_prefix, replace the | ||
238 | + dnl literal value of $exec_prefix with a variable reference so it can | ||
239 | + dnl be overridden. | ||
240 | + case $am_cv_python_exec_prefix in | ||
241 | + $am__usable_exec_prefix*) | ||
242 | + am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` | ||
243 | + am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` | ||
244 | + ;; | ||
245 | + *) | ||
246 | + am_python_exec_prefix_subst=$am_cv_python_exec_prefix | ||
247 | + ;; | ||
248 | + esac | ||
249 | + else # using GNU $exec_prefix, not python sys.exec_prefix | ||
250 | + am_python_exec_prefix_subst='${exec_prefix}' | ||
251 | + am_python_exec_prefix=$am_python_exec_prefix_subst | ||
252 | + AC_MSG_CHECKING([for GNU default $am_display_PYTHON exec_prefix]) | ||
253 | + AC_MSG_RESULT([$am_python_exec_prefix]) | ||
254 | + fi])]) | ||
255 | + # Substituting python_exec_prefix_subst. | ||
256 | + AC_SUBST([PYTHON_EXEC_PREFIX], [$am_python_exec_prefix_subst]) | ||
257 | + | ||
258 | + # Factor out some code duplication into this shell variable. | ||
259 | + am_python_setup_sysconfig="\ | ||
260 | +import sys | ||
261 | +# Prefer sysconfig over distutils.sysconfig, for better compatibility | ||
262 | +# with python 3.x. See automake bug#10227. | ||
263 | +try: | ||
264 | + import sysconfig | ||
265 | +except ImportError: | ||
266 | + can_use_sysconfig = 0 | ||
267 | +else: | ||
268 | + can_use_sysconfig = 1 | ||
269 | +# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: | ||
270 | +# <https://github.com/pypa/virtualenv/issues/118> | ||
271 | +try: | ||
272 | + from platform import python_implementation | ||
273 | + if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7': | ||
274 | + can_use_sysconfig = 0 | ||
275 | +except ImportError: | ||
276 | + pass" | ||
277 | + | ||
278 | + dnl emacs-page Set up 4 directories: | ||
279 | + | ||
280 | + dnl 1. pythondir: where to install python scripts. This is the | ||
281 | + dnl site-packages directory, not the python standard library | ||
282 | + dnl directory like in previous automake betas. This behavior | ||
283 | + dnl is more consistent with lispdir.m4 for example. | ||
284 | + dnl Query distutils for this directory. | ||
285 | + dnl | ||
286 | + AC_CACHE_CHECK([for $am_display_PYTHON script directory (pythondir)], | ||
287 | + [am_cv_python_pythondir], | ||
288 | + [if test "x$am_cv_python_prefix" = x; then | ||
289 | + am_py_prefix=$am__usable_prefix | ||
290 | + else | ||
291 | + am_py_prefix=$am_cv_python_prefix | ||
292 | + fi | ||
293 | + am_cv_python_pythondir=`$PYTHON -c " | ||
294 | +$am_python_setup_sysconfig | ||
295 | +if can_use_sysconfig: | ||
296 | + if hasattr(sysconfig, 'get_default_scheme'): | ||
297 | + scheme = sysconfig.get_default_scheme() | ||
298 | + else: | ||
299 | + scheme = sysconfig._get_default_scheme() | ||
300 | + if scheme == 'posix_local': | ||
301 | + # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ | ||
302 | + scheme = 'posix_prefix' | ||
303 | + sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) | ||
304 | +else: | ||
305 | + from distutils import sysconfig | ||
306 | + sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') | ||
307 | +sys.stdout.write(sitedir)"` | ||
308 | + # | ||
309 | + case $am_cv_python_pythondir in | ||
310 | + $am_py_prefix*) | ||
311 | + am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` | ||
312 | + am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` | ||
313 | + ;; | ||
314 | + *) | ||
315 | + case $am_py_prefix in | ||
316 | + /usr|/System*) ;; | ||
317 | + *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" | ||
318 | + ;; | ||
319 | + esac | ||
320 | + ;; | ||
321 | + esac | ||
322 | + ]) | ||
323 | + AC_SUBST([pythondir], [$am_cv_python_pythondir]) | ||
324 | + | ||
325 | + dnl 2. pkgpythondir: $PACKAGE directory under pythondir. Was | ||
326 | + dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is | ||
327 | + dnl more consistent with the rest of automake. | ||
328 | + dnl | ||
329 | + AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) | ||
330 | + | ||
331 | + dnl 3. pyexecdir: directory for installing python extension modules | ||
332 | + dnl (shared libraries). | ||
333 | + dnl Query distutils for this directory. | ||
334 | + dnl | ||
335 | + AC_CACHE_CHECK([for $am_display_PYTHON extension module directory (pyexecdir)], | ||
336 | + [am_cv_python_pyexecdir], | ||
337 | + [if test "x$am_cv_python_exec_prefix" = x; then | ||
338 | + am_py_exec_prefix=$am__usable_exec_prefix | ||
339 | + else | ||
340 | + am_py_exec_prefix=$am_cv_python_exec_prefix | ||
341 | + fi | ||
342 | + am_cv_python_pyexecdir=`$PYTHON -c " | ||
343 | +$am_python_setup_sysconfig | ||
344 | +if can_use_sysconfig: | ||
345 | + if hasattr(sysconfig, 'get_default_scheme'): | ||
346 | + scheme = sysconfig.get_default_scheme() | ||
347 | + else: | ||
348 | + scheme = sysconfig._get_default_scheme() | ||
349 | + if scheme == 'posix_local': | ||
350 | + # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ | ||
351 | + scheme = 'posix_prefix' | ||
352 | + sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) | ||
353 | +else: | ||
354 | + from distutils import sysconfig | ||
355 | + sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') | ||
356 | +sys.stdout.write(sitedir)"` | ||
357 | + # | ||
358 | + case $am_cv_python_pyexecdir in | ||
359 | + $am_py_exec_prefix*) | ||
360 | + am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` | ||
361 | + am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` | ||
362 | + ;; | ||
363 | + *) | ||
364 | + case $am_py_exec_prefix in | ||
365 | + /usr|/System*) ;; | ||
366 | + *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" | ||
367 | + ;; | ||
368 | + esac | ||
369 | + ;; | ||
370 | + esac | ||
371 | + ]) | ||
372 | + AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) | ||
373 | + | ||
374 | + dnl 4. pkgpyexecdir: $(pyexecdir)/$(PACKAGE) | ||
375 | + dnl | ||
376 | + AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) | ||
377 | + | ||
378 | + dnl Run any user-specified action. | ||
379 | + $2 | ||
380 | + fi | ||
381 | +]) | ||
382 | + | ||
383 | + | ||
384 | +# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) | ||
385 | +# --------------------------------------------------------------------------- | ||
386 | +# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. | ||
387 | +# Run ACTION-IF-FALSE otherwise. | ||
388 | +# This test uses sys.hexversion instead of the string equivalent (first | ||
389 | +# word of sys.version), in order to cope with versions such as 2.2c1. | ||
390 | +# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000). | ||
391 | +AC_DEFUN([AM_PYTHON_CHECK_VERSION], | ||
392 | + [prog="import sys | ||
393 | +# split strings by '.' and convert to numeric. Append some zeros | ||
394 | +# because we need at least 4 digits for the hex conversion. | ||
395 | +# map returns an iterator in Python 3.0 and a list in 2.x | ||
396 | +minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] | ||
397 | +minverhex = 0 | ||
398 | +# xrange is not present in Python 3.0 and range returns an iterator | ||
399 | +for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] | ||
400 | +sys.exit(sys.hexversion < minverhex)" | ||
401 | + AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) | ||
402 | diff --git a/src/modules/rlm_python3/m4/runlog.m4 b/src/modules/rlm_python3/m4/runlog.m4 | ||
403 | new file mode 100644 | ||
404 | index 0000000000..690efc3258 | ||
405 | --- /dev/null | ||
406 | +++ b/src/modules/rlm_python3/m4/runlog.m4 | ||
407 | @@ -0,0 +1,17 @@ | ||
408 | +## -*- Autoconf -*- | ||
409 | +# Copyright (C) 2001-2018 Free Software Foundation, Inc. | ||
410 | +# | ||
411 | +# This file is free software; the Free Software Foundation | ||
412 | +# gives unlimited permission to copy and/or distribute it, | ||
413 | +# with or without modifications, as long as this notice is preserved. | ||
414 | + | ||
415 | +# AM_RUN_LOG(COMMAND) | ||
416 | +# ------------------- | ||
417 | +# Run COMMAND, save the exit status in ac_status, and log it. | ||
418 | +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | ||
419 | +AC_DEFUN([AM_RUN_LOG], | ||
420 | +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | ||
421 | + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | ||
422 | + ac_status=$? | ||
423 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
424 | + (exit $ac_status); }]) | ||
425 | -- | ||
426 | 2.25.1 | ||
427 | |||
diff --git a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb index b459412e04..4a23c9d906 100644 --- a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb +++ b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb | |||
@@ -16,28 +16,30 @@ DEPENDS = "openssl-native openssl libidn libtool libpcap libtalloc" | |||
16 | SRC_URI = "git://github.com/FreeRADIUS/freeradius-server.git;branch=v3.0.x;lfs=0;;protocol=https \ | 16 | SRC_URI = "git://github.com/FreeRADIUS/freeradius-server.git;branch=v3.0.x;lfs=0;;protocol=https \ |
17 | file://freeradius \ | 17 | file://freeradius \ |
18 | file://volatiles.58_radiusd \ | 18 | file://volatiles.58_radiusd \ |
19 | file://freeradius-enble-user-in-conf.patch \ | ||
20 | file://freeradius-configure.ac-allow-cross-compilation.patch \ | ||
21 | file://freeradius-libtool-detection.patch \ | ||
22 | file://freeradius-configure.ac-add-option-for-libcap.patch \ | ||
23 | file://freeradius-avoid-searching-host-dirs.patch \ | ||
24 | file://freeradius-rlm_python-add-PY_INC_DIR.patch \ | ||
25 | file://freeradius-libtool-do-not-use-jlibtool.patch \ | ||
26 | file://freeradius-fix-quoting-for-BUILT_WITH.patch \ | ||
27 | file://freeradius-fix-error-for-expansion-of-macro.patch \ | ||
28 | file://0001-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch \ | ||
29 | file://0001-raddb-certs-Makefile-fix-the-existed-certificate-err.patch \ | ||
30 | file://0001-raddb-certs-Makefile-fix-the-occasional-verification.patch \ | ||
31 | file://0001-workaround-error-with-autoconf-2.7.patch \ | ||
32 | file://radiusd.service \ | 19 | file://radiusd.service \ |
33 | file://radiusd-volatiles.conf \ | 20 | file://radiusd-volatiles.conf \ |
34 | file://check-openssl-cmds-in-script-bootstrap.patch \ | 21 | file://0001-Add-autogen.sh.patch \ |
35 | file://0001-version.c-don-t-print-build-flags.patch \ | 22 | file://0002-Enable-and-change-user-and-group-of-freeradius-serve.patch \ |
23 | file://0003-configure.ac-allow-cross-compilation.patch \ | ||
24 | file://0004-Fix-libtool-detection.patch \ | ||
25 | file://0005-configure.ac-add-option-for-libcap.patch \ | ||
26 | file://0006-Avoid-searching-host-dirs.patch \ | ||
27 | file://0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch \ | ||
28 | file://0008-libtool-do-not-use-jlibtool.patch \ | ||
29 | file://0009-Fix-quoting-for-BUILD_WITH.patch \ | ||
30 | file://0010-fix-error-for-expansion-of-macro-in-thread.h.patch \ | ||
31 | file://0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch \ | ||
32 | file://0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch \ | ||
33 | file://0013-raddb-certs-Makefile-fix-the-occasional-verification.patch \ | ||
34 | file://0014-Workaround-error-with-autoconf-2.7.patch \ | ||
35 | file://0015-bootstrap-check-commands-of-openssl-exist.patch \ | ||
36 | file://0016-version.c-don-t-print-build-flags.patch \ | ||
37 | file://0017-add-python.m4-for-detecting-python-3.10.patch \ | ||
36 | " | 38 | " |
37 | 39 | ||
38 | raddbdir="${sysconfdir}/${MLPREFIX}raddb" | 40 | raddbdir = "${sysconfdir}/${MLPREFIX}raddb" |
39 | 41 | ||
40 | SRCREV = "af428abda249b2279ba0582180985a9f6f4a144a" | 42 | SRCREV = "d956f683d37ea40e7977cc5907361f3e6988a439" |
41 | 43 | ||
42 | CVE_CHECK_IGNORE = "\ | 44 | CVE_CHECK_IGNORE = "\ |
43 | CVE-2002-0318 \ | 45 | CVE-2002-0318 \ |
@@ -118,7 +120,7 @@ inherit cpan-base python3-dir | |||
118 | 120 | ||
119 | # The modules subdirs also need to be processed by autoreconf. Use autogen.sh | 121 | # The modules subdirs also need to be processed by autoreconf. Use autogen.sh |
120 | # in order to handle the subdirs correctly. | 122 | # in order to handle the subdirs correctly. |
121 | do_configure () { | 123 | do_configure() { |
122 | ./autogen.sh | 124 | ./autogen.sh |
123 | 125 | ||
124 | # the configure of rlm_perl needs this to get correct | 126 | # the configure of rlm_perl needs this to get correct |
@@ -142,11 +144,9 @@ USERADD_PARAM:${PN} = "--system --no-create-home --shell /bin/false --user-group | |||
142 | 144 | ||
143 | do_install() { | 145 | do_install() { |
144 | rm -rf ${D} | 146 | rm -rf ${D} |
145 | mkdir -p ${D}/${sysconfdir}/logrotate.d | 147 | install -d ${D}/${sysconfdir}/logrotate.d |
146 | mkdir -p ${D}/${sysconfdir}/pam.d | 148 | install -d ${D}/${sysconfdir}/pam.d |
147 | mkdir -p ${D}/${sysconfdir}/init.d | 149 | install -d ${D}/${localstatedir}/lib/radiusd |
148 | mkdir -p ${D}/${localstatedir}/lib/radiusd | ||
149 | mkdir -p ${D}${sysconfdir}/default/volatiles | ||
150 | 150 | ||
151 | export LD_LIBRARY_PATH=${D}/${libdir} | 151 | export LD_LIBRARY_PATH=${D}/${libdir} |
152 | oe_runmake install R=${D} INSTALLSTRIP="" | 152 | oe_runmake install R=${D} INSTALLSTRIP="" |
@@ -157,16 +157,21 @@ do_install() { | |||
157 | # remove scripts that required Perl(DBI) | 157 | # remove scripts that required Perl(DBI) |
158 | rm -rf ${D}/${bindir}/radsqlrelay | 158 | rm -rf ${D}/${bindir}/radsqlrelay |
159 | 159 | ||
160 | cp -f ${WORKDIR}/freeradius ${D}/etc/init.d/radiusd | ||
161 | rm -f ${D}/${sbindir}/rc.radiusd | 160 | rm -f ${D}/${sbindir}/rc.radiusd |
162 | chmod +x ${D}/${sysconfdir}/init.d/radiusd | ||
163 | rm -rf ${D}/${localstatedir}/run/ | 161 | rm -rf ${D}/${localstatedir}/run/ |
164 | rm -rf ${D}/${localstatedir}/log/ | 162 | rm -rf ${D}/${localstatedir}/log/ |
165 | install -m 0644 ${WORKDIR}/volatiles.58_radiusd ${D}${sysconfdir}/default/volatiles/58_radiusd | ||
166 | 163 | ||
167 | chown -R radiusd:radiusd ${D}/${raddbdir} | 164 | chown -R radiusd:radiusd ${D}/${raddbdir} |
168 | chown -R radiusd:radiusd ${D}/${localstatedir}/lib/radiusd | 165 | chown -R radiusd:radiusd ${D}/${localstatedir}/lib/radiusd |
169 | 166 | ||
167 | # For sysvinit | ||
168 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
169 | install -d ${D}${sysconfdir}/init.d | ||
170 | install -d ${D}${sysconfdir}/default/volatiles | ||
171 | install -m 0755 ${WORKDIR}/freeradius ${D}/etc/init.d/radiusd | ||
172 | install -m 0644 ${WORKDIR}/volatiles.58_radiusd ${D}${sysconfdir}/default/volatiles/58_radiusd | ||
173 | fi | ||
174 | |||
170 | # For systemd | 175 | # For systemd |
171 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 176 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
172 | install -d ${D}${systemd_unitdir}/system | 177 | install -d ${D}${systemd_unitdir}/system |
@@ -180,7 +185,8 @@ do_install() { | |||
180 | install -d ${D}${sysconfdir}/tmpfiles.d/ | 185 | install -d ${D}${sysconfdir}/tmpfiles.d/ |
181 | install -m 0644 ${WORKDIR}/radiusd-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/radiusd.conf | 186 | install -m 0644 ${WORKDIR}/radiusd-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/radiusd.conf |
182 | fi | 187 | fi |
183 | oe_multilib_header freeradius/autoconf.h | 188 | |
189 | oe_multilib_header freeradius/autoconf.h | ||
184 | oe_multilib_header freeradius/missing.h | 190 | oe_multilib_header freeradius/missing.h |
185 | oe_multilib_header freeradius/radpaths.h | 191 | oe_multilib_header freeradius/radpaths.h |
186 | } | 192 | } |