From f706b16ca17c637a74613f8443b216d26ed98461 Mon Sep 17 00:00:00 2001 From: Brendan O'Dea Date: Fri, 2 Jul 2004 07:26:18 +0000 Subject: [PATCH] rename l2tpns.cfg to startup-config fix installation of plugins use DESTDIR rather than PREFIX --- Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 8af2656..e3b7855 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ -PREFIX= -bindir = $(PREFIX)/usr/sbin -etcdir = $(PREFIX)/etc/l2tpns -libdir = $(PREFIX)/usr/lib/l2tpns +DESTDIR = +bindir = $(DESTDIR)/usr/sbin +etcdir = $(DESTDIR)/etc/l2tpns +libdir = $(DESTDIR)/usr/lib/l2tpns CC = gcc -DEFINES= -DBGP -DRINGBUFFER -DSTAT_CALLS -DSTATISTICS -OPTIM=-g -O3 -funroll-loops -fomit-frame-pointer -finline-functions -CFLAGS=-Wall $(OPTIM) $(DEFINES) +DEFINES = -DBGP -DRINGBUFFER -DSTAT_CALLS -DSTATISTICS +OPTIM = -g -O3 -funroll-loops -fomit-frame-pointer -finline-functions +CFLAGS = -Wall $(OPTIM) $(DEFINES) LDFLAGS = LIBS = -lm -ldl -lcli INSTALL = /usr/bin/install -c @@ -50,11 +50,11 @@ depend: install: all $(INSTALL) -D -o root -g root -m 0755 l2tpns $(bindir)/l2tpns $(INSTALL) -D -o root -g root -m 0755 nsctl $(bindir)/nsctl - $(INSTALL) -D -o root -g root -m 0600 etc/l2tpns.cfg.default $(etcdir)/l2tpns.cfg + $(INSTALL) -D -o root -g root -m 0600 etc/startup-config.default $(etcdir)/startup-config $(INSTALL) -D -o root -g root -m 0644 etc/ip_pool.default $(etcdir)/l2tpns.ip_pool $(INSTALL) -D -o root -g root -m 0600 etc/users.default $(etcdir)/l2tpns.users - for PLUGIN in $(PLUGINS); do \ - $(INSTALL) -D -o root -g root -m 0755 $(PLUGIN) $(libdir)/$(PLUGIN); \ + for plugin in $(PLUGINS); do \ + $(INSTALL) -D -o root -g root -m 0755 $$plugin $(libdir)/$$plugin; \ done if [ ! -e /dev/net/tun ]; then \ mkdir /dev/net; \ -- 2.20.1