pkgsrc/net/pxe/patches/patch-aa
xtraeme 72d7cf7180 Updated to 1.4.
Patch provided by Adrian Portelli via PR pkg/22323 with some changes by me
(GCC 3.x fixes)

Changes:

* Made the source ansi compliant and fixed namespace usage.
* Made debuging a command line switch.
* Converted code to use namespaces.
2003-09-30 09:32:06 +00:00

31 lines
729 B
Text

$NetBSD: patch-aa,v 1.3 2003/09/30 09:32:06 xtraeme Exp $
--- Makefile.in.orig 2003-09-30 11:25:24.000000000 +0200
+++ Makefile.in 2003-09-30 11:27:19.000000000 +0200
@@ -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,8 @@
$(CXX) $(CXXFLAGS) -c $*.cc
install: all
- $(CP) pxe /usr/sbin/
- @if test ! -e /etc/pxe.conf; then \
- $(CP) pxe.conf /etc/; \
+ ${BSD_INSTALL_PROGRAM} pxe ${PREFIX}/sbin
+ ${BSD_INSTALL_DATA_DIR} $(EGDIR)
+ @if test ! -e $(EGDIR)/pxe.conf; then \
+ ${BSD_INSTALL_DATA} pxe.conf $(EGDIR); \
fi