[oe] [PATCH] rsyslog: new recipe
Paul Menzel
paulepanter at users.sourceforge.net
Fri Mar 26 11:16:58 UTC 2010
Am Mittwoch, den 24.03.2010, 09:39 +0100 schrieb Steffen Sledz:
> a reliable and extended syslogd
>
> Signed-off-by: Steffen Sledz <sledz at dresearch.de>
> ---
> recipes/rsyslog/files/initscript | 90 +++++++++
> recipes/rsyslog/files/rsyslog.conf | 60 ++++++
> recipes/rsyslog/rsyslog-5.4.0/atomics.patch | 277 +++++++++++++++++++++++++++
> recipes/rsyslog/rsyslog.inc | 34 ++++
> recipes/rsyslog/rsyslog_5.4.0.bb | 7 +
> 5 files changed, 468 insertions(+), 0 deletions(-)
> create mode 100644 recipes/rsyslog/files/initscript
> create mode 100644 recipes/rsyslog/files/rsyslog.conf
> create mode 100644 recipes/rsyslog/rsyslog-5.4.0/atomics.patch
> create mode 100644 recipes/rsyslog/rsyslog.inc
> create mode 100644 recipes/rsyslog/rsyslog_5.4.0.bb
[…]
> diff --git a/recipes/rsyslog/rsyslog.inc b/recipes/rsyslog/rsyslog.inc
> new file mode 100644
> index 0000000..5058176
> --- /dev/null
> +++ b/recipes/rsyslog/rsyslog.inc
> @@ -0,0 +1,34 @@
> +DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
> +DEPENDS = "zlib"
> +HOMEPAGE = "http://www.rsyslog.com/"
> +LICENSE = "GPLv3"
> +INC_PR = "r1"
»r0« should be enough.
> +SRC_URI = "http://download.rsyslog.com/rsyslog/${PN}-${PV}.tar.gz;name=archive \
SRC_URI = "http://download.rsyslog.com/rsyslog/${P}.tar.gz;name=archive
P = PN-PV
I do not know if there is a recommendation if name should be `${PN}` or »archive«.
> + file://rsyslog.conf \
> + file://initscript"
> +
> +S = "${WORKDIR}/${PN}-${PV}"
As far as I know, this is the default. It is generally useful if you do
not get the source as archives but from repositories. In that case it
should be adapted in the recipe.
> +inherit autotools update-rc.d
> +
> +do_install_append() {
> + install -d ${D}/${sysconfdir}/${PN}
> + install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
> + install -d ${D}/${sysconfdir}/init.d
> + install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/rsyslog
> +}
> +
> +pkg_postinst() {
> + update-rc.d -f syslog remove
> +}
> +
> +pkg_postrm() {
> + update-rc.d syslog add 5
> +}
> +
> +CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
> +
> +INITSCRIPT_NAME = "rsyslog"
> +#INITSCRIPT_PARAMS = "defaults 05"
> +INITSCRIPT_PARAMS = "remove"
> diff --git a/recipes/rsyslog/rsyslog_5.4.0.bb b/recipes/rsyslog/rsyslog_5.4.0.bb
> new file mode 100644
> index 0000000..b22d4e4
> --- /dev/null
> +++ b/recipes/rsyslog/rsyslog_5.4.0.bb
> @@ -0,0 +1,7 @@
> +require rsyslog.inc
> +PR = "${INC_PR}.0"
> +
> +SRC_URI += " file://atomics.patch;patch=1"
> +
> +SRC_URI[archive.md5sum] = "291882229d50496f42bd63174076dd37"
> +SRC_URI[archive.sha256sum] = "d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228"
If you change the name, than adapt this too please to `${PN}.md5sum` and
so on.
Thanks,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100326/b7783b2d/attachment-0002.sig>
More information about the Openembedded-devel
mailing list