rename l2tpns.cfg to startup-config
fix installation of plugins use DESTDIR rather than PREFIX
This commit is contained in:
parent
eb3a6cd62d
commit
6069adbcfc
1 changed files with 10 additions and 10 deletions
20
Makefile
20
Makefile
|
|
@ -1,12 +1,12 @@
|
||||||
PREFIX=
|
DESTDIR =
|
||||||
bindir = $(PREFIX)/usr/sbin
|
bindir = $(DESTDIR)/usr/sbin
|
||||||
etcdir = $(PREFIX)/etc/l2tpns
|
etcdir = $(DESTDIR)/etc/l2tpns
|
||||||
libdir = $(PREFIX)/usr/lib/l2tpns
|
libdir = $(DESTDIR)/usr/lib/l2tpns
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
DEFINES= -DBGP -DRINGBUFFER -DSTAT_CALLS -DSTATISTICS
|
DEFINES = -DBGP -DRINGBUFFER -DSTAT_CALLS -DSTATISTICS
|
||||||
OPTIM=-g -O3 -funroll-loops -fomit-frame-pointer -finline-functions
|
OPTIM = -g -O3 -funroll-loops -fomit-frame-pointer -finline-functions
|
||||||
CFLAGS=-Wall $(OPTIM) $(DEFINES)
|
CFLAGS = -Wall $(OPTIM) $(DEFINES)
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
LIBS = -lm -ldl -lcli
|
LIBS = -lm -ldl -lcli
|
||||||
INSTALL = /usr/bin/install -c
|
INSTALL = /usr/bin/install -c
|
||||||
|
|
@ -50,11 +50,11 @@ depend:
|
||||||
install: all
|
install: all
|
||||||
$(INSTALL) -D -o root -g root -m 0755 l2tpns $(bindir)/l2tpns
|
$(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 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 0644 etc/ip_pool.default $(etcdir)/l2tpns.ip_pool
|
||||||
$(INSTALL) -D -o root -g root -m 0600 etc/users.default $(etcdir)/l2tpns.users
|
$(INSTALL) -D -o root -g root -m 0600 etc/users.default $(etcdir)/l2tpns.users
|
||||||
for PLUGIN in $(PLUGINS); do \
|
for plugin in $(PLUGINS); do \
|
||||||
$(INSTALL) -D -o root -g root -m 0755 $(PLUGIN) $(libdir)/$(PLUGIN); \
|
$(INSTALL) -D -o root -g root -m 0755 $$plugin $(libdir)/$$plugin; \
|
||||||
done
|
done
|
||||||
if [ ! -e /dev/net/tun ]; then \
|
if [ ! -e /dev/net/tun ]; then \
|
||||||
mkdir /dev/net; \
|
mkdir /dev/net; \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue