termux-packages/packages/iproute2/Makefile.patch

29 lines
713 B
Diff
Raw Normal View History

2021-11-24 12:51:25 +01:00
--- a/Makefile
+++ b/Makefile
@@ -12,18 +12,18 @@
MAKEFLAGS += --no-print-directory
endif
-PREFIX?=/usr
+PREFIX?=@TERMUX_PREFIX@
LIBDIR?=$(PREFIX)/lib
-SBINDIR?=/sbin
-CONFDIR?=/etc/iproute2
-NETNS_RUN_DIR?=/var/run/netns
-NETNS_ETC_DIR?=/etc/netns
+SBINDIR?=$(PREFIX)/sbin
+CONFDIR?=$(PREFIX)/etc/iproute2
+NETNS_RUN_DIR?=$(PREFIX)/var/run/netns
+NETNS_ETC_DIR?=$(PREFIX)/etc/netns
DATADIR?=$(PREFIX)/share
HDRDIR?=$(PREFIX)/include/iproute2
DOCDIR?=$(DATADIR)/doc/iproute2
MANDIR?=$(DATADIR)/man
-ARPDDIR?=/var/lib/arpd
-KERNEL_INCLUDE?=/usr/include
+ARPDDIR?=$(PREFIX)/var/lib/arpd
+KERNEL_INCLUDE?=$(PREFIX)/include
BASH_COMPDIR?=$(DATADIR)/bash-completion/completions
# Path to db_185.h include