Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 3/3] [meta-oe] drbd: add recipe
Date: Tue, 9 Dec 2014 11:17:08 +0100	[thread overview]
Message-ID: <20141209101708.GB2470@jama> (raw)
In-Reply-To: <1417164585-46087-4-git-send-email-biannm@cn.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 3882 bytes --]

On Fri, Nov 28, 2014 at 04:49:45PM +0800, Bian Naimeng wrote:
> DRBD is a block device which is designed to build high availability clusters.
> 
> Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> ---
>  meta-oe/recipes-extended/drbd/drbd_8.4.4.bb      | 57 ++++++++++++++++++++++++
>  meta-oe/recipes-extended/drbd/files/drbd.service | 12 +++++
>  2 files changed, 69 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/drbd/drbd_8.4.4.bb
>  create mode 100644 meta-oe/recipes-extended/drbd/files/drbd.service

Causes 2 new QA warnings:

drbd-8.4.4: drbd requires /bin/bash, /usr/bin/perl, but no providers in
its RDEPENDS [file-rdeps]
drbd-8.4.4: drbd requires /usr/bin/perl, /bin/bash, but no providers in
its RDEPENDS [file-rdeps]

> 
> diff --git a/meta-oe/recipes-extended/drbd/drbd_8.4.4.bb b/meta-oe/recipes-extended/drbd/drbd_8.4.4.bb
> new file mode 100644
> index 0000000..5439bac
> --- /dev/null
> +++ b/meta-oe/recipes-extended/drbd/drbd_8.4.4.bb
> @@ -0,0 +1,57 @@
> +SUMMARY = "BD driver for Linux"
> +DESCRIPTION = "DRBD mirrors a block device over the network to another machine.\
> +DRBD mirrors a block device over the network to another machine.\
> +Think of it as networked raid 1. It is a building block for\
> +setting up high availability (HA) clusters."
> +
> +HOMEPAGE = "http://www.drbd.org/"
> +
> +SECTION = "kernel/userland"
> +
> +LICENSE = "GPLv2+"
> +
> +LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
> +
> +PR = "r0"
> +#PR = "r1001"
> +
> +SRC_URI = "http://oss.linbit.com/${BPN}/8.4/${BPN}-${PV}.tar.gz \
> +           file://drbd.service \
> +          "
> +
> +#SRC_URI[md5sum] = "ef4e6db51cda1898c597a3d61fcb9e1e"
> +#SRC_URI[sha256sum] = "7c1558459614fbdc1b3209f1b9e5767a443d9bdfe681a49c652b5f392799d58d"
> +
> +SRC_URI[md5sum] = "b51815343c1a9151e2936b3b97520388"
> +SRC_URI[sha256sum] = "a056219c5c23b079c3354179f7a1b9f55d47e573a4cd3178f2ef4c15604288f0"
> +
> +inherit autotools-brokensep systemd
> +
> +EXTRA_OECONF = "--with-utils                  \
> +                --without-km                  \
> +                --with-initdir=/etc/init.d    \
> +                --without-pacemaker           \
> +                --without-rgmanager           \
> +                --without-bashcompletion      \
> +                --with-distro debian          \
> +               "
> +
> +do_configure (){
> +    oe_runconf
> +}
> +
> +SYSTEMD_SERVICE_${PN} = "drbd.service"
> +SYSTEMD_AUTO_ENABLE = "disable"
> +
> +do_install_append() {
> +    if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> +        install -d ${D}/${systemd_unitdir}/system
> +        install -m 644 ${WORKDIR}/drbd.service ${D}/${systemd_unitdir}/system
> +        install -d ${D}/${libexecdir}
> +        install -m 755 ${D}/etc/init.d/drbd ${D}/${libexecdir}/drbd-helper
> +    fi
> +}
> +
> +FILES_${PN} += "run"
> +FILES_${PN} += "${base_libdir}/drbd"
> +FILES_${PN}-dbg += "${base_libdir}/drbd/.debug"
> diff --git a/meta-oe/recipes-extended/drbd/files/drbd.service b/meta-oe/recipes-extended/drbd/files/drbd.service
> new file mode 100644
> index 0000000..22f853f
> --- /dev/null
> +++ b/meta-oe/recipes-extended/drbd/files/drbd.service
> @@ -0,0 +1,12 @@
> +[Unit]
> +Description=DRBD Service
> +After=network.target
> +
> +[Service]
> +Type=oneshot
> +RemainAfterExit=yes
> +ExecStart=/usr/lib/drbd/drbd-helper start
> +ExecStop=/usr/lib/drbd/drbd-helper stop
> +
> +[Install]
> +WantedBy=multi-user.target
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  parent reply	other threads:[~2014-12-09 10:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28  8:49 [PATCH 0/3] add some recipes Bian Naimeng
2014-11-28  8:49 ` [PATCH 1/3] [meta-oe]daemontools: add recipe Bian Naimeng
2014-11-29 14:23   ` Koen Kooi
2014-11-28  8:49 ` [PATCH 2/3] [meta-oe] dmraid: " Bian Naimeng
2014-11-28 12:50   ` Martin Jansa
2014-11-29 14:25   ` Koen Kooi
2014-12-02  5:06     ` Bian, Naimeng
2014-11-28  8:49 ` [PATCH 3/3] [meta-oe] drbd: " Bian Naimeng
2014-11-29 14:27   ` Koen Kooi
2014-12-09 10:17   ` Martin Jansa [this message]
2014-12-10  8:36     ` Bian, Naimeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141209101708.GB2470@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox