netcf: upgrade 0.2.3 -> 0.2.8

add systemd support for netcf

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
Li xin
2015-08-07 14:55:07 +08:00
committed by Joe MacDonald
parent 465afbad99
commit 77d17425b5
@@ -6,8 +6,8 @@ LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff" LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
SRCREV = "b8a19dc860b38c97c42115d8a559b78853452a4b" SRCREV = "9158278ad35b46ce9a49b2e887483c6d8c287994"
PV = "0.2.3+git${SRCPV}" PV = "0.2.8+git${SRCPV}"
SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \ SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \
" "
@@ -16,9 +16,13 @@ DEPENDS += "augeas libnl libxslt libxml2 gnulib"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit gettext autotools-brokensep pkgconfig inherit gettext autotools-brokensep pkgconfig systemd
EXTRA_OECONF_append_class-target = " --with-driver=redhat" EXTRA_OECONF_append_class-target = " --with-driver=redhat"
PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)}"
PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts,"
do_configure_prepend() { do_configure_prepend() {
cd ${S} cd ${S}
rm -f .gitmodules rm -f .gitmodules
@@ -26,6 +30,14 @@ do_configure_prepend() {
} }
do_install_append() { do_install_append() {
mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir} if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
rm -rf ${D}${sysconfdir}/rc.d/ install -d ${D}${systemd_unitdir}/system
mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
rm -rf ${D}${libdir}/systemd/
else
mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir}
rm -rf ${D}${sysconfdir}/rc.d/
fi
} }
SYSTEMD_SERVICE_${PN} = "netcf-transaction.service"