summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/postgresql/postgresql.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-dbs/postgresql/postgresql.inc')
-rw-r--r--meta-oe/recipes-dbs/postgresql/postgresql.inc29
1 files changed, 17 insertions, 12 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
index e609ac33e5..257d27b112 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql.inc
+++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc
@@ -19,11 +19,11 @@ DESCRIPTION = "\
19" 19"
20HOMEPAGE = "http://www.postgresql.com" 20HOMEPAGE = "http://www.postgresql.com"
21LICENSE = "BSD-0-Clause" 21LICENSE = "BSD-0-Clause"
22DEPENDS = "libnsl2 zlib readline tzcode-native" 22DEPENDS = "libnsl2 readline tzcode-native"
23 23
24ARM_INSTRUCTION_SET = "arm" 24ARM_INSTRUCTION_SET = "arm"
25 25
26SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \ 26SRC_URI = "https://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \
27 file://postgresql.init \ 27 file://postgresql.init \
28 file://postgresql-profile \ 28 file://postgresql-profile \
29 file://postgresql.pam \ 29 file://postgresql.pam \
@@ -43,7 +43,6 @@ CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6"
43SYSTEMD_SERVICE:${PN} = "postgresql.service" 43SYSTEMD_SERVICE:${PN} = "postgresql.service"
44SYSTEMD_AUTO_ENABLE:${PN} = "disable" 44SYSTEMD_AUTO_ENABLE:${PN} = "disable"
45 45
46DEPENDS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}"
47pkg_postinst:${PN} () { 46pkg_postinst:${PN} () {
48 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then 47 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then
49 if [ -n "$D" ]; then 48 if [ -n "$D" ]; then
@@ -53,23 +52,29 @@ pkg_postinst:${PN} () {
53 fi 52 fi
54} 53}
55 54
56enable_pam = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" 55PACKAGECONFIG ??= " \
57PACKAGECONFIG ??= "${enable_pam} openssl python uuid libxml tcl nls libxml perl" 56 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \
58PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," 57 openssl python uuid libxml tcl perl zlib \
59PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl ac_cv_file__dev_urandom=yes,openssl," 58"
60PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3"
61PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux,"
62PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," 59PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native,"
63PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"
64PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2"
65PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" 60PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl"
61PACKAGECONFIG[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"
66 72
67EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ 73EXTRA_OECONF += "--enable-thread-safety --disable-rpath \
68 --datadir=${datadir}/${BPN} \ 74 --datadir=${datadir}/${BPN} \
69 --sysconfdir=${sysconfdir}/${BPN} \ 75 --sysconfdir=${sysconfdir}/${BPN} \
70" 76"
71EXTRA_OECONF:sh4 += "--disable-spinlocks" 77EXTRA_OECONF:sh4 += "--disable-spinlocks"
72EXTRA_OECONF:aarch64 += "--disable-spinlocks"
73 78
74DEBUG_OPTIMIZATION:remove:mips = " -Og" 79DEBUG_OPTIMIZATION:remove:mips = " -Og"
75DEBUG_OPTIMIZATION:append:mips = " -O" 80DEBUG_OPTIMIZATION:append:mips = " -O"