summaryrefslogtreecommitdiff
path: root/sysutils/estd/patches/patch-aa
blob: 40a8c7ae4d5ff46ced98ff8129a45929efbe88b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aa,v 1.2 2005/10/07 08:52:14 adam Exp $

--- Makefile.orig	2005-01-30 22:20:52.000000000 +0000
+++ Makefile
@@ -6,12 +6,12 @@ clean:
 	rm -f *~
 
 estd:	estd.c
-	gcc -O2 -lutil -o estd estd.c
+	gcc ${CFLAGS} -lutil -o estd estd.c
 	
 all: estd
 
 install: all
-	install -d -o root -g wheel -m 0755 /usr/local/sbin
-	install -s -o root -g wheel -m 0755 estd /usr/local/sbin/estd
-	install -d -o root -g wheel -m 0755 /usr/local/man/man1
-	install -o root -g wheel -m 0644 estd.1 /usr/local/man/man1/estd.1
+	install -d -o root -g wheel -m 0755 ${PREFIX}/sbin
+	install -s -o root -g wheel -m 0755 estd ${PREFIX}/sbin/estd
+	install -d -o root -g wheel -m 0755 ${PREFIX}/man/man1
+	install -o root -g wheel -m 0644 estd.1 ${PREFIX}/man/man1/estd.1