blob: e29a5bef778f72c3871e8cf21d125a56c2bb8e0c [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}"
Patrick Williams03514f12024-04-05 07:04:11 -050038export LDFLAGS_EX_BE = "-Wl,--export-dynamic"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050039
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050040inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base multilib_header
Patrick Williamsb48b7b42016-08-17 15:04:38 -050041
Brad Bishop6e60e8b2018-02-01 10:27:11 -050042CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6"
Patrick Williamsddad1a12017-02-23 20:36:32 -060043
Patrick Williams213cb262021-08-07 19:21:33 -050044SYSTEMD_SERVICE:${PN} = "postgresql.service"
45SYSTEMD_AUTO_ENABLE:${PN} = "disable"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050046
Patrick Williams213cb262021-08-07 19:21:33 -050047pkg_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
Andrew Geissler595f6302022-01-24 19:11:47 +000056PACKAGECONFIG ??= " \
57 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \
Patrick Williamsb58112e2024-03-07 11:16:36 -060058 openssl python uuid libxml tcl perl zlib icu \
Andrew Geissler595f6302022-01-24 19:11:47 +000059"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050060PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native,"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050061PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl"
Andrew Geissler595f6302022-01-24 19:11:47 +000062PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3"
63PACKAGECONFIG[gssapi] = "--with-gssapi,--without-gssapi,krb5"
64PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam"
65PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
66PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd systemd-systemctl-native"
67PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux"
68PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2"
69PACKAGECONFIG[libxslt] = "--with-libxslt,--without-libxslt,libxslt"
70PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
71PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4"
72PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl"
Patrick Williamsb58112e2024-03-07 11:16:36 -060073PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050074
75EXTRA_OECONF += "--enable-thread-safety --disable-rpath \
76 --datadir=${datadir}/${BPN} \
77 --sysconfdir=${sysconfdir}/${BPN} \
78"
Patrick Williams213cb262021-08-07 19:21:33 -050079EXTRA_OECONF:sh4 += "--disable-spinlocks"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050080
Patrick Williams213cb262021-08-07 19:21:33 -050081DEBUG_OPTIMIZATION:remove:mips = " -Og"
82DEBUG_OPTIMIZATION:append:mips = " -O"
83BUILD_OPTIMIZATION:remove:mips = " -Og"
84BUILD_OPTIMIZATION:append:mips = " -O"
Brad Bishopc342db32019-05-15 21:57:59 -040085
Patrick Williams213cb262021-08-07 19:21:33 -050086DEBUG_OPTIMIZATION:remove:mipsel = " -Og"
87DEBUG_OPTIMIZATION:append:mipsel = " -O"
88BUILD_OPTIMIZATION:remove:mipsel = " -Og"
89BUILD_OPTIMIZATION:append:mipsel = " -O"
Brad Bishopc342db32019-05-15 21:57:59 -040090
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080091PACKAGES_DYNAMIC += "^${PN}-plperl \
92 ^${PN}-pltcl \
93 ^${PN}-plpython \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050094"
95
Patrick Williams213cb262021-08-07 19:21:33 -050096python populate_packages:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050097
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080098 def fill_more(name):
Patrick Williamsb48b7b42016-08-17 15:04:38 -050099 if name is None or name.strip() == "":
100 return
101
102 fpack=d.getVar('PACKAGES', False) or ""
103 fpack="${PN}-" + name + " " + fpack
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500104 d.setVar('PACKAGES', fpack)
105
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500106 conf=(d.getVar('PACKAGECONFIG') or "").split()
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500107 pack=d.getVar('PACKAGES', False) or ""
108 bb.debug(1, "PACKAGECONFIG=%s" % conf)
109 bb.debug(1, "PACKAGES1=%s" % pack )
110
111 if "perl" in conf :
112 fill_more("plperl")
113
114 if "tcl" in conf:
115 fill_more("pltcl")
116
117 if "python" in conf:
118 fill_more("plpython")
119
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500120 pack=d.getVar('PACKAGES') or ""
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500121 bb.debug(1, "PACKAGES2=%s" % pack)
122
123}
124
Brad Bishop19323692019-04-05 15:28:33 -0400125# This will make native perl use target settings (for include dirs etc.)
126export PERLCONFIGTARGET = "${@is_target(d)}"
127export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}"
128
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500129do_configure() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500130 # do_configure
131 autotools_do_configure
132
Patrick Williams213cb262021-08-07 19:21:33 -0500133 # do_configure:append
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500134 # workaround perl package related bugs
135 sed -i -e "s:-L/usr/local/lib:-L=/usr/local/lib:g" \
136 ${B}/src/Makefile.global
137 LIBPNA="\${STAGING_LIBDIR_NATIVE}/perl-native"
138 LIBNA="\${STAGING_LIBDIR_NATIVE}"
139 BLIBNA="\${STAGING_BASE_LIBDIR_NATIVE}"
140 sed -i -e "/^perl_archlibexp/s:${LIBPNA}:${STAGING_LIBDIR}:g" \
141 ${B}/src/Makefile.global
Brad Bishop19323692019-04-05 15:28:33 -0400142 sed -i -e "/^perl_privlibexp/s:${libdir}:${STAGING_LIBDIR}:g" \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500143 ${B}/src/Makefile.global
144 # remove the rpath, replace with correct lib path
145 sed -i \
146 -e "/^perl_embed_ldflags/s:-Wl,-rpath,${LIBNA}::g" \
147 -e "/^perl_embed_ldflags/s:-Wl,-rpath,${BLIBNA}::g" \
148 -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${LIBNA}::g" \
149 -e "/^perl_embed_ldflags/s:-Wl,-rpath-link,${BLIBNA}::g" \
150 -e "/^perl_embed_ldflags/s:${LIBPNA}:${STAGING_LIBDIR}:g" \
151 -e "/^perl_embed_ldflags/s:${LIBNA}:${STAGING_LIBDIR}:g" \
152 -e "/^perl_embed_ldflags/s:${BLIBNA}:${STAGING_BASELIBDIR}:g" \
153 -e "/^TCLSH/s:=.*:= ${bindir}/tclsh:g" \
154 ${B}/src/Makefile.global
155
156 if ${@bb.utils.contains('PACKAGECONFIG', 'perl', 'true', 'false', d)}; then
157 # workaround perl package's libperl.so problem
158 # we are using perlnative so this perl should have same version
159 perl_version=`perl -v 2>/dev/null | \
160 sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
161 if [ ! -h "${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so" -a \
162 ! -h "${STAGING_LIBDIR}/libperl.so" ]; then
163 ln -sf ../../../libperl.so.5 \
164 ${STAGING_LIBDIR}/perl/$perl_version/CORE/libperl.so
165 fi
166 fi
167}
168
Patrick Williams213cb262021-08-07 19:21:33 -0500169do_compile:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500170 oe_runmake -C contrib all
171}
172
173# server needs to configure user and group
174usernum = "28"
175groupnum = "28"
176USERADD_PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -0500177USERADD_PARAM:${PN} = "-M -g postgres -o -r -d ${localstatedir}/lib/${BPN} \
Andrew Geissler1548c072019-02-22 16:03:50 -0600178 -s /bin/sh -c 'PostgreSQL Server' -u ${usernum} postgres"
Patrick Williams213cb262021-08-07 19:21:33 -0500179GROUPADD_PARAM:${PN} = "-g ${groupnum} -o -r postgres"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500180
181INITSCRIPT_PACKAGES = "${PN}"
182INITSCRIPT_NAME = "${BPN}-server"
183INITSCRIPT_PARAMS = "start 64 . stop 36 0 1 2 3 4 5 6 ."
184
Patrick Williams213cb262021-08-07 19:21:33 -0500185do_install:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500186 # install contrib
187 oe_runmake DESTDIR=${D} -C contrib install
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500188 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 Williamsb48b7b42016-08-17 15:04:38 -0500189 # install tutorial
190 install -d -m 0755 ${D}${libdir}/${BPN}/tutorial
191 install ${B}/src/tutorial/* ${D}${libdir}/${BPN}/tutorial
192
193 # install COPYRIGHT README HISTORY
194 install -d -m 0755 ${D}${docdir}/${BPN}
Patrick Williamsddad1a12017-02-23 20:36:32 -0600195 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 -0500196 [ -f $i ] && install $i ${D}${docdir}/${BPN}
197 done
198
199 # install dirs and server init
200 install -d ${D}${sysconfdir}/init.d
201 install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server
202 sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server
203 install -m 0755 ${WORKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup
204 install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data
205 install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups
Andrew Geissler1548c072019-02-22 16:03:50 -0600206 install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500207 chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN}
208 # multiple server config directory
209 install -d -m 700 ${D}${sysconfdir}/default/${BPN}
210
Patrick Williams92b42cb2022-09-03 06:53:57 -0500211 if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500212 install -d ${D}${sysconfdir}/pam.d
213 install -m 644 ${WORKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql
214 fi
215
216 # Install systemd unit files
217 install -d ${D}${systemd_unitdir}/system
218 install -m 0644 ${WORKDIR}/postgresql.service ${D}${systemd_unitdir}/system
219 sed -i -e 's,@BINDIR@,${bindir},g' \
220 ${D}${systemd_unitdir}/system/postgresql.service
Patrick Williams92b42cb2022-09-03 06:53:57 -0500221 # Remove the build path
222 if [ -f ${D}${libdir}/${BPN}/pgxs/src/Makefile.global ]; then
223 sed -i -e 's#${RECIPE_SYSROOT}##g' \
224 -e 's#${RECIPE_SYSROOT_NATIVE}##g' \
225 -e 's#${WORKDIR}##g' \
226 -e 's#${TMPDIR}##g' \
227 ${D}${libdir}/${BPN}/pgxs/src/Makefile.global
228 fi
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500229}
230
231SSTATE_SCAN_FILES += "Makefile.global"
Patrick Williams213cb262021-08-07 19:21:33 -0500232SSTATE_SCAN_FILES:remove = "*_config"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500233
Patrick Williamsb58112e2024-03-07 11:16:36 -0600234postgresql_fix_sources () {
235 for f in ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/Util.c \
236 ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/SPI.c; do
237 if [ -e $f ]; then
238 sed -i -e 's#${B}/../${P}#${TARGET_DBGSRC_DIR}#g' $f
239 fi
240 done
241}
242PACKAGESPLITFUNCS =+ "postgresql_fix_sources"
243
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500244PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800245 libecpg-compat libecpg-compat-dev \
246 libecpg libecpg-dev libecpg-staticdev libecpg-doc \
247 libpq libpq-dev libpq-staticdev \
248 libpgtypes libpgtypes-staticdev libpgtypes-dev \
249 ${PN}-contrib \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500250"
251
Patrick Williams213cb262021-08-07 19:21:33 -0500252RPROVIDES:${PN}-dbg += "libecpg-compat-dbg \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800253 libecpg-dbg \
254 libpq-dbg \
255 libpgtypes-dbg \
256 ${PN}-contrib-dbg \
257 ${PN}-pltcl-dbg \
258 ${PN}-plpython-dbg \
259 ${PN}-plperl-dbg \
260 "
261
Patrick Williams213cb262021-08-07 19:21:33 -0500262FILES:${PN} += "${sysconfdir}/init.d/${BPN}-server \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500263 ${localstatedir}/lib/${BPN}/data ${localstatedir}/lib/${BPN}/backups \
Andrew Geissler1548c072019-02-22 16:03:50 -0600264 ${localstatedir}/lib/${BPN}/.profile ${sysconfdir}/default/${BPN} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500265 ${libdir}/${BPN}/dict_snowball.so ${libdir}/${BPN}/plpgsql.so \
266 ${libdir}/${BPN}/euc2004_sjis2004.so \
267 ${libdir}/${BPN}/libpqwalreceiver.so \
268 ${libdir}/${BPN}/*_and_*.so \
269 ${@'${sysconfdir}/pam.d/postgresql' \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500270 if 'pam' == d.getVar('enable_pam') \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500271 else ''} \
272"
273
Patrick Williams213cb262021-08-07 19:21:33 -0500274FILES:${PN}-client = "${bindir}/clusterdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500275 ${bindir}/createdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500276 ${bindir}/createuser \
277 ${bindir}/dropdb \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500278 ${bindir}/dropuser \
279 ${bindir}/pg_dump \
280 ${bindir}/pg_dumpall \
281 ${bindir}/pg_restore \
282 ${bindir}/psql \
283 ${bindir}/reindexdb \
284 ${bindir}/vacuumdb \
285 ${bindir}/vacuumlo \
286 ${datadir}/${BPN}/psqlrc.sample \
287"
Patrick Williams213cb262021-08-07 19:21:33 -0500288FILES:${PN}-client-doc = "${mandir}/man1/clusterdb.* \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500289 ${mandir}/man1/createdb.* ${mandir}/man1/createlang.* \
290 ${mandir}/man1/createuser.* ${mandir}/man1/dropdb.* \
291 ${mandir}/man1/droplang.* ${mandir}/man1/dropuser.* \
292 ${mandir}/man1/pg_dump.* ${mandir}/man1/pg_dumpall.* \
293 ${mandir}/man1/pg_restore.* ${mandir}/man1/psql.* \
294 ${mandir}/man1/reindexdb.* ${mandir}/man1/vacuumdb.* \
295 ${mandir}/man7/* \
296"
Patrick Williams213cb262021-08-07 19:21:33 -0500297FILES:${PN}-doc += "${docdir}/${BPN}/html ${libdir}/${BPN}/tutorial/ \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500298 ${mandir}/man1/initdb.* ${mandir}/man1/pg_controldata.* \
299 ${mandir}/man1/pg_ctl.* ${mandir}/man1/pg_resetxlog.* \
300 ${mandir}/man1/postgres.* ${mandir}/man1/postmaster.* \
301"
Patrick Williams213cb262021-08-07 19:21:33 -0500302FILES:${PN}-timezone = "${datadir}/${BPN}/timezone \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500303 ${datadir}/${BPN}/timezonesets \
304"
Patrick Williams213cb262021-08-07 19:21:33 -0500305RDEPENDS:${PN} += "${PN}-timezone"
306FILES:${PN}-server-dev = "${includedir}/${BPN}/server \
Brad Bishop15ae2502019-06-18 21:44:24 -0400307 ${libdir}/${BPN}/pgxs \
308"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500309
Patrick Williams213cb262021-08-07 19:21:33 -0500310FILES:libecpg = "${libdir}/libecpg*${SOLIBS}"
311FILES:libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500312 ${libdir}/libpgtypes*${SOLIBSDEV} \
313 ${includedir}/ecpg*.h ${includedir}/${BPN}/ecpg*.h \
314 ${includedir}/pgtypes*.h ${includedir}/${BPN}/informix \
315 ${includedir}/sql3types.h ${includedir}/sqlca.h \
316"
Patrick Williams213cb262021-08-07 19:21:33 -0500317FILES:libecpg-doc = "${mandir}/man1/ecpg.*"
318FILES:libecpg-staticdev = "${libdir}/libecpg*.a"
319SECTION:libecpg-staticdev = "devel"
320RDEPENDS:libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500321
Patrick Williams213cb262021-08-07 19:21:33 -0500322FILES:libpq = "${libdir}/libpq*${SOLIBS}"
323FILES:libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500324 ${includedir} \
325"
Patrick Williams213cb262021-08-07 19:21:33 -0500326FILES:libpq-staticdev = "${libdir}/libpq*.a ${libdir}/libpgport.a"
327SECTION:libpq-staticdev = "devel"
328RDEPENDS:libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500329
Patrick Williams213cb262021-08-07 19:21:33 -0500330FILES:libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}"
331FILES:libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}"
332FILES:libpgtypes = "${libdir}/libpgtypes*${SOLIBS}"
333FILES:libpgtypes-staticdev = "${libdir}/libpgtypes*.a"
334FILES:libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h"
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500335
Patrick Williams213cb262021-08-07 19:21:33 -0500336FILES:${PN}-contrib = " ${bindir}/oid2name ${bindir}/pg_standby \
Andrew Geisslerd221e032020-07-10 16:13:21 -0500337 ${bindir}/pgbench \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500338 ${S}/contrib/spi/*.example \
339 ${libdir}/${BPN}/_int.so ${libdir}/${BPN}/adminpack.so \
340 ${libdir}/${BPN}/autoinc.so ${libdir}/${BPN}/auto_explain.so \
341 ${libdir}/${BPN}/auth_delay.so ${libdir}/${BPN}/btree_gin.so \
342 ${libdir}/${BPN}/btree_gist.so ${libdir}/${BPN}/.so \
343 ${libdir}/${BPN}/chkpass.so ${libdir}/${BPN}/citext.so \
344 ${libdir}/${BPN}/cube.so ${libdir}/${BPN}/dblink.so \
345 ${libdir}/${BPN}/dict_int.so ${libdir}/${BPN}/dict_xsyn.so \
346 ${libdir}/${BPN}/dummy_seclabel.so ${libdir}/${BPN}/earthdistance.so \
347 ${libdir}/${BPN}/file_fdw.so ${libdir}/${BPN}/fuzzystrmatch.so \
348 ${libdir}/${BPN}/hstore.so ${libdir}/${BPN}/insert_username.so \
349 ${libdir}/${BPN}/isn.so ${libdir}/${BPN}/lo.so \
350 ${libdir}/${BPN}/ltree.so ${libdir}/${BPN}/moddatetime.so \
351 ${libdir}/${BPN}/pageinspect.so ${libdir}/${BPN}/pg_buffercache.so \
352 ${libdir}/${BPN}/pg_freespacemap.so ${libdir}/${BPN}/pg_trgm.so \
353 ${libdir}/${BPN}/pgcrypto.so ${libdir}/${BPN}/pgrowlocks.so \
354 ${libdir}/${BPN}/pgstattuple.so ${libdir}/${BPN}/pg_stat_statements.so \
355 ${libdir}/${BPN}/refint.so ${libdir}/${BPN}/seg.so \
356 ${libdir}/${BPN}/sslinfo.so \
357 ${libdir}/${BPN}/tablefunc.so \
358 ${libdir}/${BPN}/test_parser.so ${libdir}/${BPN}/timetravel.so \
Andrew Geisslerd688a012020-09-18 13:36:00 -0500359 ${libdir}/${BPN}/uuid-ossp.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500360 ${libdir}/${BPN}/pgxml.so ${libdir}/${BPN}/passwordcheck.so \
361 ${libdir}/${BPN}/pg_upgrade_support.so ${libdir}/${BPN}/.so \
362 ${libdir}/${BPN}/unaccent.so \
363"
Patrick Williams213cb262021-08-07 19:21:33 -0500364DESCRIPTION:${PN}-contrib = "The postgresql-contrib package contains \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500365 contributed packages that are included in the PostgreSQL distribution."
366
Patrick Williams213cb262021-08-07 19:21:33 -0500367FILES:${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500368 ${binddir}/pltcl_listmod ${bindir}/pltcl_loadmod \
369 ${datadir}/${BPN}/unknown.pltcl"
Patrick Williams213cb262021-08-07 19:21:33 -0500370SUMMARY:${PN}-pltcl = "The Tcl procedural language for PostgreSQL"
371DESCRIPTION:${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500372 database management system. The postgresql-pltcl package contains the PL/Tcl \
373 procedural language for the backend."
374
Patrick Williams213cb262021-08-07 19:21:33 -0500375FILES:${PN}-plperl = "${libdir}/${BPN}/plperl.so"
376SUMMARY:${PN}-plperl = "The Perl procedural language for PostgreSQL"
377DESCRIPTION:${PN}-plperl = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500378 database management system. The postgresql-plperl package contains the \
379 PL/Perl procedural language for the backend."
380
381# In version 8, it will be plpython.so
382# In version 9, it might be plpython{2,3}.so depending on python2 or 3
Patrick Williams213cb262021-08-07 19:21:33 -0500383FILES:${PN}-plpython = "${libdir}/${BPN}/plpython*.so"
384SUMMARY:${PN}-plpython = "The Python procedural language for PostgreSQL"
385DESCRIPTION:${PN}-plpython = "PostgreSQL is an advanced Object-Relational \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500386 database management system. The postgresql-plpython package contains \
387 the PL/Python procedural language for the backend."