diff options
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb')
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb | 157 |
1 files changed, 0 insertions, 157 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb deleted file mode 100644 index ab4a8d1825..0000000000 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb +++ /dev/null | |||
@@ -1,157 +0,0 @@ | |||
1 | SUMMARY = "Alternative system logger daemon" | ||
2 | DESCRIPTION = "syslog-ng, as the name shows, is a syslogd replacement, \ | ||
3 | but with new functionality for the new generation. The original syslogd \ | ||
4 | allows messages only to be sorted based on priority/facility pairs; \ | ||
5 | syslog-ng adds the possibility to filter based on message contents using \ | ||
6 | regular expressions. The new configuration scheme is intuitive and powerful. \ | ||
7 | Forwarding logs over TCP and remembering all forwarding hops makes it \ | ||
8 | ideal for firewalled environments. \ | ||
9 | " | ||
10 | HOMEPAGE = "http://www.balabit.com/network-security/syslog-ng/opensource-logging-system" | ||
11 | |||
12 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | ||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=924958cefc9f7de3e0b818832b8a1cec" | ||
14 | |||
15 | # util-linux added to get libuuid | ||
16 | DEPENDS = "libpcre flex glib-2.0 openssl util-linux bison-native curl" | ||
17 | |||
18 | SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ | ||
19 | file://syslog-ng.conf.systemd \ | ||
20 | file://syslog-ng.conf.sysvinit \ | ||
21 | file://initscript \ | ||
22 | file://volatiles.03_syslog-ng \ | ||
23 | file://syslog-ng-tmp.conf \ | ||
24 | file://syslog-ng.service-the-syslog-ng-service.patch \ | ||
25 | file://0001-Fix-buildpaths-warning.patch \ | ||
26 | file://0001-macros-guard-ipv6-code-with-SYSLOG_NG_ENABLE_IPV6.patch \ | ||
27 | " | ||
28 | SRC_URI:append:powerpc64le = " file://0001-plugin.c-workaround-powerpc64le-segfaults-error.patch" | ||
29 | |||
30 | SRC_URI[sha256sum] = "b69e3360dfb96a754a4e1cbead4daef37128b1152a23572356db4ab64a475d4f" | ||
31 | |||
32 | UPSTREAM_CHECK_URI = "https://github.com/balabit/syslog-ng/releases" | ||
33 | |||
34 | CVE_STATUS[CVE-2022-38725] = "cpe-incorrect: cve-check wrongly matches cpe:2.3:a:oneidentity:syslog-ng:*:*:*:*:premium:*:*:* < 7.0.32" | ||
35 | |||
36 | inherit autotools gettext systemd pkgconfig update-rc.d multilib_header | ||
37 | |||
38 | EXTRA_OECONF = " \ | ||
39 | --enable-dynamic-linking \ | ||
40 | --disable-sub-streams \ | ||
41 | --disable-pacct \ | ||
42 | --localstatedir=${localstatedir}/lib/${BPN} \ | ||
43 | --sysconfdir=${sysconfdir}/${BPN} \ | ||
44 | --with-module-dir=${libdir}/${BPN} \ | ||
45 | --with-sysroot=${STAGING_DIR_HOST} \ | ||
46 | --without-mongoc --disable-mongodb \ | ||
47 | --with-librabbitmq-client=no \ | ||
48 | --disable-python \ | ||
49 | --disable-java --disable-java-modules \ | ||
50 | --with-pidfile-dir=${localstatedir}/run/${BPN} \ | ||
51 | " | ||
52 | |||
53 | PACKAGECONFIG ??= " \ | ||
54 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)} \ | ||
55 | " | ||
56 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,," | ||
57 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd," | ||
58 | PACKAGECONFIG[linux-caps] = "--enable-linux-caps,--disable-linux-caps,libcap," | ||
59 | PACKAGECONFIG[dbi] = "--enable-sql,--disable-sql,libdbi," | ||
60 | PACKAGECONFIG[spoof-source] = "--enable-spoof-source --with-libnet=${STAGING_BINDIR_CROSS},--disable-spoof-source,libnet," | ||
61 | PACKAGECONFIG[http] = "--enable-http,--disable-http,curl," | ||
62 | PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp," | ||
63 | PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c," | ||
64 | PACKAGECONFIG[tcp-wrapper] = "--enable-tcp-wrapper,--disable-tcp-wrapper,tcp-wrappers," | ||
65 | PACKAGECONFIG[geoip] = "--enable-geoip,--disable-geoip,geoip," | ||
66 | PACKAGECONFIG[native] = "--enable-native,--disable-native,," | ||
67 | |||
68 | do_configure:prepend() { | ||
69 | olddir=$(pwd) | ||
70 | cd ${AUTOTOOLS_SCRIPT_PATH} | ||
71 | |||
72 | ACLOCAL="$ACLOCAL" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} -I ${S}/m4 ${ACLOCALEXTRAPATH} || die "extra autoreconf execution failed." | ||
73 | |||
74 | cd $olddir | ||
75 | } | ||
76 | |||
77 | do_install:append() { | ||
78 | install -d ${D}${sysconfdir}/${BPN} | ||
79 | install -d ${D}${sysconfdir}/init.d | ||
80 | install -m 755 ${UNPACKDIR}/initscript ${D}${sysconfdir}/init.d/syslog | ||
81 | |||
82 | install -d ${D}${sysconfdir}/default/volatiles/ | ||
83 | install -m 644 ${UNPACKDIR}/volatiles.03_syslog-ng ${D}${sysconfdir}/default/volatiles/03_syslog-ng | ||
84 | install -d ${D}${sysconfdir}/tmpfiles.d/ | ||
85 | install -m 644 ${UNPACKDIR}/syslog-ng-tmp.conf ${D}${sysconfdir}/tmpfiles.d/syslog-ng.conf | ||
86 | |||
87 | install -d ${D}${localstatedir}/lib/${BPN} | ||
88 | # Remove /var/run as it is created on startup | ||
89 | rm -rf ${D}${localstatedir}/run | ||
90 | |||
91 | # it causes install conflict when multilib enabled | ||
92 | # since python support is disabled, not deliver it | ||
93 | rm -f ${D}${bindir}/syslog-ng-update-virtualenv | ||
94 | |||
95 | # support for systemd | ||
96 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
97 | install -m 644 ${UNPACKDIR}/syslog-ng.conf.systemd ${D}${sysconfdir}/${BPN}/${BPN}.conf | ||
98 | |||
99 | install -d ${D}${systemd_unitdir}/system/ | ||
100 | install -m 644 ${S}/contrib/systemd/${BPN}@.service ${D}${systemd_unitdir}/system/${BPN}@.service | ||
101 | install -m 644 ${S}/contrib/systemd/${BPN}@default ${D}${sysconfdir}/default/${BPN}@default | ||
102 | |||
103 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/${BPN}@.service ${D}${sysconfdir}/default/${BPN}@default | ||
104 | sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${systemd_unitdir}/system/${BPN}@.service ${D}${sysconfdir}/default/${BPN}@default | ||
105 | sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${D}${systemd_unitdir}/system/${BPN}@.service ${D}${sysconfdir}/default/${BPN}@default | ||
106 | |||
107 | install -d ${D}${systemd_unitdir}/system/multi-user.target.wants | ||
108 | ln -sf ../${BPN}@.service ${D}${systemd_unitdir}/system/multi-user.target.wants/${BPN}@default.service | ||
109 | else | ||
110 | install -m 644 ${UNPACKDIR}/syslog-ng.conf.sysvinit ${D}${sysconfdir}/${BPN}/${BPN}.conf | ||
111 | fi | ||
112 | |||
113 | oe_multilib_header syslog-ng/syslog-ng-config.h | ||
114 | } | ||
115 | |||
116 | FILES:${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools ${systemd_unitdir}/system/multi-user.target.wants/*" | ||
117 | RDEPENDS:${PN} += "gawk ${@bb.utils.contains('PACKAGECONFIG','json','${PN}-jconf','',d)}" | ||
118 | |||
119 | FILES:${PN}-jconf += " \ | ||
120 | ${datadir}/${BPN}/include/scl/cim \ | ||
121 | ${datadir}/${BPN}/include/scl/elasticsearch \ | ||
122 | ${datadir}/${BPN}/include/scl/ewmm \ | ||
123 | ${datadir}/${BPN}/include/scl/graylog2 \ | ||
124 | ${datadir}/${BPN}/include/scl/loggly \ | ||
125 | ${datadir}/${BPN}/include/scl/logmatic \ | ||
126 | " | ||
127 | |||
128 | # This overcomes the syslog-ng rdepends on syslog-ng-dev QA Error | ||
129 | PACKAGES =+ "${PN}-jconf ${PN}-libs ${PN}-libs-dev" | ||
130 | RPROVIDES:${PN}-dbg += "${PN}-libs-dbg" | ||
131 | FILES:${PN}-libs = "${libdir}/${BPN}/*.so ${libdir}/libsyslog-ng-*.so*" | ||
132 | FILES:${PN}-libs-dev = "${libdir}/${BPN}/lib*.la" | ||
133 | FILES:${PN}-staticdev += "${libdir}/${BPN}/libtest/*.a" | ||
134 | FILES:${PN} += "${systemd_unitdir}/system/*.service" | ||
135 | INSANE_SKIP:${PN}-libs = "dev-so" | ||
136 | RDEPENDS:${PN} += "${PN}-libs" | ||
137 | |||
138 | CONFFILES:${PN} = "${sysconfdir}/${BPN}.conf ${sysconfdir}/scl.conf" | ||
139 | |||
140 | RCONFLICTS:${PN} = "busybox-syslog sysklogd rsyslog" | ||
141 | RCONFLICTS:${PN}-libs = "busybox-syslog sysklogd rsyslog" | ||
142 | |||
143 | RPROVIDES:${PN} += "${PN}-systemd" | ||
144 | RREPLACES:${PN} += "${PN}-systemd" | ||
145 | RCONFLICTS:${PN} += "${PN}-systemd" | ||
146 | SYSTEMD_SERVICE:${PN} = "${BPN}@.service" | ||
147 | |||
148 | INITSCRIPT_NAME = "syslog" | ||
149 | INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 90 0 1 6 ." | ||
150 | |||
151 | # Fails only with 32bit MACHINEs | ||
152 | # http://errors.yoctoproject.org/Errors/Details/766956/ | ||
153 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:937:63: error: passing argument 4 of 'g_io_channel_write_chars' from incompatible pointer type [-Wincompatible-pointer-types] | ||
154 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:955:99: error: passing argument 5 of 'cmac' from incompatible pointer type [-Wincompatible-pointer-types] | ||
155 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:959:74: error: passing argument 4 of 'g_io_channel_write_chars' from incompatible pointer type [-Wincompatible-pointer-types] | ||
156 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:975:107: error: passing argument 4 of 'g_io_channel_write_chars' from incompatible pointer type [-Wincompatible-pointer-types] | ||
157 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||