Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "PostgreSQL is a powerful, open source relational database system." |
| 2 | DESCRIPTION = "\ |
| 3 | PostgreSQL is an advanced Object-Relational database management system \ |
| 4 | (DBMS) that supports almost all SQL constructs (including \ |
| 5 | transactions, subselects and user-defined types and functions). The \ |
| 6 | postgresql package includes the client programs and libraries that \ |
| 7 | you'll need to access a PostgreSQL DBMS server. These PostgreSQL \ |
| 8 | client programs are programs that directly manipulate the internal \ |
| 9 | structure of PostgreSQL databases on a PostgreSQL server. These client \ |
| 10 | programs can be located on the same machine with the PostgreSQL \ |
| 11 | server, or may be on a remote machine which accesses a PostgreSQL \ |
| 12 | server over a network connection. This package contains the docs \ |
| 13 | in HTML for the whole package, as well as command-line utilities for \ |
| 14 | managing PostgreSQL databases on a PostgreSQL server. \ |
| 15 | \ |
| 16 | If you want to manipulate a PostgreSQL database on a local or remote \ |
| 17 | PostgreSQL server, you need this package. You also need to install \ |
| 18 | this package if you're installing the postgresql-server package. \ |
| 19 | " |
| 20 | HOMEPAGE = "http://www.postgresql.com" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 21 | LICENSE = "0BSD" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 22 | DEPENDS = "libnsl2 readline tzcode-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
| 24 | ARM_INSTRUCTION_SET = "arm" |
| 25 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 26 | SRC_URI = "https://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 27 | file://postgresql.init \ |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 28 | file://postgresql-profile \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | file://postgresql.pam \ |
| 30 | file://postgresql-setup \ |
| 31 | file://postgresql.service \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 32 | " |
| 33 | |
| 34 | LEAD_SONAME = "libpq.so" |
| 35 | |
| 36 | # LDFLAGS for shared libraries |
| 37 | export LDFLAGS_SL = "${LDFLAGS}" |
| 38 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 39 | inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base multilib_header |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 41 | CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 42 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 43 | SYSTEMD_SERVICE:${PN} = "postgresql.service" |
| 44 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 45 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 46 | pkg_postinst:${PN} () { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 47 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then |
| 48 | if [ -n "$D" ]; then |
| 49 | OPTS="--root=$D" |
| 50 | fi |
| 51 | systemctl $OPTS mask postgresql-server.service |
| 52 | fi |
| 53 | } |
| 54 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 55 | PACKAGECONFIG ??= " \ |
| 56 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \ |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 57 | openssl python uuid libxml tcl perl zlib icu \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 58 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 59 | PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 60 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 61 | PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3" |
| 62 | PACKAGECONFIG[gssapi] = "--with-gssapi,--without-gssapi,krb5" |
| 63 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam" |
| 64 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" |
| 65 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd systemd-systemctl-native" |
| 66 | PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux" |
| 67 | PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2" |
| 68 | PACKAGECONFIG[libxslt] = "--with-libxslt,--without-libxslt,libxslt" |
| 69 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" |
| 70 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4" |
| 71 | PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl" |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 72 | PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 73 | |
| 74 | EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ |
| 75 | --datadir=${datadir}/${BPN} \ |
| 76 | --sysconfdir=${sysconfdir}/${BPN} \ |
| 77 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 78 | EXTRA_OECONF:sh4 += "--disable-spinlocks" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 79 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 80 | DEBUG_OPTIMIZATION:remove:mips = " -Og" |
| 81 | DEBUG_OPTIMIZATION:append:mips = " -O" |
| 82 | BUILD_OPTIMIZATION:remove:mips = " -Og" |
| 83 | BUILD_OPTIMIZATION:append:mips = " -O" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 84 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 85 | DEBUG_OPTIMIZATION:remove:mipsel = " -Og" |
| 86 | DEBUG_OPTIMIZATION:append:mipsel = " -O" |
| 87 | BUILD_OPTIMIZATION:remove:mipsel = " -Og" |
| 88 | BUILD_OPTIMIZATION:append:mipsel = " -O" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 89 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 90 | PACKAGES_DYNAMIC += "^${PN}-plperl \ |
| 91 | ^${PN}-pltcl \ |
| 92 | ^${PN}-plpython \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 93 | " |
| 94 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 95 | python populate_packages:prepend() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 96 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 97 | def fill_more(name): |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 98 | if name is None or name.strip() == "": |
| 99 | return |
| 100 | |
| 101 | fpack=d.getVar('PACKAGES', False) or "" |
| 102 | fpack="${PN}-" + name + " " + fpack |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 103 | d.setVar('PACKAGES', fpack) |
| 104 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 105 | conf=(d.getVar('PACKAGECONFIG') or "").split() |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 106 | pack=d.getVar('PACKAGES', False) or "" |
| 107 | bb.debug(1, "PACKAGECONFIG=%s" % conf) |
| 108 | bb.debug(1, "PACKAGES1=%s" % pack ) |
| 109 | |
| 110 | if "perl" in conf : |
| 111 | fill_more("plperl") |
| 112 | |
| 113 | if "tcl" in conf: |
| 114 | fill_more("pltcl") |
| 115 | |
| 116 | if "python" in conf: |
| 117 | fill_more("plpython") |
| 118 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 119 | pack=d.getVar('PACKAGES') or "" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 120 | bb.debug(1, "PACKAGES2=%s" % pack) |
| 121 | |
| 122 | } |
| 123 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 124 | # This will make native perl use target settings (for include dirs etc.) |
| 125 | export PERLCONFIGTARGET = "${@is_target(d)}" |
| 126 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}" |
| 127 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 128 | do_configure() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 129 | # do_configure |
| 130 | autotools_do_configure |
| 131 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 132 | # do_configure:append |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 133 | # workaround perl package related bugs |
| 134 | sed -i -e "s:-L/usr/local/lib:-L=/usr/local/lib:g" \ |
| 135 | ${B}/src/Makefile.global |
| 136 | LIBPNA="\${STAGING_LIBDIR_NATIVE}/perl-native" |
| 137 | LIBNA="\${STAGING_LIBDIR_NATIVE}" |
| 138 | BLIBNA="\${STAGING_BASE_LIBDIR_NATIVE}" |
| 139 | sed -i -e "/^perl_archlibexp/s:${LIBPNA}:${STAGING_LIBDIR}:g" \ |
| 140 | ${B}/src/Makefile.global |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 141 | sed -i -e "/^perl_privlibexp/s:${libdir}:${STAGING_LIBDIR}:g" \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 142 | ${B}/src/Makefile.global |
| 143 | # remove the rpath, replace with correct lib path |
| 144 | sed -i \ |
| 145 | -e "/^perl_embed_ldflags/s:-Wl,-rpath,${LIBNA}::g" \ |
| 146 | -e "/^perl_embed_ldflags/s:-Wl,-rpath,${BLIBNA}::g" \ |
| 147 | -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${LIBNA}::g" \ |
| 148 | -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${BLIBNA}::g" \ |
| 149 | -e "/^perl_embed_ldflags/s:${LIBPNA}:${STAGING_LIBDIR}:g" \ |
| 150 | -e "/^perl_embed_ldflags/s:${LIBNA}:${STAGING_LIBDIR}:g" \ |
| 151 | -e "/^perl_embed_ldflags/s:${BLIBNA}:${STAGING_BASELIBDIR}:g" \ |
| 152 | -e "/^TCLSH/s:=.*:= ${bindir}/tclsh:g" \ |
| 153 | ${B}/src/Makefile.global |
| 154 | |
| 155 | if ${@bb.utils.contains('PACKAGECONFIG', 'perl', 'true', 'false', d)}; then |
| 156 | # workaround perl package's libperl.so problem |
| 157 | # we are using perlnative so this perl should have same version |
| 158 | perl_version=`perl -v 2>/dev/null | \ |
| 159 | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'` |
| 160 | if [ ! -h "${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so" -a \ |
| 161 | ! -h "${STAGING_LIBDIR}/libperl.so" ]; then |
| 162 | ln -sf ../../../libperl.so.5 \ |
| 163 | ${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so |
| 164 | fi |
| 165 | fi |
| 166 | } |
| 167 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 168 | do_compile:append() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 169 | oe_runmake -C contrib all |
| 170 | } |
| 171 | |
| 172 | # server needs to configure user and group |
| 173 | usernum = "28" |
| 174 | groupnum = "28" |
| 175 | USERADD_PACKAGES = "${PN}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 176 | USERADD_PARAM:${PN} = "-M -g postgres -o -r -d ${localstatedir}/lib/${BPN} \ |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 177 | -s /bin/sh -c 'PostgreSQL Server' -u ${usernum} postgres" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 178 | GROUPADD_PARAM:${PN} = "-g ${groupnum} -o -r postgres" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 179 | |
| 180 | INITSCRIPT_PACKAGES = "${PN}" |
| 181 | INITSCRIPT_NAME = "${BPN}-server" |
| 182 | INITSCRIPT_PARAMS = "start 64 . stop 36 0 1 2 3 4 5 6 ." |
| 183 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 184 | do_install:append() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 185 | # install contrib |
| 186 | oe_runmake DESTDIR=${D} -C contrib install |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 187 | oe_multilib_header pg_config.h pg_config_ext.h ecpg_config.h postgresql/server/pg_config.h postgresql/server/pg_config_ext.h |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 188 | # install tutorial |
| 189 | install -d -m 0755 ${D}${libdir}/${BPN}/tutorial |
| 190 | install ${B}/src/tutorial/* ${D}${libdir}/${BPN}/tutorial |
| 191 | |
| 192 | # install COPYRIGHT README HISTORY |
| 193 | install -d -m 0755 ${D}${docdir}/${BPN} |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 194 | for i in ${B}/COPYRIGHT ${B}/README ${B}/HISTORY ${B}/doc/KNOWN_BUGS ${B}/doc/MISSING_FEATURES ${B}/doc/README* ${B}/doc/bug.template; do |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 195 | [ -f $i ] && install $i ${D}${docdir}/${BPN} |
| 196 | done |
| 197 | |
| 198 | # install dirs and server init |
| 199 | install -d ${D}${sysconfdir}/init.d |
| 200 | install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server |
| 201 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server |
| 202 | install -m 0755 ${WORKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup |
| 203 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data |
| 204 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 205 | install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 206 | chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN} |
| 207 | # multiple server config directory |
| 208 | install -d -m 700 ${D}${sysconfdir}/default/${BPN} |
| 209 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 210 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 211 | install -d ${D}${sysconfdir}/pam.d |
| 212 | install -m 644 ${WORKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql |
| 213 | fi |
| 214 | |
| 215 | # Install systemd unit files |
| 216 | install -d ${D}${systemd_unitdir}/system |
| 217 | install -m 0644 ${WORKDIR}/postgresql.service ${D}${systemd_unitdir}/system |
| 218 | sed -i -e 's,@BINDIR@,${bindir},g' \ |
| 219 | ${D}${systemd_unitdir}/system/postgresql.service |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 220 | # Remove the build path |
| 221 | if [ -f ${D}${libdir}/${BPN}/pgxs/src/Makefile.global ]; then |
| 222 | sed -i -e 's#${RECIPE_SYSROOT}##g' \ |
| 223 | -e 's#${RECIPE_SYSROOT_NATIVE}##g' \ |
| 224 | -e 's#${WORKDIR}##g' \ |
| 225 | -e 's#${TMPDIR}##g' \ |
| 226 | ${D}${libdir}/${BPN}/pgxs/src/Makefile.global |
| 227 | fi |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 228 | } |
| 229 | |
| 230 | SSTATE_SCAN_FILES += "Makefile.global" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 231 | SSTATE_SCAN_FILES:remove = "*_config" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 232 | |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 233 | postgresql_fix_sources () { |
| 234 | for f in ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/Util.c \ |
| 235 | ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/SPI.c; do |
| 236 | if [ -e $f ]; then |
| 237 | sed -i -e 's#${B}/../${P}#${TARGET_DBGSRC_DIR}#g' $f |
| 238 | fi |
| 239 | done |
| 240 | } |
| 241 | PACKAGESPLITFUNCS =+ "postgresql_fix_sources" |
| 242 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 243 | PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 244 | libecpg-compat libecpg-compat-dev \ |
| 245 | libecpg libecpg-dev libecpg-staticdev libecpg-doc \ |
| 246 | libpq libpq-dev libpq-staticdev \ |
| 247 | libpgtypes libpgtypes-staticdev libpgtypes-dev \ |
| 248 | ${PN}-contrib \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 249 | " |
| 250 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 251 | RPROVIDES:${PN}-dbg += "libecpg-compat-dbg \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 252 | libecpg-dbg \ |
| 253 | libpq-dbg \ |
| 254 | libpgtypes-dbg \ |
| 255 | ${PN}-contrib-dbg \ |
| 256 | ${PN}-pltcl-dbg \ |
| 257 | ${PN}-plpython-dbg \ |
| 258 | ${PN}-plperl-dbg \ |
| 259 | " |
| 260 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 261 | FILES:${PN} += "${sysconfdir}/init.d/${BPN}-server \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 262 | ${localstatedir}/lib/${BPN}/data ${localstatedir}/lib/${BPN}/backups \ |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 263 | ${localstatedir}/lib/${BPN}/.profile ${sysconfdir}/default/${BPN} \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 264 | ${libdir}/${BPN}/dict_snowball.so ${libdir}/${BPN}/plpgsql.so \ |
| 265 | ${libdir}/${BPN}/euc2004_sjis2004.so \ |
| 266 | ${libdir}/${BPN}/libpqwalreceiver.so \ |
| 267 | ${libdir}/${BPN}/*_and_*.so \ |
| 268 | ${@'${sysconfdir}/pam.d/postgresql' \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 269 | if 'pam' == d.getVar('enable_pam') \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 270 | else ''} \ |
| 271 | " |
| 272 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 273 | FILES:${PN}-client = "${bindir}/clusterdb \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 274 | ${bindir}/createdb \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 275 | ${bindir}/createuser \ |
| 276 | ${bindir}/dropdb \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 277 | ${bindir}/dropuser \ |
| 278 | ${bindir}/pg_dump \ |
| 279 | ${bindir}/pg_dumpall \ |
| 280 | ${bindir}/pg_restore \ |
| 281 | ${bindir}/psql \ |
| 282 | ${bindir}/reindexdb \ |
| 283 | ${bindir}/vacuumdb \ |
| 284 | ${bindir}/vacuumlo \ |
| 285 | ${datadir}/${BPN}/psqlrc.sample \ |
| 286 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 287 | FILES:${PN}-client-doc = "${mandir}/man1/clusterdb.* \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 288 | ${mandir}/man1/createdb.* ${mandir}/man1/createlang.* \ |
| 289 | ${mandir}/man1/createuser.* ${mandir}/man1/dropdb.* \ |
| 290 | ${mandir}/man1/droplang.* ${mandir}/man1/dropuser.* \ |
| 291 | ${mandir}/man1/pg_dump.* ${mandir}/man1/pg_dumpall.* \ |
| 292 | ${mandir}/man1/pg_restore.* ${mandir}/man1/psql.* \ |
| 293 | ${mandir}/man1/reindexdb.* ${mandir}/man1/vacuumdb.* \ |
| 294 | ${mandir}/man7/* \ |
| 295 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 296 | FILES:${PN}-doc += "${docdir}/${BPN}/html ${libdir}/${BPN}/tutorial/ \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 297 | ${mandir}/man1/initdb.* ${mandir}/man1/pg_controldata.* \ |
| 298 | ${mandir}/man1/pg_ctl.* ${mandir}/man1/pg_resetxlog.* \ |
| 299 | ${mandir}/man1/postgres.* ${mandir}/man1/postmaster.* \ |
| 300 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 301 | FILES:${PN}-timezone = "${datadir}/${BPN}/timezone \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 302 | ${datadir}/${BPN}/timezonesets \ |
| 303 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 304 | RDEPENDS:${PN} += "${PN}-timezone" |
| 305 | FILES:${PN}-server-dev = "${includedir}/${BPN}/server \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 306 | ${libdir}/${BPN}/pgxs \ |
| 307 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 308 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 309 | FILES:libecpg = "${libdir}/libecpg*${SOLIBS}" |
| 310 | FILES:libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 311 | ${libdir}/libpgtypes*${SOLIBSDEV} \ |
| 312 | ${includedir}/ecpg*.h ${includedir}/${BPN}/ecpg*.h \ |
| 313 | ${includedir}/pgtypes*.h ${includedir}/${BPN}/informix \ |
| 314 | ${includedir}/sql3types.h ${includedir}/sqlca.h \ |
| 315 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 316 | FILES:libecpg-doc = "${mandir}/man1/ecpg.*" |
| 317 | FILES:libecpg-staticdev = "${libdir}/libecpg*.a" |
| 318 | SECTION:libecpg-staticdev = "devel" |
| 319 | RDEPENDS:libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 320 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 321 | FILES:libpq = "${libdir}/libpq*${SOLIBS}" |
| 322 | FILES:libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 323 | ${includedir} \ |
| 324 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 325 | FILES:libpq-staticdev = "${libdir}/libpq*.a ${libdir}/libpgport.a" |
| 326 | SECTION:libpq-staticdev = "devel" |
| 327 | RDEPENDS:libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 328 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 329 | FILES:libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}" |
| 330 | FILES:libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}" |
| 331 | FILES:libpgtypes = "${libdir}/libpgtypes*${SOLIBS}" |
| 332 | FILES:libpgtypes-staticdev = "${libdir}/libpgtypes*.a" |
| 333 | FILES:libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 334 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 335 | FILES:${PN}-contrib = " ${bindir}/oid2name ${bindir}/pg_standby \ |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame] | 336 | ${bindir}/pgbench \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 337 | ${S}/contrib/spi/*.example \ |
| 338 | ${libdir}/${BPN}/_int.so ${libdir}/${BPN}/adminpack.so \ |
| 339 | ${libdir}/${BPN}/autoinc.so ${libdir}/${BPN}/auto_explain.so \ |
| 340 | ${libdir}/${BPN}/auth_delay.so ${libdir}/${BPN}/btree_gin.so \ |
| 341 | ${libdir}/${BPN}/btree_gist.so ${libdir}/${BPN}/.so \ |
| 342 | ${libdir}/${BPN}/chkpass.so ${libdir}/${BPN}/citext.so \ |
| 343 | ${libdir}/${BPN}/cube.so ${libdir}/${BPN}/dblink.so \ |
| 344 | ${libdir}/${BPN}/dict_int.so ${libdir}/${BPN}/dict_xsyn.so \ |
| 345 | ${libdir}/${BPN}/dummy_seclabel.so ${libdir}/${BPN}/earthdistance.so \ |
| 346 | ${libdir}/${BPN}/file_fdw.so ${libdir}/${BPN}/fuzzystrmatch.so \ |
| 347 | ${libdir}/${BPN}/hstore.so ${libdir}/${BPN}/insert_username.so \ |
| 348 | ${libdir}/${BPN}/isn.so ${libdir}/${BPN}/lo.so \ |
| 349 | ${libdir}/${BPN}/ltree.so ${libdir}/${BPN}/moddatetime.so \ |
| 350 | ${libdir}/${BPN}/pageinspect.so ${libdir}/${BPN}/pg_buffercache.so \ |
| 351 | ${libdir}/${BPN}/pg_freespacemap.so ${libdir}/${BPN}/pg_trgm.so \ |
| 352 | ${libdir}/${BPN}/pgcrypto.so ${libdir}/${BPN}/pgrowlocks.so \ |
| 353 | ${libdir}/${BPN}/pgstattuple.so ${libdir}/${BPN}/pg_stat_statements.so \ |
| 354 | ${libdir}/${BPN}/refint.so ${libdir}/${BPN}/seg.so \ |
| 355 | ${libdir}/${BPN}/sslinfo.so \ |
| 356 | ${libdir}/${BPN}/tablefunc.so \ |
| 357 | ${libdir}/${BPN}/test_parser.so ${libdir}/${BPN}/timetravel.so \ |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 358 | ${libdir}/${BPN}/uuid-ossp.so \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 359 | ${libdir}/${BPN}/pgxml.so ${libdir}/${BPN}/passwordcheck.so \ |
| 360 | ${libdir}/${BPN}/pg_upgrade_support.so ${libdir}/${BPN}/.so \ |
| 361 | ${libdir}/${BPN}/unaccent.so \ |
| 362 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 363 | DESCRIPTION:${PN}-contrib = "The postgresql-contrib package contains \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 364 | contributed packages that are included in the PostgreSQL distribution." |
| 365 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 366 | FILES:${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 367 | ${binddir}/pltcl_listmod ${bindir}/pltcl_loadmod \ |
| 368 | ${datadir}/${BPN}/unknown.pltcl" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 369 | SUMMARY:${PN}-pltcl = "The Tcl procedural language for PostgreSQL" |
| 370 | DESCRIPTION:${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 371 | database management system. The postgresql-pltcl package contains the PL/Tcl \ |
| 372 | procedural language for the backend." |
| 373 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 374 | FILES:${PN}-plperl = "${libdir}/${BPN}/plperl.so" |
| 375 | SUMMARY:${PN}-plperl = "The Perl procedural language for PostgreSQL" |
| 376 | DESCRIPTION:${PN}-plperl = "PostgreSQL is an advanced Object-Relational \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 377 | database management system. The postgresql-plperl package contains the \ |
| 378 | PL/Perl procedural language for the backend." |
| 379 | |
| 380 | # In version 8, it will be plpython.so |
| 381 | # In version 9, it might be plpython{2,3}.so depending on python2 or 3 |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 382 | FILES:${PN}-plpython = "${libdir}/${BPN}/plpython*.so" |
| 383 | SUMMARY:${PN}-plpython = "The Python procedural language for PostgreSQL" |
| 384 | DESCRIPTION:${PN}-plpython = "PostgreSQL is an advanced Object-Relational \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 385 | database management system. The postgresql-plpython package contains \ |
| 386 | the PL/Python procedural language for the backend." |