diff options
Diffstat (limited to 'meta-networking/recipes-support/netcf/netcf_0.2.8.bb')
| -rw-r--r-- | meta-networking/recipes-support/netcf/netcf_0.2.8.bb | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/meta-networking/recipes-support/netcf/netcf_0.2.8.bb b/meta-networking/recipes-support/netcf/netcf_0.2.8.bb deleted file mode 100644 index 4170e9fab0..0000000000 --- a/meta-networking/recipes-support/netcf/netcf_0.2.8.bb +++ /dev/null | |||
| @@ -1,72 +0,0 @@ | |||
| 1 | SUMMARY = "netcf" | ||
| 2 | DESCRIPTION = "netcf is a cross-platform network configuration library." | ||
| 3 | HOMEPAGE = "https://pagure.io/netcf" | ||
| 4 | SECTION = "libs" | ||
| 5 | LICENSE = "LGPL-2.1-only" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f" | ||
| 8 | |||
| 9 | SRCREV = "2c5d4255857531bc09d91dcd02e86545f29004d4" | ||
| 10 | PV .= "+git" | ||
| 11 | |||
| 12 | SRC_URI = "git://pagure.io/netcf.git;protocol=https;branch=master \ | ||
| 13 | file://0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch" | ||
| 14 | |||
| 15 | UPSTREAM_CHECK_GITTAGREGEX = "release-(?P<pver>(\d+(\.\d+)+))" | ||
| 16 | |||
| 17 | DEPENDS += "augeas libnl libxslt libxml2" | ||
| 18 | |||
| 19 | do_configure[depends] += "${MLPREFIX}gnulib:do_populate_sysroot" | ||
| 20 | |||
| 21 | |||
| 22 | inherit gettext autotools perlnative pkgconfig systemd | ||
| 23 | |||
| 24 | EXTRA_OECONF:append:class-target = " --with-driver=redhat" | ||
| 25 | |||
| 26 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | ||
| 27 | PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts," | ||
| 28 | |||
| 29 | do_configure:prepend() { | ||
| 30 | currdir=`pwd` | ||
| 31 | cd ${S} | ||
| 32 | |||
| 33 | # avoid bootstrap cloning gnulib on every configure | ||
| 34 | # the dir starts out empty from the pkg, but unconditionally blow it | ||
| 35 | # away so if we reconfigure due to gnulib sysroot sig changes, we will | ||
| 36 | # get the newer gnulib content into the build here. | ||
| 37 | rm -rf ${S}/.gnulib | ||
| 38 | cp -rf ${STAGING_DATADIR}/gnulib ${S}/.gnulib | ||
| 39 | |||
| 40 | # --force to avoid errors on reconfigure e.g if recipes changed we depend on | ||
| 41 | # | bootstrap: running: libtoolize --quiet | ||
| 42 | # | libtoolize: error: 'libltdl/COPYING.LIB' exists: use '--force' to overwrite | ||
| 43 | # | ... | ||
| 44 | ./bootstrap --force --no-git --gnulib-srcdir=.gnulib | ||
| 45 | |||
| 46 | cd $currdir | ||
| 47 | } | ||
| 48 | |||
| 49 | do_install:append() { | ||
| 50 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 51 | install -d ${D}${systemd_unitdir}/system | ||
| 52 | if [ -d "${D}${libdir}/systemd/system" ]; then | ||
| 53 | if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then | ||
| 54 | mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ | ||
| 55 | rm -rf ${D}${libdir}/systemd/ | ||
| 56 | fi | ||
| 57 | elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then | ||
| 58 | mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ | ||
| 59 | rm -rf ${D}${nonarch_libdir}/systemd/ | ||
| 60 | fi | ||
| 61 | else | ||
| 62 | mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir} | ||
| 63 | rm -rf ${D}${sysconfdir}/rc.d/ | ||
| 64 | fi | ||
| 65 | } | ||
| 66 | |||
| 67 | FILES:${PN} += " \ | ||
| 68 | ${libdir} \ | ||
| 69 | ${nonarch_libdir} \ | ||
| 70 | " | ||
| 71 | |||
| 72 | SYSTEMD_SERVICE:${PN} = "netcf-transaction.service" | ||
