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" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 21 | LICENSE = "BSD-0-Clause" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | DEPENDS = "libnsl2 zlib readline tzcode-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
| 24 | ARM_INSTRUCTION_SET = "arm" |
| 25 | |
| 26 | SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \ |
| 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 | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 39 | inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base |
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 | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 43 | SYSTEMD_SERVICE_${PN} = "postgresql.service" |
| 44 | SYSTEMD_AUTO_ENABLE_${PN} = "disable" |
| 45 | |
| 46 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" |
| 47 | pkg_postinst_${PN} () { |
| 48 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then |
| 49 | if [ -n "$D" ]; then |
| 50 | OPTS="--root=$D" |
| 51 | fi |
| 52 | systemctl $OPTS mask postgresql-server.service |
| 53 | fi |
| 54 | } |
| 55 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 56 | enable_pam = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 57 | PACKAGECONFIG ??= "${enable_pam} openssl python uuid libxml tcl nls libxml perl" |
| 58 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," |
| 59 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl," |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 60 | PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 61 | PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux," |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 62 | 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] | 63 | PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,," |
| 64 | PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2" |
| 65 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" |
| 66 | |
| 67 | EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ |
| 68 | --datadir=${datadir}/${BPN} \ |
| 69 | --sysconfdir=${sysconfdir}/${BPN} \ |
| 70 | " |
| 71 | EXTRA_OECONF_sh4 += "--disable-spinlocks" |
| 72 | EXTRA_OECONF_aarch64 += "--disable-spinlocks" |
| 73 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 74 | DEBUG_OPTIMIZATION_remove_mips = " -Og" |
| 75 | DEBUG_OPTIMIZATION_append_mips = " -O" |
| 76 | BUILD_OPTIMIZATION_remove_mips = " -Og" |
| 77 | BUILD_OPTIMIZATION_append_mips = " -O" |
| 78 | |
| 79 | DEBUG_OPTIMIZATION_remove_mipsel = " -Og" |
| 80 | DEBUG_OPTIMIZATION_append_mipsel = " -O" |
| 81 | BUILD_OPTIMIZATION_remove_mipsel = " -Og" |
| 82 | BUILD_OPTIMIZATION_append_mipsel = " -O" |
| 83 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 84 | PACKAGES_DYNAMIC += "^${PN}-plperl \ |
| 85 | ^${PN}-pltcl \ |
| 86 | ^${PN}-plpython \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 87 | " |
| 88 | |
| 89 | python populate_packages_prepend() { |
| 90 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 91 | def fill_more(name): |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 92 | if name is None or name.strip() == "": |
| 93 | return |
| 94 | |
| 95 | fpack=d.getVar('PACKAGES', False) or "" |
| 96 | fpack="${PN}-" + name + " " + fpack |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 97 | d.setVar('PACKAGES', fpack) |
| 98 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 99 | conf=(d.getVar('PACKAGECONFIG') or "").split() |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 100 | pack=d.getVar('PACKAGES', False) or "" |
| 101 | bb.debug(1, "PACKAGECONFIG=%s" % conf) |
| 102 | bb.debug(1, "PACKAGES1=%s" % pack ) |
| 103 | |
| 104 | if "perl" in conf : |
| 105 | fill_more("plperl") |
| 106 | |
| 107 | if "tcl" in conf: |
| 108 | fill_more("pltcl") |
| 109 | |
| 110 | if "python" in conf: |
| 111 | fill_more("plpython") |
| 112 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 113 | pack=d.getVar('PACKAGES') or "" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 114 | bb.debug(1, "PACKAGES2=%s" % pack) |
| 115 | |
| 116 | } |
| 117 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 118 | # This will make native perl use target settings (for include dirs etc.) |
| 119 | export PERLCONFIGTARGET = "${@is_target(d)}" |
| 120 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}" |
| 121 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 122 | do_configure() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 123 | # do_configure |
| 124 | autotools_do_configure |
| 125 | |
| 126 | # do_configure_append |
| 127 | # workaround perl package related bugs |
| 128 | sed -i -e "s:-L/usr/local/lib:-L=/usr/local/lib:g" \ |
| 129 | ${B}/src/Makefile.global |
| 130 | LIBPNA="\${STAGING_LIBDIR_NATIVE}/perl-native" |
| 131 | LIBNA="\${STAGING_LIBDIR_NATIVE}" |
| 132 | BLIBNA="\${STAGING_BASE_LIBDIR_NATIVE}" |
| 133 | sed -i -e "/^perl_archlibexp/s:${LIBPNA}:${STAGING_LIBDIR}:g" \ |
| 134 | ${B}/src/Makefile.global |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 135 | sed -i -e "/^perl_privlibexp/s:${libdir}:${STAGING_LIBDIR}:g" \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 136 | ${B}/src/Makefile.global |
| 137 | # remove the rpath, replace with correct lib path |
| 138 | sed -i \ |
| 139 | -e "/^perl_embed_ldflags/s:-Wl,-rpath,${LIBNA}::g" \ |
| 140 | -e "/^perl_embed_ldflags/s:-Wl,-rpath,${BLIBNA}::g" \ |
| 141 | -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${LIBNA}::g" \ |
| 142 | -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${BLIBNA}::g" \ |
| 143 | -e "/^perl_embed_ldflags/s:${LIBPNA}:${STAGING_LIBDIR}:g" \ |
| 144 | -e "/^perl_embed_ldflags/s:${LIBNA}:${STAGING_LIBDIR}:g" \ |
| 145 | -e "/^perl_embed_ldflags/s:${BLIBNA}:${STAGING_BASELIBDIR}:g" \ |
| 146 | -e "/^TCLSH/s:=.*:= ${bindir}/tclsh:g" \ |
| 147 | ${B}/src/Makefile.global |
| 148 | |
| 149 | if ${@bb.utils.contains('PACKAGECONFIG', 'perl', 'true', 'false', d)}; then |
| 150 | # workaround perl package's libperl.so problem |
| 151 | # we are using perlnative so this perl should have same version |
| 152 | perl_version=`perl -v 2>/dev/null | \ |
| 153 | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'` |
| 154 | if [ ! -h "${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so" -a \ |
| 155 | ! -h "${STAGING_LIBDIR}/libperl.so" ]; then |
| 156 | ln -sf ../../../libperl.so.5 \ |
| 157 | ${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so |
| 158 | fi |
| 159 | fi |
| 160 | } |
| 161 | |
| 162 | do_compile_append() { |
| 163 | oe_runmake -C contrib all |
| 164 | } |
| 165 | |
| 166 | # server needs to configure user and group |
| 167 | usernum = "28" |
| 168 | groupnum = "28" |
| 169 | USERADD_PACKAGES = "${PN}" |
| 170 | USERADD_PARAM_${PN} = "-M -g postgres -o -r -d ${localstatedir}/lib/${BPN} \ |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 171 | -s /bin/sh -c 'PostgreSQL Server' -u ${usernum} postgres" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 172 | GROUPADD_PARAM_${PN} = "-g ${groupnum} -o -r postgres" |
| 173 | |
| 174 | INITSCRIPT_PACKAGES = "${PN}" |
| 175 | INITSCRIPT_NAME = "${BPN}-server" |
| 176 | INITSCRIPT_PARAMS = "start 64 . stop 36 0 1 2 3 4 5 6 ." |
| 177 | |
| 178 | do_install_append() { |
| 179 | # install contrib |
| 180 | oe_runmake DESTDIR=${D} -C contrib install |
| 181 | # install tutorial |
| 182 | install -d -m 0755 ${D}${libdir}/${BPN}/tutorial |
| 183 | install ${B}/src/tutorial/* ${D}${libdir}/${BPN}/tutorial |
| 184 | |
| 185 | # install COPYRIGHT README HISTORY |
| 186 | install -d -m 0755 ${D}${docdir}/${BPN} |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 187 | 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] | 188 | [ -f $i ] && install $i ${D}${docdir}/${BPN} |
| 189 | done |
| 190 | |
| 191 | # install dirs and server init |
| 192 | install -d ${D}${sysconfdir}/init.d |
| 193 | install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server |
| 194 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server |
| 195 | install -m 0755 ${WORKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup |
| 196 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data |
| 197 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 198 | install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 199 | chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN} |
| 200 | # multiple server config directory |
| 201 | install -d -m 700 ${D}${sysconfdir}/default/${BPN} |
| 202 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 203 | if [ "${@d.getVar('enable_pam')}" = "pam" ]; then |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 204 | install -d ${D}${sysconfdir}/pam.d |
| 205 | install -m 644 ${WORKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql |
| 206 | fi |
| 207 | |
| 208 | # Install systemd unit files |
| 209 | install -d ${D}${systemd_unitdir}/system |
| 210 | install -m 0644 ${WORKDIR}/postgresql.service ${D}${systemd_unitdir}/system |
| 211 | sed -i -e 's,@BINDIR@,${bindir},g' \ |
| 212 | ${D}${systemd_unitdir}/system/postgresql.service |
| 213 | } |
| 214 | |
| 215 | SSTATE_SCAN_FILES += "Makefile.global" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 216 | SSTATE_SCAN_FILES_remove = "*_config" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 217 | |
| 218 | PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 219 | libecpg-compat libecpg-compat-dev \ |
| 220 | libecpg libecpg-dev libecpg-staticdev libecpg-doc \ |
| 221 | libpq libpq-dev libpq-staticdev \ |
| 222 | libpgtypes libpgtypes-staticdev libpgtypes-dev \ |
| 223 | ${PN}-contrib \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 224 | " |
| 225 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 226 | RPROVIDES_${PN}-dbg += "libecpg-compat-dbg \ |
| 227 | libecpg-dbg \ |
| 228 | libpq-dbg \ |
| 229 | libpgtypes-dbg \ |
| 230 | ${PN}-contrib-dbg \ |
| 231 | ${PN}-pltcl-dbg \ |
| 232 | ${PN}-plpython-dbg \ |
| 233 | ${PN}-plperl-dbg \ |
| 234 | " |
| 235 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 236 | FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \ |
| 237 | ${localstatedir}/lib/${BPN}/data ${localstatedir}/lib/${BPN}/backups \ |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 238 | ${localstatedir}/lib/${BPN}/.profile ${sysconfdir}/default/${BPN} \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 239 | ${libdir}/${BPN}/dict_snowball.so ${libdir}/${BPN}/plpgsql.so \ |
| 240 | ${libdir}/${BPN}/euc2004_sjis2004.so \ |
| 241 | ${libdir}/${BPN}/libpqwalreceiver.so \ |
| 242 | ${libdir}/${BPN}/*_and_*.so \ |
| 243 | ${@'${sysconfdir}/pam.d/postgresql' \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 244 | if 'pam' == d.getVar('enable_pam') \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 245 | else ''} \ |
| 246 | " |
| 247 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 248 | FILES_${PN}-client = "${bindir}/clusterdb \ |
| 249 | ${bindir}/createdb \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 250 | ${bindir}/createuser \ |
| 251 | ${bindir}/dropdb \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 252 | ${bindir}/dropuser \ |
| 253 | ${bindir}/pg_dump \ |
| 254 | ${bindir}/pg_dumpall \ |
| 255 | ${bindir}/pg_restore \ |
| 256 | ${bindir}/psql \ |
| 257 | ${bindir}/reindexdb \ |
| 258 | ${bindir}/vacuumdb \ |
| 259 | ${bindir}/vacuumlo \ |
| 260 | ${datadir}/${BPN}/psqlrc.sample \ |
| 261 | " |
| 262 | FILES_${PN}-client-doc = "${mandir}/man1/clusterdb.* \ |
| 263 | ${mandir}/man1/createdb.* ${mandir}/man1/createlang.* \ |
| 264 | ${mandir}/man1/createuser.* ${mandir}/man1/dropdb.* \ |
| 265 | ${mandir}/man1/droplang.* ${mandir}/man1/dropuser.* \ |
| 266 | ${mandir}/man1/pg_dump.* ${mandir}/man1/pg_dumpall.* \ |
| 267 | ${mandir}/man1/pg_restore.* ${mandir}/man1/psql.* \ |
| 268 | ${mandir}/man1/reindexdb.* ${mandir}/man1/vacuumdb.* \ |
| 269 | ${mandir}/man7/* \ |
| 270 | " |
| 271 | FILES_${PN}-doc += "${docdir}/${BPN}/html ${libdir}/${BPN}/tutorial/ \ |
| 272 | ${mandir}/man1/initdb.* ${mandir}/man1/pg_controldata.* \ |
| 273 | ${mandir}/man1/pg_ctl.* ${mandir}/man1/pg_resetxlog.* \ |
| 274 | ${mandir}/man1/postgres.* ${mandir}/man1/postmaster.* \ |
| 275 | " |
| 276 | FILES_${PN}-timezone = "${datadir}/${BPN}/timezone \ |
| 277 | ${datadir}/${BPN}/timezonesets \ |
| 278 | " |
| 279 | RDEPENDS_${PN} += "${PN}-timezone" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 280 | FILES_${PN}-server-dev = "${includedir}/${BPN}/server \ |
| 281 | ${libdir}/${BPN}/pgxs \ |
| 282 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 283 | |
| 284 | FILES_libecpg = "${libdir}/libecpg*${SOLIBS}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 285 | FILES_libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \ |
| 286 | ${libdir}/libpgtypes*${SOLIBSDEV} \ |
| 287 | ${includedir}/ecpg*.h ${includedir}/${BPN}/ecpg*.h \ |
| 288 | ${includedir}/pgtypes*.h ${includedir}/${BPN}/informix \ |
| 289 | ${includedir}/sql3types.h ${includedir}/sqlca.h \ |
| 290 | " |
| 291 | FILES_libecpg-doc = "${mandir}/man1/ecpg.*" |
| 292 | FILES_libecpg-staticdev = "${libdir}/libecpg*.a" |
| 293 | SECTION_libecpg-staticdev = "devel" |
| 294 | RDEPENDS_libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})" |
| 295 | |
| 296 | FILES_libpq = "${libdir}/libpq*${SOLIBS}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 297 | FILES_libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \ |
| 298 | ${includedir} \ |
| 299 | " |
| 300 | FILES_libpq-staticdev = "${libdir}/libpq*.a ${libdir}/libpgport.a" |
| 301 | SECTION_libpq-staticdev = "devel" |
| 302 | RDEPENDS_libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})" |
| 303 | |
| 304 | FILES_libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 305 | FILES_libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}" |
| 306 | FILES_libpgtypes = "${libdir}/libpgtypes*${SOLIBS}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 307 | FILES_libpgtypes-staticdev = "${libdir}/libpgtypes*.a" |
| 308 | FILES_libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h" |
| 309 | |
| 310 | FILES_${PN}-contrib = " ${bindir}/oid2name ${bindir}/pg_standby \ |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame] | 311 | ${bindir}/pgbench \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 312 | ${S}/contrib/spi/*.example \ |
| 313 | ${libdir}/${BPN}/_int.so ${libdir}/${BPN}/adminpack.so \ |
| 314 | ${libdir}/${BPN}/autoinc.so ${libdir}/${BPN}/auto_explain.so \ |
| 315 | ${libdir}/${BPN}/auth_delay.so ${libdir}/${BPN}/btree_gin.so \ |
| 316 | ${libdir}/${BPN}/btree_gist.so ${libdir}/${BPN}/.so \ |
| 317 | ${libdir}/${BPN}/chkpass.so ${libdir}/${BPN}/citext.so \ |
| 318 | ${libdir}/${BPN}/cube.so ${libdir}/${BPN}/dblink.so \ |
| 319 | ${libdir}/${BPN}/dict_int.so ${libdir}/${BPN}/dict_xsyn.so \ |
| 320 | ${libdir}/${BPN}/dummy_seclabel.so ${libdir}/${BPN}/earthdistance.so \ |
| 321 | ${libdir}/${BPN}/file_fdw.so ${libdir}/${BPN}/fuzzystrmatch.so \ |
| 322 | ${libdir}/${BPN}/hstore.so ${libdir}/${BPN}/insert_username.so \ |
| 323 | ${libdir}/${BPN}/isn.so ${libdir}/${BPN}/lo.so \ |
| 324 | ${libdir}/${BPN}/ltree.so ${libdir}/${BPN}/moddatetime.so \ |
| 325 | ${libdir}/${BPN}/pageinspect.so ${libdir}/${BPN}/pg_buffercache.so \ |
| 326 | ${libdir}/${BPN}/pg_freespacemap.so ${libdir}/${BPN}/pg_trgm.so \ |
| 327 | ${libdir}/${BPN}/pgcrypto.so ${libdir}/${BPN}/pgrowlocks.so \ |
| 328 | ${libdir}/${BPN}/pgstattuple.so ${libdir}/${BPN}/pg_stat_statements.so \ |
| 329 | ${libdir}/${BPN}/refint.so ${libdir}/${BPN}/seg.so \ |
| 330 | ${libdir}/${BPN}/sslinfo.so \ |
| 331 | ${libdir}/${BPN}/tablefunc.so \ |
| 332 | ${libdir}/${BPN}/test_parser.so ${libdir}/${BPN}/timetravel.so \ |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 333 | ${libdir}/${BPN}/uuid-ossp.so \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 334 | ${libdir}/${BPN}/pgxml.so ${libdir}/${BPN}/passwordcheck.so \ |
| 335 | ${libdir}/${BPN}/pg_upgrade_support.so ${libdir}/${BPN}/.so \ |
| 336 | ${libdir}/${BPN}/unaccent.so \ |
| 337 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 338 | DESCRIPTION_${PN}-contrib = "The postgresql-contrib package contains \ |
| 339 | contributed packages that are included in the PostgreSQL distribution." |
| 340 | |
| 341 | FILES_${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \ |
| 342 | ${binddir}/pltcl_listmod ${bindir}/pltcl_loadmod \ |
| 343 | ${datadir}/${BPN}/unknown.pltcl" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 344 | SUMMARY_${PN}-pltcl = "The Tcl procedural language for PostgreSQL" |
| 345 | DESCRIPTION_${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \ |
| 346 | database management system. The postgresql-pltcl package contains the PL/Tcl \ |
| 347 | procedural language for the backend." |
| 348 | |
| 349 | FILES_${PN}-plperl = "${libdir}/${BPN}/plperl.so" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 350 | SUMMARY_${PN}-plperl = "The Perl procedural language for PostgreSQL" |
| 351 | DESCRIPTION_${PN}-plperl = "PostgreSQL is an advanced Object-Relational \ |
| 352 | database management system. The postgresql-plperl package contains the \ |
| 353 | PL/Perl procedural language for the backend." |
| 354 | |
| 355 | # In version 8, it will be plpython.so |
| 356 | # In version 9, it might be plpython{2,3}.so depending on python2 or 3 |
| 357 | FILES_${PN}-plpython = "${libdir}/${BPN}/plpython*.so" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 358 | SUMMARY_${PN}-plpython = "The Python procedural language for PostgreSQL" |
| 359 | DESCRIPTION_${PN}-plpython = "PostgreSQL is an advanced Object-Relational \ |
| 360 | database management system. The postgresql-plpython package contains \ |
| 361 | the PL/Python procedural language for the backend." |