From: Joe MacDonald <Joe_MacDonald@mentor.com>
To: Bian Naimeng <biannm@cn.fujitsu.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH v2] drbd: Add recipes
Date: Tue, 16 Dec 2014 16:51:19 -0500 [thread overview]
Message-ID: <20141216215118.GP6113@mentor.com> (raw)
In-Reply-To: <1418288042-39086-1-git-send-email-biannm@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 3492 bytes --]
Merged, thanks.
-J.
[[oe] [meta-networking][PATCH v2] drbd: Add recipes] On 14.12.11 (Thu 16:54) 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>
> ---
> .../recipes-support/drbd/drbd/drbd.service | 12 +++++
> meta-networking/recipes-support/drbd/drbd_8.4.4.bb | 55 ++++++++++++++++++++++
> 2 files changed, 67 insertions(+)
> create mode 100644 meta-networking/recipes-support/drbd/drbd/drbd.service
> create mode 100644 meta-networking/recipes-support/drbd/drbd_8.4.4.bb
>
> diff --git a/meta-networking/recipes-support/drbd/drbd/drbd.service b/meta-networking/recipes-support/drbd/drbd/drbd.service
> new file mode 100644
> index 0000000..3543999
> --- /dev/null
> +++ b/meta-networking/recipes-support/drbd/drbd/drbd.service
> @@ -0,0 +1,12 @@
> +[Unit]
> +Description=DRBD Service
> +After=network.target
> +
> +[Service]
> +Type=oneshot
> +RemainAfterExit=yes
> +ExecStart=@LIBEXECDIR@/drbd-helper start
> +ExecStop=@LIBEXECDIR@/drbd-helper stop
> +
> +[Install]
> +WantedBy=multi-user.target
> diff --git a/meta-networking/recipes-support/drbd/drbd_8.4.4.bb b/meta-networking/recipes-support/drbd/drbd_8.4.4.bb
> new file mode 100644
> index 0000000..e2df3f9
> --- /dev/null
> +++ b/meta-networking/recipes-support/drbd/drbd_8.4.4.bb
> @@ -0,0 +1,55 @@
> +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"
> +
> +SRC_URI = "http://oss.linbit.com/${BPN}/8.4/${BPN}-${PV}.tar.gz \
> + file://drbd.service \
> + "
> +
> +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}/${sysconfdir}/init.d/drbd ${D}/${libexecdir}/drbd-helper
> +
> + sed -i -e 's,@LIBEXECDIR@,${libexecdir},g' \
> + ${D}${systemd_unitdir}/system/drbd.service
> + fi
> +}
> +
> +RDEPENDS_${PN} += "bash perl"
> +
> +FILES_${PN} += "/run"
> +FILES_${PN} += "${base_libdir}/drbd"
> +FILES_${PN}-dbg += "${base_libdir}/drbd/.debug"
> --
> 1.9.1
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]
prev parent reply other threads:[~2014-12-16 21:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-11 8:54 [meta-networking][PATCH v2] drbd: Add recipes Bian Naimeng
2014-12-16 21:51 ` Joe MacDonald [this message]
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=20141216215118.GP6113@mentor.com \
--to=joe_macdonald@mentor.com \
--cc=biannm@cn.fujitsu.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