aboutsummaryrefslogtreecommitdiffstats
path: root/community/dnstracer/makefile-path.patch
blob: e0b58e4de979d332d11960eb058b2cf436b30e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/Makefile b/Makefile
index d9d2cea..418cfa5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,15 @@ MANTITLE=	Additional Software
 
 VERSION=	1.11
 
-PREFIX=		/usr/local/
-BINPREFIX=	${PREFIX}/bin/
-MANPREFIX=	${PREFIX}/man/man${MANSEC}/
+PREFIX=		/usr
+BINPREFIX=	$(DESTDIR)${PREFIX}/bin/
+MANPREFIX=	$(DESTDIR)${PREFIX}/share/man/man${MANSEC}/
 
 all:	dnstracer dnstracer.8
 
 install:
+	install -d -m 755 ${BINPREFIX}
+	install -d -m 755 ${MANPREFIX}
 	install dnstracer ${BINPREFIX}
 	install dnstracer.8 ${MANPREFIX}