diff options
| author | Jeremy Puhlman <jpuhlman@mvista.com> | 2022-07-01 11:52:44 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-07-02 11:40:50 -0400 |
| commit | 8687d488f7352fa0c5c7dbc919aa14e577ce153e (patch) | |
| tree | c906859ae6e981509b5f39260f66ac1b603029c7 | |
| parent | e80ce510e187c00d6932027ac495a1d06f6a702f (diff) | |
| download | meta-openembedded-8687d488f7352fa0c5c7dbc919aa14e577ce153e.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>
| -rw-r--r-- | meta-networking/recipes-connectivity/freeradius/freeradius_3.0.21.bb | 34 |
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 | ||
| 37 | raddbdir="${sysconfdir}/${MLPREFIX}raddb" | ||
| 38 | |||
| 37 | SRCREV = "af428abda249b2279ba0582180985a9f6f4a144a" | 39 | SRCREV = "af428abda249b2279ba0582180985a9f6f4a144a" |
| 38 | 40 | ||
| 39 | PARALLEL_MAKE = "" | 41 | PARALLEL_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" | |||
| 98 | PACKAGECONFIG[rlm-eap-fast] = "--with-rlm_eap_fast, --without-rlm_eap_fast" | 101 | PACKAGECONFIG[rlm-eap-fast] = "--with-rlm_eap_fast, --without-rlm_eap_fast" |
| 99 | PACKAGECONFIG[rlm-eap-pwd] = "--with-rlm_eap_pwd, --without-rlm_eap_pwd" | 102 | PACKAGECONFIG[rlm-eap-pwd] = "--with-rlm_eap_pwd, --without-rlm_eap_pwd" |
| 100 | 103 | ||
| 101 | inherit useradd autotools-brokensep update-rc.d systemd | 104 | inherit useradd autotools-brokensep update-rc.d systemd multilib_script multilib_header |
| 105 | |||
| 106 | MULTILIB_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 \ | |||
| 204 | FILES:${PN}-utils = "${bindir}/*" | 212 | FILES:${PN}-utils = "${bindir}/*" |
| 205 | 213 | ||
| 206 | FILES:${PN}-ldap = "${libdir}/rlm_ldap.so* \ | 214 | FILES:${PN}-ldap = "${libdir}/rlm_ldap.so* \ |
| 207 | ${sysconfdir}/raddb/mods-available/ldap \ | 215 | ${raddbdir}/mods-available/ldap \ |
| 208 | " | 216 | " |
| 209 | 217 | ||
| 210 | FILES:${PN}-krb5 = "${libdir}/rlm_krb5.so* \ | 218 | FILES:${PN}-krb5 = "${libdir}/rlm_krb5.so* \ |
| 211 | ${sysconfdir}/raddb/mods-available/krb5 \ | 219 | ${raddbdir}/mods-available/krb5 \ |
| 212 | " | 220 | " |
| 213 | 221 | ||
| 214 | FILES:${PN}-perl = "${libdir}/rlm_perl.so* \ | 222 | FILES:${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 | ||
| 219 | FILES:${PN}-python = "${libdir}/rlm_python3.so* \ | 227 | FILES:${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 | ||
| 224 | FILES:${PN}-mysql = "${libdir}/rlm_sql_mysql.so* \ | 232 | FILES:${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 | ||
| 229 | FILES:${PN}-postgresql = "${libdir}/rlm_sql_postgresql.so* \ | 237 | FILES:${PN}-postgresql = "${libdir}/rlm_sql_postgresql.so* \ |
| 230 | ${sysconfdir}/raddb/mods-config/sql/*/postgresql \ | 238 | ${raddbdir}/mods-config/sql/*/postgresql \ |
| 231 | " | 239 | " |
| 232 | 240 | ||
| 233 | FILES:${PN}-unixodbc = "${libdir}/rlm_sql_unixodbc.so*" | 241 | FILES:${PN}-unixodbc = "${libdir}/rlm_sql_unixodbc.so*" |
