Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 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 = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ |
| 17 | file://install-samples-from-srcdir.patch \ |
| 18 | file://0001-plmcd-error-fix.patch \ |
| 19 | " |
| 20 | |
| 21 | SRC_URI[md5sum] = "82dd2777a672140e22b8205f10aa55d3" |
| 22 | SRC_URI[sha256sum] = "da9e138650b835728ad51d99268d3a31419b254c4cb4e87c6ec90bc45266d7d2" |
| 23 | |
| 24 | SECTION = "admin" |
| 25 | LICENSE = "LGPLv2.1" |
| 26 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7" |
| 27 | |
| 28 | DEPENDS = "libxml2 python" |
| 29 | |
| 30 | USERADD_PACKAGES = "${PN}" |
| 31 | GROUPADD_PARAM_${PN} = "-f -r opensaf" |
| 32 | USERADD_PARAM_${PN} = "-r -g opensaf -d ${datadir}/opensaf/ -s ${sbindir}/nologin -c \"OpenSAF\" opensaf" |
| 33 | |
| 34 | SYSTEMD_SERVICE_${PN} += "opensafd.service plmcboot.service plmcd.service" |
| 35 | SYSTEMD_AUTO_ENABLE = "disable" |
| 36 | |
| 37 | PACKAGECONFIG[systemd] = "--enable-systemd-daemon" |
| 38 | PACKAGECONFIG[openhpi] = "--with-hpi-interface=B03 --enable-ais-plm,,openhpi" |
| 39 | |
| 40 | do_configure_prepend () { |
| 41 | ( cd ${S}; autoreconf -f -i -s ) |
| 42 | } |
| 43 | |
| 44 | EXTRA_OECONF += " --libdir=${libdir}/opensaf " |
| 45 | EXTRA_OEMAKE += " -Wl,-rpath,${libdir}/opensaf " |
| 46 | |
| 47 | PKGLIBDIR="${libdir}/opensaf/opensaf" |
| 48 | |
| 49 | FILES_${PN} += "${localstatedir}/run" |
| 50 | |
| 51 | FILES_${PN}-staticdev += "${PKGLIBDIR}/*.a" |
| 52 | |
| 53 | RDEPENDS_${PN} += "bash python" |
| 54 | |
| 55 | INSANE_SKIP_${PN} = "dev-so" |
| 56 | |
| 57 | do_install_append() { |
| 58 | rm -fr "${D}${localstatedir}/lock" |
| 59 | rm -fr "${D}${localstatedir}/run" |
| 60 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" |
| 61 | install -d ${D}${systemd_unitdir}/system |
| 62 | install -m 0644 ${B}/osaf/services/infrastructure/nid/config/opensafd.service \ |
| 63 | ${D}${systemd_unitdir}/system |
| 64 | install -m 0644 ${B}/contrib/plmc/config/*.service ${D}/${systemd_unitdir}/system |
| 65 | |
| 66 | } |