updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pxe / 05-makefile.patch
blob23ce27ffac27c6ba6ffd123b8ac4bf1c74105f6b
1 --- a/Makefile 2011-01-17 20:44:18.000000000 +0100
2 +++ b/Makefile 2011-01-17 20:48:45.000000000 +0100
3 @@ -3,7 +3,11 @@
4 LDFLAGS = -Wl,--hash-style=gnu -Wl,--as-needed -lresolv -lnsl
6 EXECS = pxe
7 -CP = cp
8 +INSTALL = /bin/install
9 +DESTDIR =
10 +PREFIX = /usr/local
11 +BINDIR = $(PREFIX)/sbin
12 +sysconfdir = $(PREFIX)/etc
14 all: $(EXECS)
16 @@ -31,7 +35,7 @@
17 $(CXX) $(CXXFLAGS) -c $*.cc
19 install: all
20 - $(CP) pxe /usr/sbin/
21 - @if test ! -e /etc/pxe.conf; then \
22 - $(CP) pxe.conf /etc/; \
23 - fi
24 + $(INSTALL) -d $(DESTDIR)$(BINDIR)
25 + $(INSTALL) -m 744 pxe $(DESTDIR)$(BINDIR)
26 + $(INSTALL) -d $(DESTDIR)$(sysconfdir)
27 + $(INSTALL) -m 644 pxe.conf $(DESTDIR)$(sysconfdir)/pxe.conf