[oe] [PATCH 1/3] [meta-oe]daemontools: add recipe
Koen Kooi
koen at dominion.thruhere.net
Sat Nov 29 14:23:26 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bian Naimeng schreef op 28-11-14 09:49:
> daemontools is a collection of tools for managing UNIX services.
>
> Though daemontools is a very old tool, but it still supported by some
> distro such as ubuntu(trusty 14.04LTS).
>
> Signed-off-by: Bian Naimeng <biannm at cn.fujitsu.com> ---
> ...or.h-include-errno.h-instead-of-extern-int.diff | 25 ++++++++++++
> ....c-.-supervise-may-be-a-symlink-if-it-s-da.diff | 47
> ++++++++++++++++++++++ .../daemontools/daemontools/cross-compile.patch
> | 45 +++++++++++++++++++++ .../daemontools/daemontools_0.76.bb
> | 47 ++++++++++++++++++++++
[..]
All the patches are missing Upstream-status tags
> +++ b/meta-oe/recipes-support/daemontools/daemontools_0.76.bb @@ -0,0
> +1,47 @@ +SUMMARY = "DJB daemontools" +DESCRIPTION = "supervise monitors
> a service. It starts the service and restarts the \ +service if it dies.
> The companion svc program stops, pauses, or restarts \ +the service on
> sysadmin request. The svstat program prints a one-line \ +status report.
> \ +multilog saves error messages to one or more logs. It optionally
> timestamps \ +each line and, for each log, includes or excludes lines
> matching specified \ +patterns. It automatically rotates logs to limit
> the amount of disk space \ +used. If the disk fills up, it pauses and
> tries again, without losing any \ +data." + +SECTION = "System/Servers"
> + +LIC_FILES_CHKSUM =
> "file://${COMMON_LICENSE_DIR}/PD;md5=b3597d12946881e13cb3b548d1173851"
> +LICENSE = "PD" + +SRC_URI =
> "http://cr.yp.to/daemontools/${BPN}-${PV}.tar.gz \ +
> file://0001-error.h-include-errno.h-instead-of-extern-int.diff \ +
> file://0002-supervise.c-.-supervise-may-be-a-symlink-if-it-s-da.diff " +
> +SRC_URI_append_class-target = "file://cross-compile.patch"
This one looks safe enough to apply globally, especially because it will
otherwise ignore %{CC} in the non-target cases.
> + +SRC_URI[md5sum] = "1871af2453d6e464034968a0fbcb2bfc"
> +SRC_URI[sha256sum] =
> "a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f" + +S =
> "${WORKDIR}/admin/${BPN}-${PV}" + +DEPENDS += "daemontools-native"
There's no inherit or DEPENDS, so drop the '+'
> +DEPENDS_virtclass-native = "" + +do_compile() { + ./package/compile
> +} + +do_install() { + install -d ${D}/${bindir} +} +
> +do_install_append_class-native() { + install -m 755
> ${S}/compile/chkshsgr ${D}/${bindir} +} +
> +do_install_append_class-target() { + install -m755 ${S}/command/*
> ${D}/${bindir} +}
Just collapse these into a single do_install, it doesn't hurt to install
extra binaries in the -native case.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFUedbeMkyGM64RGpERAoofAKCVG4s1OQo7QCHUT5SQQHjRFI6DVgCghQH2
n8cWsbFFXW3AbKD8K+2rjt4=
=fCRL
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list