Skip to contentSkip to conversation

opensaf: add recipe

PATCH In review Bian Naimeng 2 participants 3 messages Dec 31, 2014 – Jan 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensaf: add recipe

OpenSAF is an open source implementation of the SAF AIS specification

---
 .../opensaf/install-samples-from-srcdir.patch      | 11 ++++++
 .../recipes-daemons/opensaf/opensaf_4.5.0.bb       | 40 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from-srcdir.patch
 create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb
meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from-srcdir.patch new file +11 -0
new file mode 100644
index 0000000..016b64f
@@ -0,0 +1,11 @@
+--- opensaf-4.5.0.orig/Makefile.am	2014-12-31 14:45:54.088797989 +0800
++++ opensaf-4.5.0/Makefile.am	2014-12-31 14:45:08.328796688 +0800
+@@ -219,7 +219,7 @@ install-data-local:
+ 	$(mkinstalldirs) $(DESTDIR)$(pkgpiddir)
+ 	$(mkinstalldirs) $(DESTDIR)$(lockdir)
+ 	$(mkinstalldirs) $(DESTDIR)$(pkglocalstatedir)
+-	cp -R samples/ $(DESTDIR)$(pkgdatadir)
++	cp -R $(srcdir)/samples/ $(DESTDIR)$(pkgdatadir)
+ 
+ install-data-hook:
+ 	@for i in $$(grep -lr -e 'xxLIBDIRxx' -e 'xxLOGDIRxx' -e 'xxCLCCLIDIRxx' $(DESTDIR)$(pkgimmxml_svcdir)/*.xml) ; do \
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +40 -0
new file mode 100644
index 0000000..a58de5c
@@ -0,0 +1,40 @@
+SUMMARY = "OpenSAF is an open source implementation of the SAF AIS specification"
+DESCRIPTION = "OpenSAF is an open source project established to develop a base platform \
+middleware consistent with Service Availability Forum (SA Forum) \
+specifications, under the LGPLv2.1 license. The OpenSAF Foundation was \
+established by leading Communications and Enterprise Computing Companies to \
+facilitate the OpenSAF Project and to accelerate the adoption of the OpenSAF \
+code base in commercial products. \
+The OpenSAF project was launched in mid 2007 and has been under development by \
+an informal group of supporters of the OpenSAF initiative. The OpenSAF \
+Foundation was founded on January 22nd 2008 with Emerson Network Power, \
+Ericsson, Nokia Siemens Networks, HP and Sun Microsystems as founding members."
+HOMEPAGE = "http://www.opensaf.org"
+
+inherit autotools useradd systemd pkgconfig
+
+SRC_URI = "http://jaist.dl.sourceforge.net/project/opensaf/releases/${BPN}-${PV}.tar.gz \
+           file://install-samples-from-srcdir.patch"
+
+SRC_URI[md5sum] = "534c0a99438a62c4c8dda56cfa67300c"
+SRC_URI[sha256sum] = "2f5ba57fe67e94099c0df82d0a0dd207b5c583c93030035ba354c97b5471b590"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7"
+
+DEPENDS = "libxml2 python"
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "-f -r opensaf"
+USERADD_PARAM_${PN} =  "-r -g opensaf -d ${datadir}/opensaf/ -s ${sbindir}/nologin -c \"OpenSAF\" opensaf"
+
+SYSTEMD_SERVICE_${PN} += "opensafd.service"
+SYSTEMD_AUTO_ENABLE = "disable"
+
+FILES_${PN} += "/run"
+
+INSANE_SKIP_${PN} = "dev-so"
+
+do_install_append() {
+    rm -rf "${D}${localstatedir}/run"
+}
Signature · 1 line
1.9.1
#1 lore raw
Quoted 58 lines · Bian Naimeng

OpenSAF is an open source implementation of the SAF AIS specification

---
.../opensaf/install-samples-from-srcdir.patch | 11 ++++++
.../recipes-daemons/opensaf/opensaf_4.5.0.bb | 40 ++++++++++++++++++++++

2 files changed, 51 insertions(+)

create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from-srcdir.patch create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb

meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from-srcdir.patch new file +11 -0
new file mode 100644
index 0000000..016b64f
@@ -0,0 +1,11 @@
+--- opensaf-4.5.0.orig/Makefile.am	2014-12-31 14:45:54.088797989 +0800
++++ opensaf-4.5.0/Makefile.am	2014-12-31 14:45:08.328796688 +0800
+@@ -219,7 +219,7 @@ install-data-local:
+ 	$(mkinstalldirs) $(DESTDIR)$(pkgpiddir)
+ 	$(mkinstalldirs) $(DESTDIR)$(lockdir)
+ 	$(mkinstalldirs) $(DESTDIR)$(pkglocalstatedir)
+-	cp -R samples/ $(DESTDIR)$(pkgdatadir)
++	cp -R $(srcdir)/samples/ $(DESTDIR)$(pkgdatadir)
+ 
+ install-data-hook:
+ 	@for i in $$(grep -lr -e 'xxLIBDIRxx' -e 'xxLOGDIRxx' -e 'xxCLCCLIDIRxx' $(DESTDIR)$(pkgimmxml_svcdir)/*.xml) ; do \
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +22 -0
new file mode 100644
index 0000000..a58de5c
@@ -0,0 +1,40 @@
+SUMMARY = "OpenSAF is an open source implementation of the SAF AIS specification"
+DESCRIPTION = "OpenSAF is an open source project established to develop a base platform \
+middleware consistent with Service Availability Forum (SA Forum) \
+specifications, under the LGPLv2.1 license. The OpenSAF Foundation was \
+established by leading Communications and Enterprise Computing Companies to \
+facilitate the OpenSAF Project and to accelerate the adoption of the OpenSAF \
+code base in commercial products. \
+The OpenSAF project was launched in mid 2007 and has been under development by \
+an informal group of supporters of the OpenSAF initiative. The OpenSAF \
+Foundation was founded on January 22nd 2008 with Emerson Network Power, \
+Ericsson, Nokia Siemens Networks, HP and Sun Microsystems as founding members."
+HOMEPAGE = "http://www.opensaf.org"
+
+inherit autotools useradd systemd pkgconfig
+
+SRC_URI = "http://jaist.dl.sourceforge.net/project/opensaf/releases/${BPN}-${PV}.tar.gz \
+           file://install-samples-from-srcdir.patch"
+
+SRC_URI[md5sum] = "534c0a99438a62c4c8dda56cfa67300c"
+SRC_URI[sha256sum] = "2f5ba57fe67e94099c0df82d0a0dd207b5c583c93030035ba354c97b5471b590"
+
+LICENSE = "LGPLv2.1"

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb line 32

Quoted 10 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +10 -0
+LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7"
+
+DEPENDS = "libxml2 python"
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "-f -r opensaf"
+USERADD_PARAM_${PN} =  "-r -g opensaf -d ${datadir}/opensaf/ -s ${sbindir}/nologin -c \"OpenSAF\" opensaf"
+
+SYSTEMD_SERVICE_${PN} += "opensafd.service"
+SYSTEMD_AUTO_ENABLE = “disable"

why disable ?

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb line 34

Quoted 2 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +2 -0
+
+FILES_${PN} += "/run”

hmmm /run is usually tmpfs so this should be solved differently.

Quoted 14 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +6 -0
+
+INSANE_SKIP_${PN} = "dev-so"
+
+do_install_append() {
+    rm -rf "${D}${localstatedir}/run"
+}
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#2 lore raw
Quoted 92 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Thursday, January 01, 2015 11:10 AM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH] opensaf: add recipe

Quoted 8 lines · Bian Naimeng

OpenSAF is an open source implementation of the SAF AIS specification

---
.../opensaf/install-samples-from-srcdir.patch | 11 ++++++
.../recipes-daemons/opensaf/opensaf_4.5.0.bb | 40

++++++++++++++++++++++

Quoted 36 lines
2 files changed, 51 insertions(+)

create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from-s rcdir.patch create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb

diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from -srcdir.patch b/meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from -srcdir.patch
new file mode 100644
index 0000000..016b64f

meta-networking/recipes-daemons/opensaf/opensaf/install-samples- new file +13 -0
+++ from-srcdir.patch
@@ -0,0 +1,11 @@
+--- opensaf-4.5.0.orig/Makefile.am	2014-12-31 14:45:54.088797989 +0800
++++ opensaf-4.5.0/Makefile.am	2014-12-31 14:45:08.328796688 +0800
+@@ -219,7 +219,7 @@ install-data-local:
+ 	$(mkinstalldirs) $(DESTDIR)$(pkgpiddir)
+ 	$(mkinstalldirs) $(DESTDIR)$(lockdir)
+ 	$(mkinstalldirs) $(DESTDIR)$(pkglocalstatedir)
+-	cp -R samples/ $(DESTDIR)$(pkgdatadir)
++	cp -R $(srcdir)/samples/ $(DESTDIR)$(pkgdatadir)
+
+ install-data-hook:
+ 	@for i in $$(grep -lr -e 'xxLIBDIRxx' -e 'xxLOGDIRxx' -e
+ 'xxCLCCLIDIRxx' $(DESTDIR)$(pkgimmxml_svcdir)/*.xml) ; do \
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +0 -0
new file mode 100644
index 0000000..a58de5c

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb line 1

Quoted 1 line
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +1 -0
@@ -0,0 +1,40 @@
+SUMMARY = "OpenSAF is an open source implementation of the SAF AIS

specification"

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb line 11

Quoted 10 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +10 -0
+DESCRIPTION = "OpenSAF is an open source project established to
+develop a base platform \ middleware consistent with Service
+Availability Forum (SA Forum) \ specifications, under the LGPLv2.1
+license. The OpenSAF Foundation was \ established by leading
+Communications and Enterprise Computing Companies to \ facilitate the
+OpenSAF Project and to accelerate the adoption of the OpenSAF \ code
+base in commercial products. \ The OpenSAF project was launched in
+mid 2007 and has been under development by \ an informal group of
+supporters of the OpenSAF initiative. The OpenSAF \ Foundation was
+founded on January 22nd 2008 with Emerson Network Power, \ Ericsson, Nokia

Siemens Networks, HP and Sun Microsystems as founding members."

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb

Quoted 5 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +5 -0
+HOMEPAGE = "http://www.opensaf.org"
+
+inherit autotools useradd systemd pkgconfig
+
+SRC_URI =

"http://jaist.dl.sourceforge.net/project/opensaf/releases/${BPN}-${PV}.tar .gz \

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb

Quoted 4 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +4 -0
+           file://install-samples-from-srcdir.patch"
+
+SRC_URI[md5sum] = "534c0a99438a62c4c8dda56cfa67300c"
+SRC_URI[sha256sum] =

"2f5ba57fe67e94099c0df82d0a0dd207b5c583c93030035ba354c97b5471b590"

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb

Quoted 3 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +3 -0
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7"

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb

Quoted 6 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +6 -0
+
+DEPENDS = "libxml2 python"
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "-f -r opensaf"
+USERADD_PARAM_${PN} =  "-r -g opensaf -d ${datadir}/opensaf/ -s

${sbindir}/nologin -c \"OpenSAF\" opensaf"

Quoted 6 lines

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb

Quoted 3 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +3 -0
+
+SYSTEMD_SERVICE_${PN} += "opensafd.service"
+SYSTEMD_AUTO_ENABLE = “disable"

why disable ?

Thanks for your review.

Looks like "disable" is default setting in meta-openembedded.

Thanks
Bian

Quoted 25 lines

meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb line 34

Quoted 2 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +2 -0
+
+FILES_${PN} += "/run”

hmmm /run is usually tmpfs so this should be solved differently.

Quoted 9 lines
meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file +6 -1
+
+INSANE_SKIP_${PN} = "dev-so"
+
+do_install_append() {
+    rm -rf "${D}${localstatedir}/run"
+}
--

1.9.1

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel