blob: 00c01074693c0d2eb698e89c961c512e4e837143 [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"
Andrew Geissler9aee5002022-03-30 16:27:02 +000021LICENSE = "0BSD"
Andrew Geissler595f6302022-01-24 19:11:47 +000022DEPENDS = "libnsl2 readline tzcode-native"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023
24ARM_INSTRUCTION_SET = "arm"
25
Andrew Geissler595f6302022-01-24 19:11:47 +000026SRC_URI = "https://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027 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 -050046pkg_postinst:${PN} () {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050047 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 Geissler595f6302022-01-24 19:11:47 +000055PACKAGECONFIG ??= " \
56 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \
57 openssl python uuid libxml tcl perl zlib \
58"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050059PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native,"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050060PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl"
Andrew Geissler595f6302022-01-24 19:11:47 +000061PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3"
62PACKAGECONFIG[gssapi] = "--with-gssapi,--without-gssapi,krb5"
63PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam"
64PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
65PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd systemd-systemctl-native"
66PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux"
67PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2"
68PACKAGECONFIG[libxslt] = "--with-libxslt,--without-libxslt,libxslt"
69PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
70PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4"
71PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050072
73EXTRA_OECONF += "--enable-thread-safety --disable-rpath \
74 --datadir=${datadir}/${BPN} \
75 --sysconfdir=${sysconfdir}/${BPN} \
76"
Patrick Williams213cb262021-08-07 19:21:33 -050077EXTRA_OECONF:sh4 += "--disable-spinlocks"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050078
Patrick Williams213cb262021-08-07 19:21:33 -050079DEBUG_OPTIMIZATION:remove:mips = " -Og"
80DEBUG_OPTIMIZATION:append:mips = " -O"
81BUILD_OPTIMIZATION:remove:mips = " -Og"
82BUILD_OPTIMIZATION:append:mips = " -O"
Brad Bishopc342db32019-05-15 21:57:59 -040083
Patrick Williams213cb262021-08-07 19:21:33 -050084DEBUG_OPTIMIZATION:remove:mipsel = " -Og"
85DEBUG_OPTIMIZATION:append:mipsel = " -O"
86BUILD_OPTIMIZATION:remove:mipsel = " -Og"
87BUILD_OPTIMIZATION:append:mipsel = " -O"
Brad Bishopc342db32019-05-15 21:57:59 -040088
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080089PACKAGES_DYNAMIC += "^${PN}-plperl \
90 ^${PN}-pltcl \
91 ^${PN}-plpython \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050092"
93
Patrick Williams213cb262021-08-07 19:21:33 -050094python populate_packages:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050095
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080096 def fill_more(name):
Patrick Williamsb48b7b42016-08-17 15:04:38 -050097 if name is None or name.strip() == "":
98 return
99
100 fpack=d.getVar('PACKAGES', False) or ""
101 fpack="${PN}-" + name + " " + fpack
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500102 d.setVar('PACKAGES', fpack)
103
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500104 conf=(d.getVar('PACKAGECONFIG') or "").split()
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500105 pack=d.getVar('PACKAGES', False) or ""
106 bb.debug(1, "PACKAGECONFIG=%s" % conf)
107 bb.debug(1, "PACKAGES1=%s" % pack )
108
109 if "perl" in conf :
110 fill_more("plperl")
111
112 if "tcl" in conf:
113 fill_more("pltcl")
114
115 if "python" in conf:
116 fill_more("plpython")
117
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500118 pack=d.getVar('PACKAGES') or ""
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500119 bb.debug(1, "PACKAGES2=%s" % pack)
120
121}
122
Brad Bishop19323692019-04-05 15:28:33 -0400123# This will make native perl use target settings (for include dirs etc.)
124export PERLCONFIGTARGET = "${@is_target(d)}"
125export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}"
126
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500127do_configure() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500128 # do_configure
129 autotools_do_configure
130
Patrick Williams213cb262021-08-07 19:21:33 -0500131 # do_configure:append
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500132 # workaround perl package related bugs
133 sed -i -e "s:-L/usr/local/lib:-L=/usr/local/lib:g" \
134 ${B}/src/Makefile.global
135 LIBPNA="\${STAGING_LIBDIR_NATIVE}/perl-native"
136 LIBNA="\${STAGING_LIBDIR_NATIVE}"
137 BLIBNA="\${STAGING_BASE_LIBDIR_NATIVE}"
138 sed -i -e "/^perl_archlibexp/s:${LIBPNA}:${STAGING_LIBDIR}:g" \
139 ${B}/src/Makefile.global
Brad Bishop19323692019-04-05 15:28:33 -0400140 sed -i -e "/^perl_privlibexp/s:${libdir}:${STAGING_LIBDIR}:g" \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500141 ${B}/src/Makefile.global
142 # remove the rpath, replace with correct lib path
143 sed -i \
144 -e "/^perl_embed_ldflags/s:-Wl,-rpath,${LIBNA}::g" \
145 -e "/^perl_embed_ldflags/s:-Wl,-rpath,${BLIBNA}::g" \
146 -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${LIBNA}::g" \
147 -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${BLIBNA}::g" \
148 -e "/^perl_embed_ldflags/s:${LIBPNA}:${STAGING_LIBDIR}:g" \
149 -e "/^perl_embed_ldflags/s:${LIBNA}:${STAGING_LIBDIR}:g" \
150 -e "/^perl_embed_ldflags/s:${BLIBNA}:${STAGING_BASELIBDIR}:g" \
151 -e "/^TCLSH/s:=.*:= ${bindir}/tclsh:g" \
152 ${B}/src/Makefile.global
153
154 if ${@bb.utils.contains('PACKAGECONFIG', 'perl', 'true', 'false', d)}; then
155 # workaround perl package's libperl.so problem
156 # we are using perlnative so this perl should have same version
157 perl_version=`perl -v 2>/dev/null | \
158 sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
159 if [ ! -h "${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so" -a \
160 ! -h "${STAGING_LIBDIR}/libperl.so" ]; then
161 ln -sf ../../../libperl.so.5 \
162 ${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so
163 fi
164 fi
165}
166
Patrick Williams213cb262021-08-07 19:21:33 -0500167do_compile:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500168 oe_runmake -C contrib all
169}
170
171# server needs to configure user and group
172usernum = "28"
173groupnum = "28"
174USERADD_PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -0500175USERADD_PARAM:${PN} = "-M -g postgres -o -r -d ${localstatedir}/lib/${BPN} \
Andrew Geissler1548c072019-02-22 16:03:50 -0600176 -s /bin/sh -c 'PostgreSQL Server' -u ${usernum} postgres"
Patrick Williams213cb262021-08-07 19:21:33 -0500177GROUPADD_PARAM:${PN} = "-g ${groupnum} -o -r postgres"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500178
179INITSCRIPT_PACKAGES = "${PN}"
180INITSCRIPT_NAME = "${BPN}-server"
181INITSCRIPT_PARAMS = "start 64 . stop 36 0 1 2 3 4 5 6 ."
182
Patrick Williams213cb262021-08-07 19:21:33 -0500183do_install:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500184 # install contrib
185 oe_runmake DESTDIR=${D} -C contrib install
186 # install tutorial
187 install -d -m 0755 ${D}${libdir}/${BPN}/tutorial
188 install ${B}/src/tutorial/* ${D}${libdir}/${BPN}/tutorial
189
190 # install COPYRIGHT README HISTORY
191 install -d -m 0755 ${D}${docdir}/${BPN}
Patrick Williamsddad1a12017-02-23 20:36:32 -0600192 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 -0500193 [ -f $i ] && install $i ${D}${docdir}/${BPN}
194 done
195
196 # install dirs and server init
197 install -d ${D}${sysconfdir}/init.d
198 install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server
199 sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server
200 install -m 0755 ${WORKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup
201 install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data
202 install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups
Andrew Geissler1548c072019-02-22 16:03:50 -0600203 install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500204 chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN}
205 # multiple server config directory
206 install -d -m 700 ${D}${sysconfdir}/default/${BPN}
207
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500208 if [ "${@d.getVar('enable_pam')}" = "pam" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500209 install -d ${D}${sysconfdir}/pam.d
210 install -m 644 ${WORKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql
211 fi
212
213 # Install systemd unit files
214 install -d ${D}${systemd_unitdir}/system
215 install -m 0644 ${WORKDIR}/postgresql.service ${D}${systemd_unitdir}/system
216 sed -i -e 's,@BINDIR@,${bindir},g' \
217 ${D}${systemd_unitdir}/system/postgresql.service
218}
219
220SSTATE_SCAN_FILES += "Makefile.global"
Patrick Williams213cb262021-08-07 19:21:33 -0500221SSTATE_SCAN_FILES:remove = "*_config"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500222
223PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800224 libecpg-compat libecpg-compat-dev \
225 libecpg libecpg-dev libecpg-staticdev libecpg-doc \
226 libpq libpq-dev libpq-staticdev \
227 libpgtypes libpgtypes-staticdev libpgtypes-dev \
228 ${PN}-contrib \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500229"
230
Patrick Williams213cb262021-08-07 19:21:33 -0500231RPROVIDES:${PN}-dbg += "libecpg-compat-dbg \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800232 libecpg-dbg \
233 libpq-dbg \
234 libpgtypes-dbg \
235 ${PN}-contrib-dbg \
236 ${PN}-pltcl-dbg \
237 ${PN}-plpython-dbg \
238 ${PN}-plperl-dbg \
239 "
240
Patrick Williams213cb262021-08-07 19:21:33 -0500241FILES:${PN} += "${sysconfdir}/init.d/${BPN}-server \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500242 ${localstatedir}/lib/${BPN}/data ${localstatedir}/lib/${BPN}/backups \
Andrew Geissler1548c072019-02-22 16:03:50 -0600243 ${localstatedir}/lib/${BPN}/.profile ${sysconfdir}/default/${BPN} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500244 ${libdir}/${BPN}/dict_snowball.so ${libdir}/${BPN}/plpgsql.so \
245 ${libdir}/${BPN}/euc2004_sjis2004.so \
246 ${libdir}/${BPN}/libpqwalreceiver.so \
247 ${libdir}/${BPN}/*_and_*.so \
248 ${@'${sysconfdir}/pam.d/postgresql' \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500249 if 'pam' == d.getVar('enable_pam') \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500250 else ''} \
251"
252
Patrick Williams213cb262021-08-07 19:21:33 -0500253FILES:${PN}-client = "${bindir}/clusterdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500254 ${bindir}/createdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500255 ${bindir}/createuser \
256 ${bindir}/dropdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500257 ${bindir}/dropuser \
258 ${bindir}/pg_dump \
259 ${bindir}/pg_dumpall \
260 ${bindir}/pg_restore \
261 ${bindir}/psql \
262 ${bindir}/reindexdb \
263 ${bindir}/vacuumdb \
264 ${bindir}/vacuumlo \
265 ${datadir}/${BPN}/psqlrc.sample \
266"
Patrick Williams213cb262021-08-07 19:21:33 -0500267FILES:${PN}-client-doc = "${mandir}/man1/clusterdb.* \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500268 ${mandir}/man1/createdb.* ${mandir}/man1/createlang.* \
269 ${mandir}/man1/createuser.* ${mandir}/man1/dropdb.* \
270 ${mandir}/man1/droplang.* ${mandir}/man1/dropuser.* \
271 ${mandir}/man1/pg_dump.* ${mandir}/man1/pg_dumpall.* \
272 ${mandir}/man1/pg_restore.* ${mandir}/man1/psql.* \
273 ${mandir}/man1/reindexdb.* ${mandir}/man1/vacuumdb.* \
274 ${mandir}/man7/* \
275"
Patrick Williams213cb262021-08-07 19:21:33 -0500276FILES:${PN}-doc += "${docdir}/${BPN}/html ${libdir}/${BPN}/tutorial/ \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500277 ${mandir}/man1/initdb.* ${mandir}/man1/pg_controldata.* \
278 ${mandir}/man1/pg_ctl.* ${mandir}/man1/pg_resetxlog.* \
279 ${mandir}/man1/postgres.* ${mandir}/man1/postmaster.* \
280"
Patrick Williams213cb262021-08-07 19:21:33 -0500281FILES:${PN}-timezone = "${datadir}/${BPN}/timezone \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500282 ${datadir}/${BPN}/timezonesets \
283"
Patrick Williams213cb262021-08-07 19:21:33 -0500284RDEPENDS:${PN} += "${PN}-timezone"
285FILES:${PN}-server-dev = "${includedir}/${BPN}/server \
Brad Bishop15ae2502019-06-18 21:44:24 -0400286 ${libdir}/${BPN}/pgxs \
287"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500288
Patrick Williams213cb262021-08-07 19:21:33 -0500289FILES:libecpg = "${libdir}/libecpg*${SOLIBS}"
290FILES:libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500291 ${libdir}/libpgtypes*${SOLIBSDEV} \
292 ${includedir}/ecpg*.h ${includedir}/${BPN}/ecpg*.h \
293 ${includedir}/pgtypes*.h ${includedir}/${BPN}/informix \
294 ${includedir}/sql3types.h ${includedir}/sqlca.h \
295"
Patrick Williams213cb262021-08-07 19:21:33 -0500296FILES:libecpg-doc = "${mandir}/man1/ecpg.*"
297FILES:libecpg-staticdev = "${libdir}/libecpg*.a"
298SECTION:libecpg-staticdev = "devel"
299RDEPENDS:libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500300
Patrick Williams213cb262021-08-07 19:21:33 -0500301FILES:libpq = "${libdir}/libpq*${SOLIBS}"
302FILES:libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500303 ${includedir} \
304"
Patrick Williams213cb262021-08-07 19:21:33 -0500305FILES:libpq-staticdev = "${libdir}/libpq*.a ${libdir}/libpgport.a"
306SECTION:libpq-staticdev = "devel"
307RDEPENDS:libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500308
Patrick Williams213cb262021-08-07 19:21:33 -0500309FILES:libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}"
310FILES:libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}"
311FILES:libpgtypes = "${libdir}/libpgtypes*${SOLIBS}"
312FILES:libpgtypes-staticdev = "${libdir}/libpgtypes*.a"
313FILES:libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500314
Patrick Williams213cb262021-08-07 19:21:33 -0500315FILES:${PN}-contrib = " ${bindir}/oid2name ${bindir}/pg_standby \
Andrew Geisslerd221e032020-07-10 16:13:21 -0500316 ${bindir}/pgbench \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500317 ${S}/contrib/spi/*.example \
318 ${libdir}/${BPN}/_int.so ${libdir}/${BPN}/adminpack.so \
319 ${libdir}/${BPN}/autoinc.so ${libdir}/${BPN}/auto_explain.so \
320 ${libdir}/${BPN}/auth_delay.so ${libdir}/${BPN}/btree_gin.so \
321 ${libdir}/${BPN}/btree_gist.so ${libdir}/${BPN}/.so \
322 ${libdir}/${BPN}/chkpass.so ${libdir}/${BPN}/citext.so \
323 ${libdir}/${BPN}/cube.so ${libdir}/${BPN}/dblink.so \
324 ${libdir}/${BPN}/dict_int.so ${libdir}/${BPN}/dict_xsyn.so \
325 ${libdir}/${BPN}/dummy_seclabel.so ${libdir}/${BPN}/earthdistance.so \
326 ${libdir}/${BPN}/file_fdw.so ${libdir}/${BPN}/fuzzystrmatch.so \
327 ${libdir}/${BPN}/hstore.so ${libdir}/${BPN}/insert_username.so \
328 ${libdir}/${BPN}/isn.so ${libdir}/${BPN}/lo.so \
329 ${libdir}/${BPN}/ltree.so ${libdir}/${BPN}/moddatetime.so \
330 ${libdir}/${BPN}/pageinspect.so ${libdir}/${BPN}/pg_buffercache.so \
331 ${libdir}/${BPN}/pg_freespacemap.so ${libdir}/${BPN}/pg_trgm.so \
332 ${libdir}/${BPN}/pgcrypto.so ${libdir}/${BPN}/pgrowlocks.so \
333 ${libdir}/${BPN}/pgstattuple.so ${libdir}/${BPN}/pg_stat_statements.so \
334 ${libdir}/${BPN}/refint.so ${libdir}/${BPN}/seg.so \
335 ${libdir}/${BPN}/sslinfo.so \
336 ${libdir}/${BPN}/tablefunc.so \
337 ${libdir}/${BPN}/test_parser.so ${libdir}/${BPN}/timetravel.so \
Andrew Geisslerd688a012020-09-18 13:36:00 -0500338 ${libdir}/${BPN}/uuid-ossp.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500339 ${libdir}/${BPN}/pgxml.so ${libdir}/${BPN}/passwordcheck.so \
340 ${libdir}/${BPN}/pg_upgrade_support.so ${libdir}/${BPN}/.so \
341 ${libdir}/${BPN}/unaccent.so \
342"
Patrick Williams213cb262021-08-07 19:21:33 -0500343DESCRIPTION:${PN}-contrib = "The postgresql-contrib package contains \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500344 contributed packages that are included in the PostgreSQL distribution."
345
Patrick Williams213cb262021-08-07 19:21:33 -0500346FILES:${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500347 ${binddir}/pltcl_listmod ${bindir}/pltcl_loadmod \
348 ${datadir}/${BPN}/unknown.pltcl"
Patrick Williams213cb262021-08-07 19:21:33 -0500349SUMMARY:${PN}-pltcl = "The Tcl procedural language for PostgreSQL"
350DESCRIPTION:${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500351 database management system. The postgresql-pltcl package contains the PL/Tcl \
352 procedural language for the backend."
353
Patrick Williams213cb262021-08-07 19:21:33 -0500354FILES:${PN}-plperl = "${libdir}/${BPN}/plperl.so"
355SUMMARY:${PN}-plperl = "The Perl procedural language for PostgreSQL"
356DESCRIPTION:${PN}-plperl = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500357 database management system. The postgresql-plperl package contains the \
358 PL/Perl procedural language for the backend."
359
360# In version 8, it will be plpython.so
361# In version 9, it might be plpython{2,3}.so depending on python2 or 3
Patrick Williams213cb262021-08-07 19:21:33 -0500362FILES:${PN}-plpython = "${libdir}/${BPN}/plpython*.so"
363SUMMARY:${PN}-plpython = "The Python procedural language for PostgreSQL"
364DESCRIPTION:${PN}-plpython = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500365 database management system. The postgresql-plpython package contains \
366 the PL/Python procedural language for the backend."