summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2019-09-03 09:16:42 +0800
committerKhem Raj <raj.khem@gmail.com>2019-09-02 20:26:58 -0700
commit870e66d5f7dfa0409f8870b086e041056da1816e (patch)
tree0ec13c3bbbbfa0e937959d0ce137ea67a3bc7ef9 /meta-networking/recipes-connectivity
parent285b3fbf375056e509267c3adcb291bf52745dd9 (diff)
downloadmeta-openembedded-870e66d5f7dfa0409f8870b086e041056da1816e.tar.gz
freeradius: upgrade 3.0.17 -> 3.0.19
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0001-freeradius-correct-version-number-of-libssl-defect.patch44
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch24
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-issues-related-to-m4-include-path.patch186
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch21
-rw-r--r--meta-networking/recipes-connectivity/freeradius/freeradius_3.0.19.bb (renamed from meta-networking/recipes-connectivity/freeradius/freeradius_3.0.17.bb)15
5 files changed, 32 insertions, 258 deletions
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-freeradius-correct-version-number-of-libssl-defect.patch b/meta-networking/recipes-connectivity/freeradius/files/0001-freeradius-correct-version-number-of-libssl-defect.patch
deleted file mode 100644
index 9e1f5b2ef..000000000
--- a/meta-networking/recipes-connectivity/freeradius/files/0001-freeradius-correct-version-number-of-libssl-defect.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From fecf974b63f72eeb12d3b43522e948ca2bc704d4 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 11 Oct 2018 09:45:52 +0800
4Subject: [PATCH] freeradius: correct version number of libssl defect
5
6Upstream-Status: Backport [https://github.com/FreeRADIUS/freeradius-server
7 /commit/ad039347beca4ded297813a1da6eabb61fcf2ddd]
8
9upstream have refactored this part code into
10src/lib/tls/base.c, and problem also have fixed
11by commit ad039347beca
12
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
14---
15 src/main/tls.c | 8 ++++----
16 1 file changed, 4 insertions(+), 4 deletions(-)
17
18diff --git a/src/main/tls.c b/src/main/tls.c
19index acbfe79..d9c91f1 100644
20--- a/src/main/tls.c
21+++ b/src/main/tls.c
22@@ -72,15 +72,15 @@ typedef struct libssl_defect {
23 static libssl_defect_t libssl_defects[] =
24 {
25 {
26- .low = 0x01010101f, /* 1.1.0a */
27- .high = 0x01010101f, /* 1.1.0a */
28+ .low = 0x01010001f, /* 1.1.0a */
29+ .high = 0x01010001f, /* 1.1.0a */
30 .id = "CVE-2016-6309",
31 .name = "OCSP status request extension",
32 .comment = "For more information see https://www.openssl.org/news/secadv/20160926.txt"
33 },
34 {
35- .low = 0x01010100f, /* 1.1.0 */
36- .high = 0x01010100f, /* 1.1.0 */
37+ .low = 0x010100000f, /* 1.1.0 */
38+ .high = 0x01010000f, /* 1.1.0 */
39 .id = "CVE-2016-6304",
40 .name = "OCSP status request extension",
41 .comment = "For more information see https://www.openssl.org/news/secadv/20160922.txt"
42--
432.7.4
44
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch b/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch
index 71b78090c..471935872 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch
@@ -1,20 +1,21 @@
1From 74eed61dec8702c89f3e121d577ea9db25c961a4 Mon Sep 17 00:00:00 2001 1From 98a9eff357959d1113e33a615c2178751d5b2054 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 11 Jan 2016 02:52:16 -0500 3Date: Thu, 22 Aug 2019 10:50:21 +0800
4Subject: [PATCH] configure.ac: add option for libcap 4Subject: [PATCH 2/2] configure.ac: add option for libcap
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 8Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
9Signed-off-by: Changqing Li <changqing.li@windriver.com>
9--- 10---
10 configure.ac | 37 ++++++++++++++++++++++++++++--------- 11 configure.ac | 36 +++++++++++++++++++++++++++---------
11 1 file changed, 28 insertions(+), 9 deletions(-) 12 1 file changed, 27 insertions(+), 9 deletions(-)
12 13
13diff --git a/configure.ac b/configure.ac 14diff --git a/configure.ac b/configure.ac
14index 066d3d7..6e4266b 100644 15index 65db61e..6486aac 100644
15--- a/configure.ac 16--- a/configure.ac
16+++ b/configure.ac 17+++ b/configure.ac
17@@ -948,6 +948,23 @@ fi 18@@ -977,6 +977,22 @@ fi
18 dnl Set by FR_SMART_CHECKLIB 19 dnl Set by FR_SMART_CHECKLIB
19 LIBS="${old_LIBS}" 20 LIBS="${old_LIBS}"
20 21
@@ -34,11 +35,10 @@ index 066d3d7..6e4266b 100644
34+ esac ] 35+ esac ]
35+) 36+)
36+ 37+
37+
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@@ -981,15 +998,17 @@ AC_ARG_WITH(cap-include-dir, 41@@ -1010,15 +1026,17 @@ AC_ARG_WITH(cap-include-dir,
42 ;; 42 ;;
43 esac]) 43 esac])
44 44
@@ -64,7 +64,7 @@ index 066d3d7..6e4266b 100644
64+ fi 64+ fi
65 fi 65 fi
66 66
67 VL_LIB_READLINE 67 dnl #
68-- 68--
691.9.1 692.7.4
70 70
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-issues-related-to-m4-include-path.patch b/meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-issues-related-to-m4-include-path.patch
deleted file mode 100644
index 638d95076..000000000
--- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-issues-related-to-m4-include-path.patch
+++ /dev/null
@@ -1,186 +0,0 @@
1From 69cb6d4bb5dd56a48695c0581a7d853e427b0ea3 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 24 Jul 2018 14:54:41 +0800
4Subject: [PATCH] freeradius: Fixing issues related to m4 include path
5
6Upstream-Status: Submitted [1]
7
8[1]: https://github.com/FreeRADIUS/freeradius-server/pull/1428
9
10Submmited by: Jorge Pereira <jpereiran@gmail.com>
11
12Update to version 3.0.17
13
14Signed-off-by: Changqing Li <changqing.li@windriver.com>
15---
16 src/modules/rlm_example/config.h.in | 35 +++--------------------------------
17 src/modules/rlm_pam/config.h.in | 3 +++
18 src/modules/rlm_perl/config.h.in | 3 +++
19 src/modules/rlm_perl/configure.ac | 2 +-
20 src/modules/rlm_radutmp/config.h.in | 3 +++
21 src/modules/rlm_ruby/configure.ac | 8 ++++----
22 src/modules/rlm_smsotp/config.h.in | 3 +++
23 src/modules/rlm_unix/config.h.in | 3 +++
24 8 files changed, 23 insertions(+), 37 deletions(-)
25
26diff --git a/src/modules/rlm_example/config.h.in b/src/modules/rlm_example/config.h.in
27index 2a81ef5..4dbb8f4 100644
28--- a/src/modules/rlm_example/config.h.in
29+++ b/src/modules/rlm_example/config.h.in
30@@ -1,37 +1,5 @@
31 /* config.h.in. Generated from configure.ac by autoheader. */
32
33-/* Define to 1 if you have the <inttypes.h> header file. */
34-#undef HAVE_INTTYPES_H
35-
36-/* Define to 1 if you have the <memory.h> header file. */
37-#undef HAVE_MEMORY_H
38-
39-/* Define to 1 if you have the `printf' function. */
40-#undef HAVE_PRINTF
41-
42-/* Define to 1 if you have the <stdint.h> header file. */
43-#undef HAVE_STDINT_H
44-
45-/* Define to 1 if you have the <stdio.h> header file. */
46-#undef HAVE_STDIO_H
47-
48-/* Define to 1 if you have the <stdlib.h> header file. */
49-#undef HAVE_STDLIB_H
50-
51-/* Define to 1 if you have the <strings.h> header file. */
52-#undef HAVE_STRINGS_H
53-
54-/* Define to 1 if you have the <string.h> header file. */
55-#undef HAVE_STRING_H
56-
57-/* Define to 1 if you have the <sys/stat.h> header file. */
58-#undef HAVE_SYS_STAT_H
59-
60-/* Define to 1 if you have the <sys/types.h> header file. */
61-#undef HAVE_SYS_TYPES_H
62-
63-/* Define to 1 if you have the <unistd.h> header file. */
64-#undef HAVE_UNISTD_H
65
66 /* Define to the address where bug reports for this package should be sent. */
67 #undef PACKAGE_BUGREPORT
68@@ -45,6 +13,9 @@
69 /* Define to the one symbol short name of this package. */
70 #undef PACKAGE_TARNAME
71
72+/* Define to the home page for this package. */
73+#undef PACKAGE_URL
74+
75 /* Define to the version of this package. */
76 #undef PACKAGE_VERSION
77
78diff --git a/src/modules/rlm_pam/config.h.in b/src/modules/rlm_pam/config.h.in
79index 32ef6ff..1ad20c5 100644
80--- a/src/modules/rlm_pam/config.h.in
81+++ b/src/modules/rlm_pam/config.h.in
82@@ -45,6 +45,9 @@
83 /* Define to the one symbol short name of this package. */
84 #undef PACKAGE_TARNAME
85
86+/* Define to the home page for this package. */
87+#undef PACKAGE_URL
88+
89 /* Define to the version of this package. */
90 #undef PACKAGE_VERSION
91
92diff --git a/src/modules/rlm_perl/config.h.in b/src/modules/rlm_perl/config.h.in
93index 989ed53..f80de9c 100644
94--- a/src/modules/rlm_perl/config.h.in
95+++ b/src/modules/rlm_perl/config.h.in
96@@ -12,5 +12,8 @@
97 /* Define to the one symbol short name of this package. */
98 #undef PACKAGE_TARNAME
99
100+/* Define to the home page for this package. */
101+#undef PACKAGE_URL
102+
103 /* Define to the version of this package. */
104 #undef PACKAGE_VERSION
105diff --git a/src/modules/rlm_perl/configure.ac b/src/modules/rlm_perl/configure.ac
106index 4b3ff42..69c79cb 100644
107--- a/src/modules/rlm_perl/configure.ac
108+++ b/src/modules/rlm_perl/configure.ac
109@@ -3,7 +3,7 @@ AC_INIT(rlm_perl.c)
110 AC_REVISION($Revision$)
111 AC_DEFUN(modname,[rlm_perl])
112
113-m4_include([ax_with_prog.m4])
114+m4_include([m4/ax_with_prog.m4])
115
116 if test x$with_[]modname != xno; then
117 AC_PROG_CC
118diff --git a/src/modules/rlm_radutmp/config.h.in b/src/modules/rlm_radutmp/config.h.in
119index 9a883cc..750b434 100644
120--- a/src/modules/rlm_radutmp/config.h.in
121+++ b/src/modules/rlm_radutmp/config.h.in
122@@ -42,6 +42,9 @@
123 /* Define to the one symbol short name of this package. */
124 #undef PACKAGE_TARNAME
125
126+/* Define to the home page for this package. */
127+#undef PACKAGE_URL
128+
129 /* Define to the version of this package. */
130 #undef PACKAGE_VERSION
131
132diff --git a/src/modules/rlm_ruby/configure.ac b/src/modules/rlm_ruby/configure.ac
133index 9306382..ae86a14 100644
134--- a/src/modules/rlm_ruby/configure.ac
135+++ b/src/modules/rlm_ruby/configure.ac
136@@ -3,15 +3,15 @@ AC_INIT(rlm_ruby.c)
137 AC_REVISION($Revision: 1.9 $)
138 AC_DEFUN(modname,[rlm_ruby])
139
140-m4_include([ax_with_prog.m4])
141+m4_include([m4/ax_with_prog.m4])
142
143 AC_DEFUN([AX_WITH_RUBY],[
144 AX_WITH_PROG([RUBY],[ruby],[not-found],[${PATH}:/usr/bin:/usr/local/bin])
145 ])
146
147-m4_include([ax_compare_version.m4])
148-m4_include([ax_prog_ruby_version.m4])
149-m4_include([ax_ruby_devel.m4])
150+m4_include([m4/ax_compare_version.m4])
151+m4_include([m4/ax_prog_ruby_version.m4])
152+m4_include([m4/ax_ruby_devel.m4])
153
154 targetname=modname
155 mod_cflags=
156diff --git a/src/modules/rlm_smsotp/config.h.in b/src/modules/rlm_smsotp/config.h.in
157index 5feaf91..9e69f85 100644
158--- a/src/modules/rlm_smsotp/config.h.in
159+++ b/src/modules/rlm_smsotp/config.h.in
160@@ -42,6 +42,9 @@
161 /* Define to the one symbol short name of this package. */
162 #undef PACKAGE_TARNAME
163
164+/* Define to the home page for this package. */
165+#undef PACKAGE_URL
166+
167 /* Define to the version of this package. */
168 #undef PACKAGE_VERSION
169
170diff --git a/src/modules/rlm_unix/config.h.in b/src/modules/rlm_unix/config.h.in
171index dcb9aa2..16107b8 100644
172--- a/src/modules/rlm_unix/config.h.in
173+++ b/src/modules/rlm_unix/config.h.in
174@@ -54,6 +54,9 @@
175 /* Define to the one symbol short name of this package. */
176 #undef PACKAGE_TARNAME
177
178+/* Define to the home page for this package. */
179+#undef PACKAGE_URL
180+
181 /* Define to the version of this package. */
182 #undef PACKAGE_VERSION
183
184--
1852.7.4
186
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch b/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch
index 4eb61ff2e..4265f9d0d 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch
@@ -1,7 +1,7 @@
1From 56ef434e454bcc82c162a83d9bcb076d4fc72b7f Mon Sep 17 00:00:00 2001 1From bfe4d7ed72edc9d4ae1a0f0d2dd84367d6214886 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 9 Jan 2014 14:30:26 +0800 3Date: Thu, 22 Aug 2019 10:45:46 +0800
4Subject: [PATCH] Fix libtool detection 4Subject: [PATCH 1/2] Fix libtool detection
5 5
6Upstream-Status: pending 6Upstream-Status: pending
7 7
@@ -16,18 +16,19 @@ Also patch autogen.sh so it uses autoreconf, which handles libtoolize better.
16 16
17Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> 17Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
18Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 18Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
19Signed-off-by: Changqing Li <changqing.li@windriver.com>
19--- 20---
20 autogen.sh | 5 +---- 21 autogen.sh | 5 +----
21 configure.ac | 36 ++++++++++++++++++++++++++++++++++++ 22 configure.ac | 36 ++++++++++++++++++++++++++++++++++++
22 2 files changed, 37 insertions(+), 4 deletions(-) 23 2 files changed, 37 insertions(+), 4 deletions(-)
23 24
24diff --git a/autogen.sh b/autogen.sh 25diff --git a/autogen.sh b/autogen.sh
25index 3418673..e42c3d5 100755 26index a1d08a6..959182b 100755
26--- a/autogen.sh 27--- a/autogen.sh
27+++ b/autogen.sh 28+++ b/autogen.sh
28@@ -5,10 +5,7 @@ parentdir=`dirname $0` 29@@ -6,10 +6,7 @@ cd $parentdir
29 cd $parentdir
30 parentdir=`pwd` 30 parentdir=`pwd`
31 m4include="-I$parentdir -I$parentdir/m4 -Im4"
31 32
32-libtoolize -f -c 33-libtoolize -f -c
33-#aclocal 34-#aclocal
@@ -38,10 +39,10 @@ index 3418673..e42c3d5 100755
38 mysubdirs="$mysubdirs `find src/modules/ -name configure -print | sed 's%/configure%%'`" 39 mysubdirs="$mysubdirs `find src/modules/ -name configure -print | sed 's%/configure%%'`"
39 mysubdirs=`echo $mysubdirs` 40 mysubdirs=`echo $mysubdirs`
40diff --git a/configure.ac b/configure.ac 41diff --git a/configure.ac b/configure.ac
41index e73e4ad..066d3d7 100644 42index a7abf00..65db61e 100644
42--- a/configure.ac 43--- a/configure.ac
43+++ b/configure.ac 44+++ b/configure.ac
44@@ -205,6 +205,42 @@ dnl # See if we have Git. 45@@ -220,6 +220,42 @@ dnl # See if we have Git.
45 dnl # 46 dnl #
46 AC_CHECK_PROG(GIT, git, yes, no) 47 AC_CHECK_PROG(GIT, git, yes, no)
47 48
@@ -85,5 +86,5 @@ index e73e4ad..066d3d7 100644
85 dnl AC_ARG_WITH(disablemodulefoo, 86 dnl AC_ARG_WITH(disablemodulefoo,
86 dnl [ --without-rlm_foo Disables module compilation. Module list:] 87 dnl [ --without-rlm_foo Disables module compilation. Module list:]
87-- 88--
881.8.3 892.7.4
89 90
diff --git a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.17.bb b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.19.bb
index e0b04c110..ded1a67ff 100644
--- a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.17.bb
+++ b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.19.bb
@@ -13,12 +13,11 @@ LICENSE = "GPLv2 & LGPLv2+"
13LIC_FILES_CHKSUM = "file://LICENSE;md5=eb723b61539feef013de476e68b5c50a" 13LIC_FILES_CHKSUM = "file://LICENSE;md5=eb723b61539feef013de476e68b5c50a"
14DEPENDS = "openssl-native openssl libidn libtool libpcap libtalloc" 14DEPENDS = "openssl-native openssl libidn libtool libpcap libtalloc"
15 15
16SRC_URI = "ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-${PV}.tar.bz2 \ 16SRC_URI = "git://github.com/FreeRADIUS/freeradius-server.git;branch=v3.0.x; \
17 file://freeradius \ 17 file://freeradius \
18 file://volatiles.58_radiusd \ 18 file://volatiles.58_radiusd \
19 file://freeradius-enble-user-in-conf.patch \ 19 file://freeradius-enble-user-in-conf.patch \
20 file://freeradius-configure.ac-allow-cross-compilation.patch \ 20 file://freeradius-configure.ac-allow-cross-compilation.patch \
21 file://freeradius-fix-issues-related-to-m4-include-path.patch \
22 file://freeradius-libtool-detection.patch \ 21 file://freeradius-libtool-detection.patch \
23 file://freeradius-configure.ac-add-option-for-libcap.patch \ 22 file://freeradius-configure.ac-add-option-for-libcap.patch \
24 file://freeradius-avoid-searching-host-dirs.patch \ 23 file://freeradius-avoid-searching-host-dirs.patch \
@@ -29,14 +28,16 @@ SRC_URI = "ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-${PV}.tar.b
29 file://0001-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch \ 28 file://0001-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch \
30 file://radiusd.service \ 29 file://radiusd.service \
31 file://radiusd-volatiles.conf \ 30 file://radiusd-volatiles.conf \
32 file://0001-freeradius-correct-version-number-of-libssl-defect.patch \
33" 31"
34SRC_URI[md5sum] = "1f4ad38f32101a7d50d818afa6f17339" 32
35SRC_URI[sha256sum] = "3f03404b6e4a4f410e1f15ea2ababfec7f8a7ae8a49836d8a0c137436d913b96" 33SRCREV = "ab4c767099f263a7cd4109bcdca80ee74210a769"
36 34
37PARALLEL_MAKE = "" 35PARALLEL_MAKE = ""
38 36
39S = "${WORKDIR}/freeradius-server-${PV}" 37S = "${WORKDIR}/git"
38
39LDFLAGS_append_powerpc = " -latomic"
40LDFLAGS_append_mipsarch = " -latomic"
40 41
41EXTRA_OECONF = " --enable-strict-dependencies \ 42EXTRA_OECONF = " --enable-strict-dependencies \
42 --with-docdir=${docdir}/freeradius-${PV} \ 43 --with-docdir=${docdir}/freeradius-${PV} \
@@ -59,6 +60,8 @@ EXTRA_OECONF = " --enable-strict-dependencies \
59 --without-rlm_sql_oracle \ 60 --without-rlm_sql_oracle \
60 --without-rlm_sql_sybase \ 61 --without-rlm_sql_sybase \
61 --without-rlm_sqlhpwippool \ 62 --without-rlm_sqlhpwippool \
63 --without-rlm_securid \
64 --without-rlm_unbound \
62 ac_cv_path_PERL=${bindir}/perl \ 65 ac_cv_path_PERL=${bindir}/perl \
63 ax_cv_cc_builtin_choose_expr=no \ 66 ax_cv_cc_builtin_choose_expr=no \
64 ax_cv_cc_builtin_types_compatible_p=no \ 67 ax_cv_cc_builtin_types_compatible_p=no \