summaryrefslogtreecommitdiff
path: root/net/sysmon/patches/patch-aa
blob: e219f9b8be0c6a2f9a58a65dd5320e3a87a92fd5 (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
29
30
31
32
33
34
35
$NetBSD: patch-aa,v 1.2 2016/08/14 02:13:49 mef Exp $

destdir support

--- autoconf/Makefile.in.orig	2009-12-13 14:50:15.000000000 +0100
+++ autoconf/Makefile.in	2009-12-13 14:52:57.000000000 +0100
@@ -19,6 +19,7 @@
 LDFLAGS         = @LDFLAGS@
 RM		= /bin/rm -f
 
+destdir = @destdir@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 
@@ -54,13 +55,13 @@
 	grep SYSM_VERS config.h | mail -s"Sysmon Registration" jared@puck.nether.net
 
 install:	all
-	@echo "installing into @bindir@"
-	-mkdir -p @bindir@
-	-mv @bindir@/sysmond @bindir@/sysmond.old
-	-mv @bindir@/sysmon @bindir@/sysmon.old
-	cp sysmon sysmond @bindir@
-	@echo "creating directory @sysconfdir@"
-	-mkdir -p @sysconfdir@
+	@echo "installing into @destdir@/@bindir@"
+	-mkdir -p @destdir@/@bindir@
+	-mv @destdir@/@bindir@/sysmond @destdir@/@bindir@/sysmond.old
+	-mv @destdir@/@bindir@/sysmon @destdir@/@bindir@/sysmon.old
+	cp sysmon sysmond @destdir@/@bindir@
+	@echo "creating directory @destdir@/@sysconfdir@"
+	-mkdir -p @destdir@/@sysconfdir@
 
 strip:
 	-strip @PROGS@