Browse Source

iproute2: enable lnstat and package all commands from misc into its own package

* disable arpd because db_185.h is not installed from the berkely db
  recipe

Fixes: SYS#1609
neels/inmarsat
Henning Heinold 6 years ago
committed by Holger Hans Peter Freyther
parent
commit
1716d4ffae
  1. 11
      recipes-fixes/iproute2/files/disable_arpd_in_misc.patch
  2. 16
      recipes-fixes/iproute2/iproute2_sysmocom.inc

11
recipes-fixes/iproute2/files/build_ss_only_in_misc.patch → recipes-fixes/iproute2/files/disable_arpd_in_misc.patch

@ -7,16 +7,7 @@ Index: iproute2-3.10.0/misc/Makefile
LNSTATOBJ=lnstat.o lnstat_util.o
-TARGETS=ss nstat ifstat rtacct arpd lnstat
+TARGETS=ss nstat ifstat rtacct
+TARGETS=ss nstat ifstat rtacct lnstat
include ../Config
@@ -28,8 +28,6 @@ lnstat: $(LNSTATOBJ)
install: all
install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
- ln -sf lnstat $(DESTDIR)$(SBINDIR)/rtstat
- ln -sf lnstat $(DESTDIR)$(SBINDIR)/ctstat
clean:
rm -f *.o $(TARGETS) ssfilter.c

16
recipes-fixes/iproute2/iproute2_sysmocom.inc

@ -1,9 +1,19 @@
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
PRINC="1"
SRC_URI += "file://build_ss_only_in_misc.patch"
PRINC="2"
# arpd can not be build because the db_185.h header from
# berkley db is not installed
SRC_URI += "file://disable_arpd_in_misc.patch"
EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip misc' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'"
PACKAGES =+ "${PN}-misc"
FILES_${PN}-misc += "${base_sbindir}/ss \
${base_sbindir}/nstat \
${base_sbindir}/ifstat \
${base_sbindir}/rtacct \
${base_sbindir}/lnstat \
"
Loading…
Cancel
Save