$NetBSD: patch-aa,v 1.3 2005/12/27 09:58:56 dillo Exp $

--- Makefile.orig	2005-01-30 23:20:52.000000000 +0100
+++ Makefile
@@ -6,12 +6,13 @@ 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
+	install -o root -g wheel -m 0644 estd.sh ${PREFIX}/share/examples/rc.d/estd
