summaryrefslogtreecommitdiff
path: root/network/bpfmon/makefile.patch
blob: 431c58a85aa6b7da9ba37603c278e8350002bb3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 8d2d7d8b9d5f5d5ec3ed8241ff93654f1ebb8973 Mon Sep 17 00:00:00 2001
From: Boian Bonev <bbonev@ipacct.com>
Date: Tue, 28 Sep 2021 03:26:08 +0300
Subject: [PATCH] better install target
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- remove -T from install for busybox compat (Milan P. Stanić <mps@arvanta.net>)
- also install the man page
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 54d6cbb..a629710 100644
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,8 @@ clean:
 	rm -f bpfmon bpfmon.o psort psort.o
 
 install: bpfmon
-	$(INSTALL) -TD -m 0755 $< $(DESTDIR)$(PREFIX)/sbin/$<
+	$(INSTALL) -D -m 0755 $< $(DESTDIR)$(PREFIX)/sbin/$<
+	$(INSTALL) -D -m 0644 bpfmon.8 $(DESTDIR)$(PREFIX)/share/man/man8/bpfmon.8
 	$(STRIP) $(DESTDIR)$(PREFIX)/sbin/$<
 
 mkotar: