summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2022-07-01 11:52:44 -0700
committerArmin Kuster <akuster808@gmail.com>2022-07-09 11:52:28 -0700
commitc455cbab36b49403fd1b8190a3acb9604145c086 (patch)
tree0fe125f6e786ee2a3d60b0c18de98ce49294a442
parentfb7b26b0fb243620f52a61296f4eda6af6ad1af6 (diff)
downloadmeta-openembedded-c455cbab36b49403fd1b8190a3acb9604145c086.tar.gz
freeradius: mutlilib fixes
Define raddbdir based on multilib Add multilib headers and scripts for conflicting content Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 8687d488f7352fa0c5c7dbc919aa14e577ce153e) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb34
1 files changed, 21 insertions, 13 deletions
diff --git a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb
index da7e60419e..453e514b67 100644
--- a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb
+++ b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb
@@ -34,6 +34,8 @@ SRC_URI = "git://github.com/FreeRADIUS/freeradius-server.git;branch=v3.0.x;lfs=0
34 file://check-openssl-cmds-in-script-bootstrap.patch \ 34 file://check-openssl-cmds-in-script-bootstrap.patch \
35" 35"
36 36
37raddbdir="${sysconfdir}/${MLPREFIX}raddb"
38
37SRCREV = "af428abda249b2279ba0582180985a9f6f4a144a" 39SRCREV = "af428abda249b2279ba0582180985a9f6f4a144a"
38 40
39PARALLEL_MAKE = "" 41PARALLEL_MAKE = ""
@@ -48,6 +50,7 @@ EXTRA_OECONF = " --enable-strict-dependencies \
48 --with-docdir=${docdir}/freeradius-${PV} \ 50 --with-docdir=${docdir}/freeradius-${PV} \
49 --with-openssl-includes=${STAGING_INCDIR} \ 51 --with-openssl-includes=${STAGING_INCDIR} \
50 --with-openssl-libraries=${STAGING_LIBDIR} \ 52 --with-openssl-libraries=${STAGING_LIBDIR} \
53 --with-raddbdir=${raddbdir} \
51 --without-rlm_ippool \ 54 --without-rlm_ippool \
52 --without-rlm_cache_memcached \ 55 --without-rlm_cache_memcached \
53 --without-rlm_counter \ 56 --without-rlm_counter \
@@ -98,7 +101,9 @@ PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl"
98PACKAGECONFIG[rlm-eap-fast] = "--with-rlm_eap_fast, --without-rlm_eap_fast" 101PACKAGECONFIG[rlm-eap-fast] = "--with-rlm_eap_fast, --without-rlm_eap_fast"
99PACKAGECONFIG[rlm-eap-pwd] = "--with-rlm_eap_pwd, --without-rlm_eap_pwd" 102PACKAGECONFIG[rlm-eap-pwd] = "--with-rlm_eap_pwd, --without-rlm_eap_pwd"
100 103
101inherit useradd autotools-brokensep update-rc.d systemd 104inherit useradd autotools-brokensep update-rc.d systemd multilib_script multilib_header
105
106MULTILIB_SCRIPTS = "${PN}:${sbindir}/checkrad"
102 107
103# This is not a cpan or python based package, but it needs some definitions 108# This is not a cpan or python based package, but it needs some definitions
104# from cpan-base and python3-dir bbclasses for building rlm_perl and rlm_python 109# from cpan-base and python3-dir bbclasses for building rlm_perl and rlm_python
@@ -141,7 +146,7 @@ do_install() {
141 oe_runmake install R=${D} INSTALLSTRIP="" 146 oe_runmake install R=${D} INSTALLSTRIP=""
142 147
143 # remove unsupported config files 148 # remove unsupported config files
144 rm -f ${D}/${sysconfdir}/raddb/experimental.conf 149 rm -f ${D}/${raddbdir}/experimental.conf
145 150
146 # remove scripts that required Perl(DBI) 151 # remove scripts that required Perl(DBI)
147 rm -rf ${D}/${bindir}/radsqlrelay 152 rm -rf ${D}/${bindir}/radsqlrelay
@@ -153,7 +158,7 @@ do_install() {
153 rm -rf ${D}/${localstatedir}/log/ 158 rm -rf ${D}/${localstatedir}/log/
154 install -m 0644 ${WORKDIR}/volatiles.58_radiusd ${D}${sysconfdir}/default/volatiles/58_radiusd 159 install -m 0644 ${WORKDIR}/volatiles.58_radiusd ${D}${sysconfdir}/default/volatiles/58_radiusd
155 160
156 chown -R radiusd:radiusd ${D}/${sysconfdir}/raddb/ 161 chown -R radiusd:radiusd ${D}/${raddbdir}
157 chown -R radiusd:radiusd ${D}/${localstatedir}/lib/radiusd 162 chown -R radiusd:radiusd ${D}/${localstatedir}/lib/radiusd
158 163
159 # For systemd 164 # For systemd
@@ -169,6 +174,9 @@ do_install() {
169 install -d ${D}${sysconfdir}/tmpfiles.d/ 174 install -d ${D}${sysconfdir}/tmpfiles.d/
170 install -m 0644 ${WORKDIR}/radiusd-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/radiusd.conf 175 install -m 0644 ${WORKDIR}/radiusd-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/radiusd.conf
171 fi 176 fi
177 oe_multilib_header freeradius/autoconf.h
178 oe_multilib_header freeradius/missing.h
179 oe_multilib_header freeradius/radpaths.h
172} 180}
173 181
174# This is only needed when we install/update on a running target. 182# This is only needed when we install/update on a running target.
@@ -183,7 +191,7 @@ pkg_postinst:${PN} () {
183 fi 191 fi
184 192
185 # Fix ownership for /etc/raddb/*, /var/lib/radiusd 193 # Fix ownership for /etc/raddb/*, /var/lib/radiusd
186 chown -R radiusd:radiusd ${sysconfdir}/raddb 194 chown -R radiusd:radiusd ${raddbdir}
187 chown -R radiusd:radiusd ${localstatedir}/lib/radiusd 195 chown -R radiusd:radiusd ${localstatedir}/lib/radiusd
188 fi 196 fi
189} 197}
@@ -204,30 +212,30 @@ PACKAGES =+ "${PN}-utils ${PN}-ldap ${PN}-krb5 ${PN}-perl \
204FILES:${PN}-utils = "${bindir}/*" 212FILES:${PN}-utils = "${bindir}/*"
205 213
206FILES:${PN}-ldap = "${libdir}/rlm_ldap.so* \ 214FILES:${PN}-ldap = "${libdir}/rlm_ldap.so* \
207 ${sysconfdir}/raddb/mods-available/ldap \ 215 ${raddbdir}/mods-available/ldap \
208" 216"
209 217
210FILES:${PN}-krb5 = "${libdir}/rlm_krb5.so* \ 218FILES:${PN}-krb5 = "${libdir}/rlm_krb5.so* \
211 ${sysconfdir}/raddb/mods-available/krb5 \ 219 ${raddbdir}/mods-available/krb5 \
212" 220"
213 221
214FILES:${PN}-perl = "${libdir}/rlm_perl.so* \ 222FILES:${PN}-perl = "${libdir}/rlm_perl.so* \
215 ${sysconfdir}/raddb/mods-config/perl \ 223 ${raddbdir}/mods-config/perl \
216 ${sysconfdir}/raddb/mods-available/perl \ 224 ${raddbdir}/mods-available/perl \
217" 225"
218 226
219FILES:${PN}-python = "${libdir}/rlm_python3.so* \ 227FILES:${PN}-python = "${libdir}/rlm_python3.so* \
220 ${sysconfdir}/raddb/mods-config/python3 \ 228 ${raddbdir}/mods-config/python3 \
221 ${sysconfdir}/raddb/mods-available/python3 \ 229 ${raddbdir}/mods-available/python3 \
222" 230"
223 231
224FILES:${PN}-mysql = "${libdir}/rlm_sql_mysql.so* \ 232FILES:${PN}-mysql = "${libdir}/rlm_sql_mysql.so* \
225 ${sysconfdir}/raddb/mods-config/sql/*/mysql \ 233 ${raddbdir}/mods-config/sql/*/mysql \
226 ${sysconfdir}/raddb/mods-available/sql \ 234 ${raddbdir}/mods-available/sql \
227" 235"
228 236
229FILES:${PN}-postgresql = "${libdir}/rlm_sql_postgresql.so* \ 237FILES:${PN}-postgresql = "${libdir}/rlm_sql_postgresql.so* \
230 ${sysconfdir}/raddb/mods-config/sql/*/postgresql \ 238 ${raddbdir}/mods-config/sql/*/postgresql \
231" 239"
232 240
233FILES:${PN}-unixodbc = "${libdir}/rlm_sql_unixodbc.so*" 241FILES:${PN}-unixodbc = "${libdir}/rlm_sql_unixodbc.so*"