diff options
-rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from-srcdir.patch | 11 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb | 40 |
2 files changed, 51 insertions, 0 deletions
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 0000000000..016b64f2e9 --- /dev/null +++ b/meta-networking/recipes-daemons/opensaf/opensaf/install-samples-from-srcdir.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- opensaf-4.5.0.orig/Makefile.am 2014-12-31 14:45:54.088797989 +0800 | ||
2 | +++ opensaf-4.5.0/Makefile.am 2014-12-31 14:45:08.328796688 +0800 | ||
3 | @@ -219,7 +219,7 @@ install-data-local: | ||
4 | $(mkinstalldirs) $(DESTDIR)$(pkgpiddir) | ||
5 | $(mkinstalldirs) $(DESTDIR)$(lockdir) | ||
6 | $(mkinstalldirs) $(DESTDIR)$(pkglocalstatedir) | ||
7 | - cp -R samples/ $(DESTDIR)$(pkgdatadir) | ||
8 | + cp -R $(srcdir)/samples/ $(DESTDIR)$(pkgdatadir) | ||
9 | |||
10 | install-data-hook: | ||
11 | @for i in $$(grep -lr -e 'xxLIBDIRxx' -e 'xxLOGDIRxx' -e 'xxCLCCLIDIRxx' $(DESTDIR)$(pkgimmxml_svcdir)/*.xml) ; do \ | ||
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb b/meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb new file mode 100644 index 0000000000..a58de5ce43 --- /dev/null +++ b/meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | SUMMARY = "OpenSAF is an open source implementation of the SAF AIS specification" | ||
2 | DESCRIPTION = "OpenSAF is an open source project established to develop a base platform \ | ||
3 | middleware consistent with Service Availability Forum (SA Forum) \ | ||
4 | specifications, under the LGPLv2.1 license. The OpenSAF Foundation was \ | ||
5 | established by leading Communications and Enterprise Computing Companies to \ | ||
6 | facilitate the OpenSAF Project and to accelerate the adoption of the OpenSAF \ | ||
7 | code base in commercial products. \ | ||
8 | The OpenSAF project was launched in mid 2007 and has been under development by \ | ||
9 | an informal group of supporters of the OpenSAF initiative. The OpenSAF \ | ||
10 | Foundation was founded on January 22nd 2008 with Emerson Network Power, \ | ||
11 | Ericsson, Nokia Siemens Networks, HP and Sun Microsystems as founding members." | ||
12 | HOMEPAGE = "http://www.opensaf.org" | ||
13 | |||
14 | inherit autotools useradd systemd pkgconfig | ||
15 | |||
16 | SRC_URI = "http://jaist.dl.sourceforge.net/project/opensaf/releases/${BPN}-${PV}.tar.gz \ | ||
17 | file://install-samples-from-srcdir.patch" | ||
18 | |||
19 | SRC_URI[md5sum] = "534c0a99438a62c4c8dda56cfa67300c" | ||
20 | SRC_URI[sha256sum] = "2f5ba57fe67e94099c0df82d0a0dd207b5c583c93030035ba354c97b5471b590" | ||
21 | |||
22 | LICENSE = "LGPLv2.1" | ||
23 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7" | ||
24 | |||
25 | DEPENDS = "libxml2 python" | ||
26 | |||
27 | USERADD_PACKAGES = "${PN}" | ||
28 | GROUPADD_PARAM_${PN} = "-f -r opensaf" | ||
29 | USERADD_PARAM_${PN} = "-r -g opensaf -d ${datadir}/opensaf/ -s ${sbindir}/nologin -c \"OpenSAF\" opensaf" | ||
30 | |||
31 | SYSTEMD_SERVICE_${PN} += "opensafd.service" | ||
32 | SYSTEMD_AUTO_ENABLE = "disable" | ||
33 | |||
34 | FILES_${PN} += "/run" | ||
35 | |||
36 | INSANE_SKIP_${PN} = "dev-so" | ||
37 | |||
38 | do_install_append() { | ||
39 | rm -rf "${D}${localstatedir}/run" | ||
40 | } | ||