pkgsrc/net/pxe/patches/patch-aa
obache 392290f57c Update pxe to 1.4.2.
pkgsrc changes:
Need 'sbin' before install.  now DESTDIR ready.

Changes:
May 26, 2004: pxe 1.4.2 released.
	Fixed un-initialised variable in the multicast setup
January 19, 2004: pxe 1.4.1 released.
	GCC 3.3 fixes
2007-12-22 12:08:58 +00:00

32 lines
800 B
Text

$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