All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH 2/3] corosync_2.3.4: add new recipe
Date: Mon, 5 Jan 2015 10:00:52 +0100	[thread overview]
Message-ID: <20150105090052.GC2484@jama> (raw)
In-Reply-To: <1420442394-39127-3-git-send-email-leimaohui@cn.fujitsu.com>

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

On Mon, Jan 05, 2015 at 03:19:53PM +0800, leimaohui wrote:
> From: leimh <leimaohui@cn.fujitsu.com>
> 
> The Corosync Cluster Engine and Application Programming Interfaces
> 
> Signed-off-by: leimh <leimaohui@cn.fujitsu.com>
> ---
>  .../recipes-extended/corosync/corosync_2.3.4.bb    | 59 ++++++++++++++++++++++
>  1 file changed, 59 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/corosync/corosync_2.3.4.bb
> 
> diff --git a/meta-oe/recipes-extended/corosync/corosync_2.3.4.bb b/meta-oe/recipes-extended/corosync/corosync_2.3.4.bb
> new file mode 100644
> index 0000000..7a09862
> --- /dev/null
> +++ b/meta-oe/recipes-extended/corosync/corosync_2.3.4.bb
> @@ -0,0 +1,59 @@
> +SUMMARY = "The Corosync Cluster Engine and Application Programming Interfaces"
> +DESCRIPTION = "This package contains the Corosync Cluster Engine Executive, several default \
> +APIs and libraries, default configuration files, and an init script."
> +HOMEPAGE = "http://corosync.github.io/corosync/"
> +
> +SECTION = "base"
> +
> +inherit autotools pkgconfig systemd
> +
> +SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BPN}-${PV}.tar.gz \
> +	   "

${BPN}-${PV} -> ${BP}

> +
> +SRC_URI[md5sum] = "4b0f36a1dc014527e5b192265dbd7e70"
> +SRC_URI[sha256sum] = "3dae93fb1cf5c560295253b0560cbc25421ed053ee373852864f3a60c03247d4"
> +
> +LICENSE = "BSD"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d"
> +
> +DEPENDS = "groff-native nss libqb"
> +
> +SYSTEMD_SERVICE_${PN} = "corosync.service corosync-notifyd.service"
> +SYSTEMD_AUTO_ENABLE = "enable"
> +
> +INITSCRIPT_NAME = "corosync-daemon"
> +
> +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
> +
> +PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_unitdir}/system/,--with-systemddir="
> +
> +EXTRA_OECONF = "--disable-nss \
> +                --with-upstartdir=%{_sysconfdir}/init \
> +"
> +EXTRA_OECONF += " --enable-nss "
> +
> +do_configure_prepend() {
> +    ( cd ${S}
> +    ${S}/autogen.sh )
> +}
> +
> +do_install_append() {
> +        install -d ${D}${sysconfdir}/sysconfig/
> +	install -d ${D}/${sysconfdir}/init.d
> +	install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync
> +	install -m 0644 ${S}/init/corosync-notifyd.conf.in ${D}${sysconfdir}/sysconfig/corosync-notifyd.conf
> +	install -m 0644 ${S}/init/corosync.conf.in ${D}${sysconfdir}/sysconfig/corosync.conf
> +	install -m 0644 ${S}/init/corosync.in ${D}${sysconfdir}/init.d/corosync
> +	install -m 0644 ${S}/init/corosync-notifyd.in ${D}${sysconfdir}/init.d/corosync-notifyd
> +
> +	if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> +		install -d ${D}${systemd_unitdir}/system
> +		install -m 0644 ${S}/init/corosync.service.in ${D}${systemd_unitdir}/system/corosync.service
> +		install -m 0644 ${S}/init/corosync-notifyd.service.in ${D}${systemd_unitdir}/system/corosync-notifyd.service
> +		sed -i -e 's,@INITWRAPPERSDIR@,${sysconfdir}/init.d,g' ${D}${systemd_unitdir}/system/corosync.service
> +		sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/corosync-notifyd.service
> +		sed -i -e 's,@SBINDIR@,${base_sbindir},g' ${D}${systemd_unitdir}/system/corosync-notifyd.service
> +	fi	
> +}

Use 4 spaces for indentation.

> +
> +FILES_${PN}-dbg += "${libexecdir}/lcrso/.debug"
> -- 
> 1.8.4.2
> 
> -- 
> _______________________________________________
> 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 --]

  reply	other threads:[~2015-01-05  9:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-05  7:19 [meta-oe][PATCH 0/3] add dlm and it's dependencies leimaohui
2015-01-05  7:19 ` [meta-oe][PATCH 1/3] libqb: add new recipe leimaohui
2015-01-05  9:00   ` Martin Jansa
2015-01-05  7:19 ` [meta-oe][PATCH 2/3] corosync_2.3.4: " leimaohui
2015-01-05  9:00   ` Martin Jansa [this message]
2015-01-05  7:19 ` [meta-oe][PATCH 3/3] dlm: add a " leimaohui
2015-01-05  9:02   ` Martin Jansa
2015-01-05 10:07     ` Lei, Maohui
2015-01-06  3:58     ` Lei, Maohui

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=20150105090052.GC2484@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.