diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-05-13 14:16:55 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-05-23 08:44:44 -0700 |
commit | ffc64e9c6fee0af7eea3466135416d011172a5e6 (patch) | |
tree | b9effa069d9af3c63d6f3a41caff6b887450522c /meta-oe/recipes-dbs | |
parent | a90f89dbc7eff2ae83bab6a6676f4737c0b48a8d (diff) | |
download | meta-openembedded-ffc64e9c6fee0af7eea3466135416d011172a5e6.tar.gz |
recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs')
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 12 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql.inc | 10 |
2 files changed, 10 insertions, 12 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 33da32fb28..bbfad1e478 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
@@ -31,8 +31,6 @@ SRC_URI[sha256sum] = "5239a245ed90517e96396605cd01ccd8f73cd7442d1b3076b6ffe25811 | |||
31 | 31 | ||
32 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" | 32 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" |
33 | 33 | ||
34 | S = "${WORKDIR}/mariadb-${PV}" | ||
35 | |||
36 | BINCONFIG_GLOB = "mysql_config" | 34 | BINCONFIG_GLOB = "mysql_config" |
37 | 35 | ||
38 | inherit cmake gettext binconfig update-rc.d systemd multilib_script pkgconfig | 36 | inherit cmake gettext binconfig update-rc.d systemd multilib_script pkgconfig |
@@ -163,18 +161,18 @@ do_install() { | |||
163 | oe_runmake 'DESTDIR=${D}' install | 161 | oe_runmake 'DESTDIR=${D}' install |
164 | 162 | ||
165 | install -d ${D}/${sysconfdir}/init.d | 163 | install -d ${D}/${sysconfdir}/init.d |
166 | install -m 0644 ${WORKDIR}/my.cnf ${D}/${sysconfdir}/ | 164 | install -m 0644 ${UNPACKDIR}/my.cnf ${D}/${sysconfdir}/ |
167 | install -m 0755 ${WORKDIR}/install_db ${D}/${sysconfdir}/init.d/ | 165 | install -m 0755 ${UNPACKDIR}/install_db ${D}/${sysconfdir}/init.d/ |
168 | mv ${D}/${sysconfdir}/init.d/mysql ${D}/${sysconfdir}/init.d/mysqld | 166 | mv ${D}/${sysconfdir}/init.d/mysql ${D}/${sysconfdir}/init.d/mysqld |
169 | 167 | ||
170 | install -d ${D}${systemd_unitdir}/system | 168 | install -d ${D}${systemd_unitdir}/system |
171 | install -m 0644 ${WORKDIR}/mysqld.service ${D}${systemd_unitdir}/system | 169 | install -m 0644 ${UNPACKDIR}/mysqld.service ${D}${systemd_unitdir}/system |
172 | install -m 0644 ${WORKDIR}/install_db.service ${D}${systemd_unitdir}/system | 170 | install -m 0644 ${UNPACKDIR}/install_db.service ${D}${systemd_unitdir}/system |
173 | sed -i -e 's,@BINDIR@,${bindir},g' -e 's,@PREFIX@,${prefix},g' ${D}${systemd_unitdir}/system/mysqld.service \ | 171 | sed -i -e 's,@BINDIR@,${bindir},g' -e 's,@PREFIX@,${prefix},g' ${D}${systemd_unitdir}/system/mysqld.service \ |
174 | ${D}${systemd_unitdir}/system/install_db.service | 172 | ${D}${systemd_unitdir}/system/install_db.service |
175 | 173 | ||
176 | install -d ${D}${bindir} | 174 | install -d ${D}${bindir} |
177 | install -m 755 ${WORKDIR}/mysql-systemd-start ${D}${bindir} | 175 | install -m 755 ${UNPACKDIR}/mysql-systemd-start ${D}${bindir} |
178 | install -d ${D}${datadir}/doc/${PN} | 176 | install -d ${D}${datadir}/doc/${PN} |
179 | if [ -f ${D}${datadir}/doc/README ]; then | 177 | if [ -f ${D}${datadir}/doc/README ]; then |
180 | mv ${D}${datadir}/doc/README ${D}${datadir}/doc/${PN}/ | 178 | mv ${D}${datadir}/doc/README ${D}${datadir}/doc/${PN}/ |
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index e29a5bef77..2dd7dd6fda 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc | |||
@@ -198,24 +198,24 @@ do_install:append() { | |||
198 | 198 | ||
199 | # install dirs and server init | 199 | # install dirs and server init |
200 | install -d ${D}${sysconfdir}/init.d | 200 | install -d ${D}${sysconfdir}/init.d |
201 | install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server | 201 | install -m 0755 ${UNPACKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server |
202 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server | 202 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server |
203 | install -m 0755 ${WORKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup | 203 | install -m 0755 ${UNPACKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup |
204 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data | 204 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data |
205 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups | 205 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups |
206 | install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile | 206 | install -m 644 ${UNPACKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile |
207 | chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN} | 207 | chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN} |
208 | # multiple server config directory | 208 | # multiple server config directory |
209 | install -d -m 700 ${D}${sysconfdir}/default/${BPN} | 209 | install -d -m 700 ${D}${sysconfdir}/default/${BPN} |
210 | 210 | ||
211 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then | 211 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then |
212 | install -d ${D}${sysconfdir}/pam.d | 212 | install -d ${D}${sysconfdir}/pam.d |
213 | install -m 644 ${WORKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql | 213 | install -m 644 ${UNPACKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql |
214 | fi | 214 | fi |
215 | 215 | ||
216 | # Install systemd unit files | 216 | # Install systemd unit files |
217 | install -d ${D}${systemd_unitdir}/system | 217 | install -d ${D}${systemd_unitdir}/system |
218 | install -m 0644 ${WORKDIR}/postgresql.service ${D}${systemd_unitdir}/system | 218 | install -m 0644 ${UNPACKDIR}/postgresql.service ${D}${systemd_unitdir}/system |
219 | sed -i -e 's,@BINDIR@,${bindir},g' \ | 219 | sed -i -e 's,@BINDIR@,${bindir},g' \ |
220 | ${D}${systemd_unitdir}/system/postgresql.service | 220 | ${D}${systemd_unitdir}/system/postgresql.service |
221 | # Remove the build path | 221 | # Remove the build path |