1*4882a593SmuzhiyunSUMMARY = "Opensource Implementation of WS-Management" 2*4882a593SmuzhiyunDESCRIPTION = "Openwsman is a project intended to provide an open-source \ 3*4882a593Smuzhiyunimplementation of the Web Services Management specipication \ 4*4882a593Smuzhiyun(WS-Management) and to expose system management information on the \ 5*4882a593SmuzhiyunLinux operating system using the WS-Management protocol. WS-Management \ 6*4882a593Smuzhiyunis based on a suite of web services specifications and usage \ 7*4882a593Smuzhiyunrequirements that exposes a set of operations focused on and covers \ 8*4882a593Smuzhiyunall system management aspects. \ 9*4882a593SmuzhiyunOpenwsman Server and service libraries" 10*4882a593SmuzhiyunHOMEPAGE = "http://www.openwsman.org/" 11*4882a593SmuzhiyunSECTION = "Applications/System" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunDEPENDS = "curl libxml2 openssl libpam" 14*4882a593Smuzhiyun 15*4882a593Smuzhiyuninherit features_check 16*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES = "pam" 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunSRCREV = "d8eba6cb6682b59d84ca1da67a523520b879ade6" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunSRC_URI = "git://github.com/Openwsman/openwsman.git;branch=master;protocol=https \ 21*4882a593Smuzhiyun file://libssl-is-required-if-eventint-supported.patch \ 22*4882a593Smuzhiyun file://openwsmand.service \ 23*4882a593Smuzhiyun file://0001-lock.c-Define-PTHREAD_MUTEX_RECURSIVE_NP-if-undefine.patch \ 24*4882a593Smuzhiyun " 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunS = "${WORKDIR}/git" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunLICENSE = "BSD-3-Clause" 29*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=d4f53d4c6cf73b9d43186ce3be6dd0ba" 30*4882a593Smuzhiyun 31*4882a593Smuzhiyuninherit systemd cmake pkgconfig python3native perlnative 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunSYSTEMD_SERVICE:${PN} = "openwsmand.service" 34*4882a593SmuzhiyunSYSTEMD_AUTO_ENABLE = "disable" 35*4882a593Smuzhiyun 36*4882a593SmuzhiyunLDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', " -fuse-ld=bfd ", '', d)}" 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunEXTRA_OECMAKE = "-DBUILD_BINDINGS=NO \ 39*4882a593Smuzhiyun -DBUILD_LIBCIM=NO \ 40*4882a593Smuzhiyun -DBUILD_PERL=YES \ 41*4882a593Smuzhiyun -DBUILD_PYTHON3=YES \ 42*4882a593Smuzhiyun -DBUILD_PYTHON=NO \ 43*4882a593Smuzhiyun -DCMAKE_INSTALL_PREFIX=${prefix} \ 44*4882a593Smuzhiyun -DLIB=${baselib} \ 45*4882a593Smuzhiyun " 46*4882a593Smuzhiyun 47*4882a593Smuzhiyundo_configure:prepend() { 48*4882a593Smuzhiyun export STAGING_INCDIR=${STAGING_INCDIR} 49*4882a593Smuzhiyun export STAGING_LIBDIR=${STAGING_LIBDIR} 50*4882a593Smuzhiyun} 51*4882a593Smuzhiyun 52*4882a593Smuzhiyundo_install:append() { 53*4882a593Smuzhiyun install -d ${D}/${sysconfdir}/init.d 54*4882a593Smuzhiyun install -m 755 ${B}/etc/init/openwsmand.sh ${D}/${sysconfdir}/init.d/openwsmand 55*4882a593Smuzhiyun ln -sf ${sysconfdir}/init.d/openwsmand ${D}/${sbindir}/rcopenwsmand 56*4882a593Smuzhiyun chmod 755 ${D}/${sysconfdir}/openwsman/owsmangencert.sh 57*4882a593Smuzhiyun if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 58*4882a593Smuzhiyun install -d ${D}/${systemd_unitdir}/system 59*4882a593Smuzhiyun install -m 644 ${WORKDIR}/openwsmand.service ${D}/${systemd_unitdir}/system 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/openwsmand.service 62*4882a593Smuzhiyun sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/openwsmand.service 63*4882a593Smuzhiyun sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${systemd_unitdir}/system/openwsmand.service 64*4882a593Smuzhiyun fi 65*4882a593Smuzhiyun} 66*4882a593Smuzhiyun 67*4882a593SmuzhiyunFILES:${PN}-dbg += "${libdir}/openwsman/plugins/.debug/ \ 68*4882a593Smuzhiyun ${libdir}/openwsman/authenticators/.debug/ \ 69*4882a593Smuzhiyun " 70*4882a593Smuzhiyun 71*4882a593SmuzhiyunINSANE_SKIP:${PN} = "dev-so" 72*4882a593SmuzhiyunRDEPENDS:${PN} = "ruby" 73