diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-02-02 23:48:06 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-02-02 23:48:06 -0500 |
| commit | ba2cf4dfc0e3e05bbee01ef27224f8cd228a117f (patch) | |
| tree | ebca9514044ed7e777f2b20247d24684c21f4a33 /meta-openstack/recipes-support/postgresql | |
| parent | 8f1c167d0a7dc568a9dfc835073af7eb5de59a91 (diff) | |
| download | meta-cloud-services-ba2cf4dfc0e3e05bbee01ef27224f8cd228a117f.tar.gz | |
bbappends: move old appends to "dangling" and introduce new appends
Syncing to oe-core, and meta-oe master of January 30th 2014.
- introduced required new bbappends
To keep compatiblity with older versions of oe-core and meta-oe,
old bbappends are kept, but they are moved to the "dangling"
recipe group.
If any bbappend warnings show outside of the dangling recipes,
they should be investigated.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-support/postgresql')
| -rw-r--r-- | meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend b/meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend deleted file mode 100644 index 98e7207..0000000 --- a/meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
| 2 | PRINC := "${@int(PRINC) + 1}" | ||
| 3 | |||
| 4 | SRC_URI += "file://postgresql" | ||
| 5 | |||
| 6 | inherit useradd update-rc.d identity | ||
| 7 | |||
| 8 | do_install_append() { | ||
| 9 | install -d ${D}${sysconfdir}/${PN} | ||
| 10 | chown postgres ${D}${sysconfdir}/${PN} | ||
| 11 | |||
| 12 | install -d ${D}${sysconfdir}/init.d/ | ||
| 13 | install -m 0755 ${WORKDIR}/postgresql ${D}${sysconfdir}/init.d/postgresql | ||
| 14 | } | ||
| 15 | |||
| 16 | USERADD_PACKAGES = "${PN}" | ||
| 17 | GROUPADD_PARAM_${PN} = "--system postgres" | ||
| 18 | USERADD_PARAM_${PN} = "--system --home /var/lib/postgres -g postgres \ | ||
| 19 | --no-create-home --shell /bin/false postgres" | ||
| 20 | |||
| 21 | pkg_postinst_${PN} () { | ||
| 22 | if [ "x$D" != "x" ]; then | ||
| 23 | exit 1 | ||
| 24 | fi | ||
| 25 | |||
| 26 | sudo -u postgres initdb -D /etc/${PN}/ | ||
| 27 | /etc/init.d/postgresql start | ||
| 28 | sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" | ||
| 29 | ln -s /usr/share/zoneinfo /usr/share/postgresql/timezone | ||
| 30 | } | ||
| 31 | |||
| 32 | FILES_${PN} += "${localstatedir}/run/${PN}" | ||
| 33 | |||
| 34 | INITSCRIPT_NAME = "${PN}" | ||
| 35 | INITSCRIPT_PARAMS = "defaults" | ||
