diff options
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.bb | 54 |
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 @@ | |||
1 | SUMMARY = "A language independent connection pool server for PostgreSQL." | ||
2 | |||
3 | DESCRIPTION = "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 | |||
8 | HOMEPAGE = "http://pgpool.net" | ||
9 | |||
10 | LICENSE = "BSD-2-Clause" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9" | ||
12 | |||
13 | SRC_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 | " | ||
19 | SRC_URI[sha256sum] = "d1392e74ce2807f8ae628872cb1ab7914249921180dc99df40a1d602647a10fd" | ||
20 | |||
21 | S = "${UNPACKDIR}/pgpool-II-${PV}" | ||
22 | |||
23 | inherit autotools-brokensep systemd | ||
24 | |||
25 | SYSTEMD_SERVICE:${PN} = "pgpool.service" | ||
26 | |||
27 | PACKAGECONFIG ??= " openssl libmemcached postgresql \ | ||
28 | " | ||
29 | PACKAGECONFIG[pam] = "--with-pam,,libpam" | ||
30 | PACKAGECONFIG[openssl] = "--with-openssl,,openssl" | ||
31 | PACKAGECONFIG[libmemcached] = "--with-memcached=${STAGING_INCDIR}/libmemcachedutil-1.0,,libmemcached" | ||
32 | PACKAGECONFIG[postgresql] = "--with-pgsql-includedir=${STAGING_INCDIR}/postgresql,, postgresql" | ||
33 | |||
34 | EXTRA_OECONF += "--disable-static \ | ||
35 | --disable-rpath \ | ||
36 | " | ||
37 | FILES:${PN} += "${datadir}/pgpool-II/ " | ||
38 | |||
39 | do_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 | |||
44 | do_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/ | ||
54 | CFLAGS += "-std=gnu17" | ||