mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
Refer [1], Makefile.am already set ACLOCAL_AMFLAGS = -I gnulib/m4, set EXTRA_AUTORECONF will cause do_configure failure with long build path, just drop EXTRA_AUTORECONF. [1] https://git.openembedded.org/openembedded-core/commit/meta/classes-recipe/autotools.bbclass?id=e718d1be2c4fb54cf363c23f929358e1be68c724 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
73 lines
2.4 KiB
BlitzBasic
73 lines
2.4 KiB
BlitzBasic
SUMMARY = "netcf"
|
|
DESCRIPTION = "netcf is a cross-platform network configuration library."
|
|
HOMEPAGE = "https://pagure.io/netcf"
|
|
SECTION = "libs"
|
|
LICENSE = "LGPL-2.1-only"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f"
|
|
|
|
SRCREV = "2c5d4255857531bc09d91dcd02e86545f29004d4"
|
|
PV .= "+git"
|
|
|
|
SRC_URI = "git://pagure.io/netcf.git;protocol=https;branch=master \
|
|
file://0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch"
|
|
|
|
UPSTREAM_CHECK_GITTAGREGEX = "release-(?P<pver>(\d+(\.\d+)+))"
|
|
|
|
DEPENDS += "augeas libnl libxslt libxml2"
|
|
|
|
do_configure[depends] += "${MLPREFIX}gnulib:do_populate_sysroot"
|
|
|
|
|
|
inherit gettext autotools perlnative pkgconfig systemd
|
|
|
|
EXTRA_OECONF:append:class-target = " --with-driver=redhat"
|
|
|
|
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
|
PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts,"
|
|
|
|
do_configure:prepend() {
|
|
currdir=`pwd`
|
|
cd ${S}
|
|
|
|
# avoid bootstrap cloning gnulib on every configure
|
|
# the dir starts out empty from the pkg, but unconditionally blow it
|
|
# away so if we reconfigure due to gnulib sysroot sig changes, we will
|
|
# get the newer gnulib content into the build here.
|
|
rm -rf ${S}/.gnulib
|
|
cp -rf ${STAGING_DATADIR}/gnulib ${S}/.gnulib
|
|
|
|
# --force to avoid errors on reconfigure e.g if recipes changed we depend on
|
|
# | bootstrap: running: libtoolize --quiet
|
|
# | libtoolize: error: 'libltdl/COPYING.LIB' exists: use '--force' to overwrite
|
|
# | ...
|
|
./bootstrap --force --no-git --gnulib-srcdir=.gnulib
|
|
|
|
cd $currdir
|
|
}
|
|
|
|
do_install:append() {
|
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
|
install -d ${D}${systemd_unitdir}/system
|
|
if [ -d "${D}${libdir}/systemd/system" ]; then
|
|
if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then
|
|
mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
|
|
rm -rf ${D}${libdir}/systemd/
|
|
fi
|
|
elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then
|
|
mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
|
|
rm -rf ${D}${nonarch_libdir}/systemd/
|
|
fi
|
|
else
|
|
mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir}
|
|
rm -rf ${D}${sysconfdir}/rc.d/
|
|
fi
|
|
}
|
|
|
|
FILES:${PN} += " \
|
|
${libdir} \
|
|
${nonarch_libdir} \
|
|
"
|
|
|
|
SYSTEMD_SERVICE:${PN} = "netcf-transaction.service"
|