summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/postgresql/postgresql.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-05-13 14:16:55 -0700
committerKhem Raj <raj.khem@gmail.com>2024-05-23 08:44:44 -0700
commitffc64e9c6fee0af7eea3466135416d011172a5e6 (patch)
treeb9effa069d9af3c63d6f3a41caff6b887450522c /meta-oe/recipes-dbs/postgresql/postgresql.inc
parenta90f89dbc7eff2ae83bab6a6676f4737c0b48a8d (diff)
downloadmeta-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/postgresql/postgresql.inc')
-rw-r--r--meta-oe/recipes-dbs/postgresql/postgresql.inc10
1 files changed, 5 insertions, 5 deletions
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