summaryrefslogtreecommitdiff
path: root/net/pxe/patches/patch-aa
blob: bda7a151d930ca649b39274d6ac1f914ea5db331 (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
$NetBSD: patch-aa,v 1.4 2007/12/22 12:08:58 obache Exp $

--- Makefile.in.orig	2003-02-02 13:32:35.000000000 +0000
+++ Makefile.in
@@ -1,10 +1,12 @@
 CXX		=	@CXX@
-CXXFLAGS	=	@CXXFLAGS@
-LDFLAGS		=	@LDFLAGS@ @LIBS@
+CXXFLAGS	+=	@CXXFLAGS@
+LDFLAGS		+=	@LDFLAGS@ @LIBS@
 
 EXECS		=	pxe
 CP		=	cp
 
+EGDIR		=	${PREFIX}/share/examples/pxe
+
 all:	$(EXECS)
 
 pxe.o:	pxe.cc
@@ -31,7 +33,9 @@ pxe:		$(OBJS)
 	$(CXX) $(CXXFLAGS) -c $*.cc
 
 install:	all
-	$(CP) pxe /usr/sbin/
-	@if test ! -e /etc/pxe.conf; then \
-		$(CP) pxe.conf /etc/; \
+	${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
+	${BSD_INSTALL_PROGRAM} pxe ${DESTDIR}${PREFIX}/sbin
+	${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(EGDIR)
+	@if test ! -e ${DESTDIR}$(EGDIR)/pxe.conf; then \
+		${BSD_INSTALL_DATA} pxe.conf ${DESTDIR}$(EGDIR); \
 	fi