summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/pgpool2/pgpool2_4.5.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/pgpool2/pgpool2_4.5.4.bb')
-rw-r--r--meta-networking/recipes-support/pgpool2/pgpool2_4.5.4.bb54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/pgpool2/pgpool2_4.5.4.bb b/meta-networking/recipes-support/pgpool2/pgpool2_4.5.4.bb
new file mode 100644
index 0000000000..706e7360a2
--- /dev/null
+++ b/meta-networking/recipes-support/pgpool2/pgpool2_4.5.4.bb
@@ -0,0 +1,54 @@
1SUMMARY = "A language independent connection pool server for PostgreSQL."
2
3DESCRIPTION = "Pgpool-II is a middleware that works between PostgreSQL \
4 servers and a PostgreSQL database client. It is distributed \
5 under a license similar to BSD and MIT. It provides the \
6 following features."
7
8HOMEPAGE = "http://pgpool.net"
9
10LICENSE = "BSD-2-Clause"
11LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9"
12
13SRC_URI = "https://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \
14 file://0001-Fix-build-error-when-build-this-file.patch \
15 file://define_SIGNAL_ARGS.patch \
16 file://pgpool.sysconfig \
17 file://pgpool.service \
18 "
19SRC_URI[sha256sum] = "d1392e74ce2807f8ae628872cb1ab7914249921180dc99df40a1d602647a10fd"
20
21S = "${UNPACKDIR}/pgpool-II-${PV}"
22
23inherit autotools-brokensep systemd
24
25SYSTEMD_SERVICE:${PN} = "pgpool.service"
26
27PACKAGECONFIG ??= " openssl libmemcached postgresql \
28"
29PACKAGECONFIG[pam] = "--with-pam,,libpam"
30PACKAGECONFIG[openssl] = "--with-openssl,,openssl"
31PACKAGECONFIG[libmemcached] = "--with-memcached=${STAGING_INCDIR}/libmemcachedutil-1.0,,libmemcached"
32PACKAGECONFIG[postgresql] = "--with-pgsql-includedir=${STAGING_INCDIR}/postgresql,, postgresql"
33
34EXTRA_OECONF += "--disable-static \
35 --disable-rpath \
36 "
37FILES:${PN} += "${datadir}/pgpool-II/ "
38
39do_configure:append() {
40 echo "#define HAVE_STRCHRNUL 1" >> ${S}/src/include/config.h
41 sed -i "s,#define USE_REPL_SNPRINTF 1,/* #undef USE_REPL_SNPRINTF*/,g" ${S}/src/include/config.h
42}
43
44do_install:append() {
45 install -d ${D}${sysconfdir}/pgpool-II
46 install -D -m 0644 ${UNPACKDIR}/pgpool.sysconfig ${D}${sysconfdir}/pgpool-II/pgpool.conf
47 install -D -m 0644 ${S}/src/sample/pcp.conf.sample ${D}${sysconfdir}/pgpool-II/pcp.conf
48 install -D -m 0644 ${S}/src/sample/pool_hba.conf.sample ${D}${sysconfdir}/pgpool-II/pool_hba.conf
49 install -Dm 0644 ${UNPACKDIR}/pgpool.service ${D}${systemd_system_unitdir}/pgpool.service
50}
51
52# Avoid build failure with gcc-15:
53# http://errors.yoctoproject.org/Errors/Details/853019/
54CFLAGS += "-std=gnu17"