freebsd-ports/net/slbd/files/patch-Makefile
Ion-Mihai Tetcu 9b90b3ca6e The slbd project aims to produce stable, production-quality code to monitor
web and other TCP-based servers, allowing for server load balancing (SLB)
functionality through *BSD's PF packet filter.

WWW: http://slbd.sourceforge.net/

PR:		ports/104926
Submitted by:	Janos Mohacsi <janos.mohacsi at bsd.hu>
2006-11-10 21:07:55 +00:00

32 lines
587 B
Text

$FreeBSD$
--- Makefile.orig
+++ Makefile
@@ -14,15 +14,11 @@
#SUBDIR=tests
PROG=slbd
MAN=
-PREFIX=/usr/local
+PREFIX=%%PREFIX%%
BINDIR=sbin
CONFDIR=etc
-.if exists(${PREFIX}/${CONFDIR}/slbdcap)
-CONFFILE=$(PREFIX)/$(CONFDIR)/slbdcap.new
-.else
-CONFFILE=$(PREFIX)/$(CONFDIR)/slbdcap
-.endif
+CONFFILE=$(PREFIX)/$(CONFDIR)/slbdcap-sample
.c.o:
@@ -47,7 +43,7 @@
install-slbd:
$(INSTALL) $(PROG) $(PREFIX)/$(BINDIR)/
#mkdir -p $(PREFIX)/$(CONFDIR)
- #cp conf/slbdcap $(CONFFILE)
+ $(INSTALL) conf/slbdcap $(CONFFILE)
config-clean:
rm -f config.o config_test config