mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
77d17425b5
add systemd support for netcf Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
44 lines
1.3 KiB
BlitzBasic
44 lines
1.3 KiB
BlitzBasic
SUMMARY = "netcf"
|
|
DESCRIPTION = "netcf is a cross-platform network configuration library."
|
|
HOMEPAGE = "https://fedorahosted.org/netcf/"
|
|
SECTION = "libs"
|
|
LICENSE = "LGPLv2.1"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
|
|
|
|
SRCREV = "9158278ad35b46ce9a49b2e887483c6d8c287994"
|
|
PV = "0.2.8+git${SRCPV}"
|
|
|
|
SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \
|
|
"
|
|
|
|
DEPENDS += "augeas libnl libxslt libxml2 gnulib"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit gettext autotools-brokensep pkgconfig systemd
|
|
|
|
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() {
|
|
cd ${S}
|
|
rm -f .gitmodules
|
|
./bootstrap --gnulib-srcdir=${STAGING_DATADIR}/gnulib
|
|
}
|
|
|
|
do_install_append() {
|
|
if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
|
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"
|