termux-packages/packages/iproute2/Makefile.patch

28 lines
689 B
Diff
Raw Normal View History

2021-11-24 12:51:25 +01:00
--- a/Makefile
+++ b/Makefile
2022-03-28 20:46:20 +02:00
@@ -14,17 +14,17 @@
2021-11-24 12:51:25 +01:00
MAKEFLAGS += --no-print-directory
endif
-PREFIX?=/usr
-SBINDIR?=/sbin
-CONFDIR?=/etc/iproute2
-NETNS_RUN_DIR?=/var/run/netns
-NETNS_ETC_DIR?=/etc/netns
2022-03-28 20:46:20 +02:00
+PREFIX?=@TERMUX_PREFIX@
+SBINDIR?=$(PREFIX)/bin
2021-11-24 12:51:25 +01:00
+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