diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-28 12:59:07 +0100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-02-01 17:44:21 +0100 |
| commit | 92ea562bafda6b201fae91c2bc13a404da4d581c (patch) | |
| tree | 0ffbd7a6f526e0b17a6b78deb0870b398dff4f69 /meta-oe/recipes-support/syslog-ng/syslog-ng.inc | |
| parent | c751691a0a731d9fcdc35bc6489ab689ee8e288a (diff) | |
| download | meta-openembedded-92ea562bafda6b201fae91c2bc13a404da4d581c.tar.gz | |
gnome-terminal, system-tools-backends, slim, benchfft, syslog-ng: move to nonworking directories
* this set does not build with distroless qemuarm as reported in
'State of bitbake world' thread, nobody volunteered to fix them
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/syslog-ng.inc')
| -rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc deleted file mode 100644 index 584e4a43ee..0000000000 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc +++ /dev/null | |||
| @@ -1,90 +0,0 @@ | |||
| 1 | DESCRIPTION = "Alternative system logger daemon" | ||
| 2 | DEPENDS = "libol flex eventlog glib-2.0" | ||
| 3 | LICENSE = "GPL LGPL" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=7ec1bcc46f28b11f4722e20d9b7dd4d5" | ||
| 5 | |||
| 6 | # syslog initscript is handled explicitly because order of | ||
| 7 | # update-rc.d and update-alternatives is important | ||
| 8 | RDEPENDS_${PN} += " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "update-rc.d", d)}" | ||
| 9 | |||
| 10 | INC_PR = "r9" | ||
| 11 | |||
| 12 | inherit autotools | ||
| 13 | |||
| 14 | SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/${PN}_${PV}.tar.gz" | ||
| 15 | |||
| 16 | noipv6 = "${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6', d)}" | ||
| 17 | |||
| 18 | EXTRA_OECONF = " \ | ||
| 19 | --with-libnet=${STAGING_BINDIR_CROSS} \ | ||
| 20 | --enable-dynamic-linking \ | ||
| 21 | ${noipv6} \ | ||
| 22 | --enable-ssl \ | ||
| 23 | --disable-sub-streams \ | ||
| 24 | --disable-pacct \ | ||
| 25 | --disable-linux-caps \ | ||
| 26 | --disable-pcre \ | ||
| 27 | --disable-sql \ | ||
| 28 | " | ||
| 29 | |||
| 30 | do_configure_prepend() { | ||
| 31 | eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}" | ||
| 32 | } | ||
| 33 | |||
| 34 | # rename modules.conf because it breaks update-modules | ||
| 35 | # see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-October/035537.html | ||
| 36 | do_install_append() { | ||
| 37 | mv ${D}/${sysconfdir}/modules.conf ${D}/${sysconfdir}/scl-modules.conf | ||
| 38 | sed -i "s#@include 'modules.conf'#@include 'scl-modules.conf'#g" ${D}/${sysconfdir}/scl.conf | ||
| 39 | install -d ${D}/${sysconfdir}/${PN} | ||
| 40 | install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${PN}.conf | ||
| 41 | install -d ${D}/${sysconfdir}/init.d | ||
| 42 | install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN} | ||
| 43 | } | ||
| 44 | |||
| 45 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ | ||
| 46 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ | ||
| 47 | ${base_bindir}/* ${base_sbindir}/* \ | ||
| 48 | ${base_libdir}/*${SOLIBS} \ | ||
| 49 | ${datadir}/${BPN} ${libdir}/${BPN}/*${SOLIBS} \ | ||
| 50 | ${datadir}/include/scl/ ${datadir}/xsd" | ||
| 51 | FILES_${PN}-dev += "${libdir}/${BPN}/lib*.la ${libdir}/${BPN}/*${SOLIBSDEV}" | ||
| 52 | CONFFILES_${PN} = "${sysconfdir}/${PN}.conf ${sysconfdir}/scl.conf ${sysconfdir}/scl-modules.conf" | ||
| 53 | |||
| 54 | pkg_postinst_${PN} () { | ||
| 55 | /etc/init.d/syslog stop | ||
| 56 | update-alternatives --install ${sysconfdir}/init.d/syslog syslog-init syslog.${PN} 200 | ||
| 57 | |||
| 58 | if test "x$D" != "x"; then | ||
| 59 | OPT="-r $D" | ||
| 60 | else | ||
| 61 | OPT="-s" | ||
| 62 | fi | ||
| 63 | # remove all rc.d-links potentially created from alternative | ||
| 64 | # syslog packages before creating new ones | ||
| 65 | update-rc.d $OPT -f syslog remove | ||
| 66 | update-rc.d $OPT syslog start 20 2 3 4 5 . stop 90 0 1 6 . | ||
| 67 | } | ||
| 68 | |||
| 69 | pkg_prerm_${PN} () { | ||
| 70 | if test "x$D" = "x"; then | ||
| 71 | if test "$1" = "upgrade" -o "$1" = "remove"; then | ||
| 72 | /etc/init.d/syslog stop | ||
| 73 | fi | ||
| 74 | fi | ||
| 75 | |||
| 76 | update-alternatives --remove syslog-init syslog.${PN} | ||
| 77 | } | ||
| 78 | |||
| 79 | pkg_postrm_${PN} () { | ||
| 80 | if test "x$D" != "x"; then | ||
| 81 | OPT="-r $D" | ||
| 82 | else | ||
| 83 | OPT="" | ||
| 84 | fi | ||
| 85 | if test "$1" = "remove" -o "$1" = "purge"; then | ||
| 86 | if ! test -e "/etc/init.d/syslog"; then | ||
| 87 | update-rc.d $OPT syslog remove | ||
| 88 | fi | ||
| 89 | fi | ||
| 90 | } | ||
