1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
ifndef top_srcdir
include ../../mk/dirs.mk
endif
INIT_D_FILE=ipsec.init
SYSCONFIGFILE=$(builddir)/sysconfig.pluto
SYSCONFIGDIR=$(DESTDIR)$(SYSCONFDIR)/sysconfig
SYSVINIT_DEFAULT_START?=
include $(top_srcdir)/mk/config.mk
include $(top_srcdir)/mk/install.mk
include $(top_srcdir)/mk/install.init.d.mk
# Use dependencies to force the order.
#
# (Without this, since local-install-base depends local-base, rules
# like local-base and installinitfiles and checkenabled are allowed to
# run in parallel)
local-base: $(INIT_D_FILE) $(SYSCONFIGFILE)
local-install-base: installsysconfig checkenabled
installsysconfig: local-base
mkdir -p $(SYSCONFIGDIR)
if test ! -f $(SYSCONFIGDIR)/pluto ; then \
$(INSTALL) $(INSTCONFFLAGS) $(SYSCONFIGFILE) $(SYSCONFIGDIR)/pluto ; \
fi
checkenabled: install.init.d installsysconfig
@count=0 ; \
for dir in $(DESTDIR)/etc/rc?.d ; do \
if test -f $$dir/S??ipsec.init ; then \
count=1 ; \
fi ; \
done ; \
if test $$count = 0 ; then \
echo "************************** WARNING ***********************************" ; \
echo "** The ipsec service is not enabled." ; \
echo "** Enable it using 'chkconfig ipsec on' or another similar method." ; \
echo "**********************************************************************" ; \
fi
include ${top_srcdir}/mk/targets.mk
include ${top_srcdir}/mk/rules.mk
|