tiproute2: Fix compilation with current toolset - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 9bea2169ae66208f0b795c0f8c6623d159241e50
(DIR) parent 7eb26674dfbe84d1df1360c10b09eb79af9359b5
(HTM) Author: root <root@doom.z3bra.org>
Date: Fri, 26 May 2017 06:25:55 +0000
iproute2: Fix compilation with current toolset
Require flex + bison (uugh..), as well as a patch to prevent
tthe non-POSIX use of -maxdepth with find(1)
Diffstat:
M iproute2/mkfile | 2 +-
A iproute2/patches/006-posix-install… | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/iproute2/mkfile b/iproute2/mkfile
t@@ -5,4 +5,4 @@ url = https://www.kernel.org/pub/linux/utils/net/$pkg/$pkg-$ver.tar.xz
<../default.mk
CFLAGS = ${CFLAGS} -I../include -DHAVE_SETNS -DRESOLVE_HOSTNAMES -DNO_SHARED_LIBS -D_GNU_SOURCE '-DLIBDIR=\"/lib\" -DCONFDIR=\"/etc/iproute2\"'
-MAKEFLAGS = ${MAKEFLAGS} SHARED_LIBS=n DATADIR= ARPDDIR=
+MAKEFLAGS = ${MAKEFLAGS} SHARED_LIBS=n DATADIR= ARPDDIR= SBINDIR=/bin SHELL=sh
(DIR) diff --git a/iproute2/patches/006-posix-install.diff b/iproute2/patches/006-posix-install.diff
t@@ -0,0 +1,20 @@
+diff -urN a/Makefile b/Makefile
+--- a/Makefile 2014-12-24 20:20:49.000000000 +0000
++++ b/Makefile 2017-05-26 06:16:10.803325264 +0000
+@@ -53,14 +53,8 @@
+ install -m 0755 -d $(DESTDIR)$(SBINDIR)
+ install -m 0755 -d $(DESTDIR)$(CONFDIR)
+ install -m 0755 -d $(DESTDIR)$(ARPDDIR)
+- install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples
+- install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples/diffserv
+- install -m 0644 README.iproute2+tc $(shell find examples -maxdepth 1 -type f) \
+- $(DESTDIR)$(DOCDIR)/examples
+- install -m 0644 $(shell find examples/diffserv -maxdepth 1 -type f) \
+- $(DESTDIR)$(DOCDIR)/examples/diffserv
+- @for i in $(SUBDIRS) doc; do $(MAKE) -C $$i install; done
++ @for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
+- install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
++ install -m 0644 $(shell find etc/iproute2 -type f) $(DESTDIR)$(CONFDIR)
+
+ snapshot:
+ echo "static const char SNAPSHOT[] = \""`date +%y%m%d`"\";" \