blob: e609ac33e598d88f93a7a92d5402423a25fb7ef1 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "PostgreSQL is a powerful, open source relational database system."
2DESCRIPTION = "\
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"
20HOMEPAGE = "http://www.postgresql.com"
Brad Bishop2d39a062019-10-28 08:33:36 -040021LICENSE = "BSD-0-Clause"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022DEPENDS = "libnsl2 zlib readline tzcode-native"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023
24ARM_INSTRUCTION_SET = "arm"
25
26SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \
27 file://postgresql.init \
Andrew Geissler1548c072019-02-22 16:03:50 -060028 file://postgresql-profile \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029 file://postgresql.pam \
30 file://postgresql-setup \
31 file://postgresql.service \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050032"
33
34LEAD_SONAME = "libpq.so"
35
36# LDFLAGS for shared libraries
37export LDFLAGS_SL = "${LDFLAGS}"
38
Andrew Geissler4b7c1152020-11-30 19:55:29 -060039inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040
Brad Bishop6e60e8b2018-02-01 10:27:11 -050041CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6"
Patrick Williamsddad1a12017-02-23 20:36:32 -060042
Patrick Williams213cb262021-08-07 19:21:33 -050043SYSTEMD_SERVICE:${PN} = "postgresql.service"
44SYSTEMD_AUTO_ENABLE:${PN} = "disable"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050045
Patrick Williams213cb262021-08-07 19:21:33 -050046DEPENDS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}"
47pkg_postinst:${PN} () {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050048 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 Bishop6e60e8b2018-02-01 10:27:11 -050056enable_pam = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050057PACKAGECONFIG ??= "${enable_pam} openssl python uuid libxml tcl nls libxml perl"
58PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,"
Andrew Geissler72956ed2021-01-08 16:11:14 -060059PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl ac_cv_file__dev_urandom=yes,openssl,"
Andrew Geissler82c905d2020-04-13 13:39:40 -050060PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080061PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux,"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050062PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native,"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050063PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"
64PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2"
65PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl"
66
67EXTRA_OECONF += "--enable-thread-safety --disable-rpath \
68 --datadir=${datadir}/${BPN} \
69 --sysconfdir=${sysconfdir}/${BPN} \
70"
Patrick Williams213cb262021-08-07 19:21:33 -050071EXTRA_OECONF:sh4 += "--disable-spinlocks"
72EXTRA_OECONF:aarch64 += "--disable-spinlocks"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050073
Patrick Williams213cb262021-08-07 19:21:33 -050074DEBUG_OPTIMIZATION:remove:mips = " -Og"
75DEBUG_OPTIMIZATION:append:mips = " -O"
76BUILD_OPTIMIZATION:remove:mips = " -Og"
77BUILD_OPTIMIZATION:append:mips = " -O"
Brad Bishopc342db32019-05-15 21:57:59 -040078
Patrick Williams213cb262021-08-07 19:21:33 -050079DEBUG_OPTIMIZATION:remove:mipsel = " -Og"
80DEBUG_OPTIMIZATION:append:mipsel = " -O"
81BUILD_OPTIMIZATION:remove:mipsel = " -Og"
82BUILD_OPTIMIZATION:append:mipsel = " -O"
Brad Bishopc342db32019-05-15 21:57:59 -040083
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080084PACKAGES_DYNAMIC += "^${PN}-plperl \
85 ^${PN}-pltcl \
86 ^${PN}-plpython \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050087"
88
Patrick Williams213cb262021-08-07 19:21:33 -050089python populate_packages:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050090
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080091 def fill_more(name):
Patrick Williamsb48b7b42016-08-17 15:04:38 -050092 if name is None or name.strip() == "":
93 return
94
95 fpack=d.getVar('PACKAGES', False) or ""
96 fpack="${PN}-" + name + " " + fpack
Patrick Williamsb48b7b42016-08-17 15:04:38 -050097 d.setVar('PACKAGES', fpack)
98
Brad Bishop6e60e8b2018-02-01 10:27:11 -050099 conf=(d.getVar('PACKAGECONFIG') or "").split()
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500100 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 Bishop6e60e8b2018-02-01 10:27:11 -0500113 pack=d.getVar('PACKAGES') or ""
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500114 bb.debug(1, "PACKAGES2=%s" % pack)
115
116}
117
Brad Bishop19323692019-04-05 15:28:33 -0400118# This will make native perl use target settings (for include dirs etc.)
119export PERLCONFIGTARGET = "${@is_target(d)}"
120export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}"
121
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500122do_configure() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500123 # do_configure
124 autotools_do_configure
125
Patrick Williams213cb262021-08-07 19:21:33 -0500126 # do_configure:append
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500127 # 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 Bishop19323692019-04-05 15:28:33 -0400135 sed -i -e "/^perl_privlibexp/s:${libdir}:${STAGING_LIBDIR}:g" \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500136 ${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
Patrick Williams213cb262021-08-07 19:21:33 -0500162do_compile:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500163 oe_runmake -C contrib all
164}
165
166# server needs to configure user and group
167usernum = "28"
168groupnum = "28"
169USERADD_PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -0500170USERADD_PARAM:${PN} = "-M -g postgres -o -r -d ${localstatedir}/lib/${BPN} \
Andrew Geissler1548c072019-02-22 16:03:50 -0600171 -s /bin/sh -c 'PostgreSQL Server' -u ${usernum} postgres"
Patrick Williams213cb262021-08-07 19:21:33 -0500172GROUPADD_PARAM:${PN} = "-g ${groupnum} -o -r postgres"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500173
174INITSCRIPT_PACKAGES = "${PN}"
175INITSCRIPT_NAME = "${BPN}-server"
176INITSCRIPT_PARAMS = "start 64 . stop 36 0 1 2 3 4 5 6 ."
177
Patrick Williams213cb262021-08-07 19:21:33 -0500178do_install:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500179 # 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 Williamsddad1a12017-02-23 20:36:32 -0600187 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 Williamsb48b7b42016-08-17 15:04:38 -0500188 [ -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 Geissler1548c072019-02-22 16:03:50 -0600198 install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500199 chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN}
200 # multiple server config directory
201 install -d -m 700 ${D}${sysconfdir}/default/${BPN}
202
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500203 if [ "${@d.getVar('enable_pam')}" = "pam" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500204 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
215SSTATE_SCAN_FILES += "Makefile.global"
Patrick Williams213cb262021-08-07 19:21:33 -0500216SSTATE_SCAN_FILES:remove = "*_config"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500217
218PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800219 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 Williamsb48b7b42016-08-17 15:04:38 -0500224"
225
Patrick Williams213cb262021-08-07 19:21:33 -0500226RPROVIDES:${PN}-dbg += "libecpg-compat-dbg \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800227 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 Williams213cb262021-08-07 19:21:33 -0500236FILES:${PN} += "${sysconfdir}/init.d/${BPN}-server \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500237 ${localstatedir}/lib/${BPN}/data ${localstatedir}/lib/${BPN}/backups \
Andrew Geissler1548c072019-02-22 16:03:50 -0600238 ${localstatedir}/lib/${BPN}/.profile ${sysconfdir}/default/${BPN} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500239 ${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 Bishop6e60e8b2018-02-01 10:27:11 -0500244 if 'pam' == d.getVar('enable_pam') \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500245 else ''} \
246"
247
Patrick Williams213cb262021-08-07 19:21:33 -0500248FILES:${PN}-client = "${bindir}/clusterdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500249 ${bindir}/createdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500250 ${bindir}/createuser \
251 ${bindir}/dropdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500252 ${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"
Patrick Williams213cb262021-08-07 19:21:33 -0500262FILES:${PN}-client-doc = "${mandir}/man1/clusterdb.* \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500263 ${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"
Patrick Williams213cb262021-08-07 19:21:33 -0500271FILES:${PN}-doc += "${docdir}/${BPN}/html ${libdir}/${BPN}/tutorial/ \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500272 ${mandir}/man1/initdb.* ${mandir}/man1/pg_controldata.* \
273 ${mandir}/man1/pg_ctl.* ${mandir}/man1/pg_resetxlog.* \
274 ${mandir}/man1/postgres.* ${mandir}/man1/postmaster.* \
275"
Patrick Williams213cb262021-08-07 19:21:33 -0500276FILES:${PN}-timezone = "${datadir}/${BPN}/timezone \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500277 ${datadir}/${BPN}/timezonesets \
278"
Patrick Williams213cb262021-08-07 19:21:33 -0500279RDEPENDS:${PN} += "${PN}-timezone"
280FILES:${PN}-server-dev = "${includedir}/${BPN}/server \
Brad Bishop15ae2502019-06-18 21:44:24 -0400281 ${libdir}/${BPN}/pgxs \
282"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500283
Patrick Williams213cb262021-08-07 19:21:33 -0500284FILES:libecpg = "${libdir}/libecpg*${SOLIBS}"
285FILES:libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500286 ${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"
Patrick Williams213cb262021-08-07 19:21:33 -0500291FILES:libecpg-doc = "${mandir}/man1/ecpg.*"
292FILES:libecpg-staticdev = "${libdir}/libecpg*.a"
293SECTION:libecpg-staticdev = "devel"
294RDEPENDS:libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500295
Patrick Williams213cb262021-08-07 19:21:33 -0500296FILES:libpq = "${libdir}/libpq*${SOLIBS}"
297FILES:libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500298 ${includedir} \
299"
Patrick Williams213cb262021-08-07 19:21:33 -0500300FILES:libpq-staticdev = "${libdir}/libpq*.a ${libdir}/libpgport.a"
301SECTION:libpq-staticdev = "devel"
302RDEPENDS:libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500303
Patrick Williams213cb262021-08-07 19:21:33 -0500304FILES:libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}"
305FILES:libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}"
306FILES:libpgtypes = "${libdir}/libpgtypes*${SOLIBS}"
307FILES:libpgtypes-staticdev = "${libdir}/libpgtypes*.a"
308FILES:libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500309
Patrick Williams213cb262021-08-07 19:21:33 -0500310FILES:${PN}-contrib = " ${bindir}/oid2name ${bindir}/pg_standby \
Andrew Geisslerd221e032020-07-10 16:13:21 -0500311 ${bindir}/pgbench \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500312 ${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 Geisslerd688a012020-09-18 13:36:00 -0500333 ${libdir}/${BPN}/uuid-ossp.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500334 ${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 Williams213cb262021-08-07 19:21:33 -0500338DESCRIPTION:${PN}-contrib = "The postgresql-contrib package contains \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500339 contributed packages that are included in the PostgreSQL distribution."
340
Patrick Williams213cb262021-08-07 19:21:33 -0500341FILES:${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500342 ${binddir}/pltcl_listmod ${bindir}/pltcl_loadmod \
343 ${datadir}/${BPN}/unknown.pltcl"
Patrick Williams213cb262021-08-07 19:21:33 -0500344SUMMARY:${PN}-pltcl = "The Tcl procedural language for PostgreSQL"
345DESCRIPTION:${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500346 database management system. The postgresql-pltcl package contains the PL/Tcl \
347 procedural language for the backend."
348
Patrick Williams213cb262021-08-07 19:21:33 -0500349FILES:${PN}-plperl = "${libdir}/${BPN}/plperl.so"
350SUMMARY:${PN}-plperl = "The Perl procedural language for PostgreSQL"
351DESCRIPTION:${PN}-plperl = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500352 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
Patrick Williams213cb262021-08-07 19:21:33 -0500357FILES:${PN}-plpython = "${libdir}/${BPN}/plpython*.so"
358SUMMARY:${PN}-plpython = "The Python procedural language for PostgreSQL"
359DESCRIPTION:${PN}-plpython = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500360 database management system. The postgresql-plpython package contains \
361 the PL/Python procedural language for the backend."