swanctl: Install swanctl.conf if it does not exist yet
This commit is contained in:
committed by
Martin Willi
parent
1312eab036
commit
49d8a5f554
@@ -23,10 +23,14 @@ swanctl_LDADD = \
|
|||||||
|
|
||||||
swanctl.o : $(top_builddir)/config.status
|
swanctl.o : $(top_builddir)/config.status
|
||||||
|
|
||||||
EXTRA_DIST = swanctl.conf
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_srcdir)/src/libstrongswan \
|
-I$(top_srcdir)/src/libstrongswan \
|
||||||
-I$(top_srcdir)/src/libcharon/plugins/vici \
|
-I$(top_srcdir)/src/libcharon/plugins/vici \
|
||||||
-DSWANCTLDIR=\""${swanctldir}\"" \
|
-DSWANCTLDIR=\""${swanctldir}\"" \
|
||||||
-DPLUGINS=\""${s_plugins}\""
|
-DPLUGINS=\""${s_plugins}\""
|
||||||
|
|
||||||
|
EXTRA_DIST = swanctl.conf
|
||||||
|
|
||||||
|
install-data-local: swanctl.conf
|
||||||
|
test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)"
|
||||||
|
test -e "$(DESTDIR)$(swanctldir)/swanctl.conf" || $(INSTALL) -m 640 $(srcdir)/swanctl.conf $(DESTDIR)$(swanctldir)/swanctl.conf || true
|
||||||
|
|||||||
Reference in New Issue
Block a user