fwknop/server/Makefile.am
Michael Rash 863838d0ba [server] Preserve any existing config files in /etc/fwknop/
Updated the 'make install' step to not overwrite any existing config files in
/etc/fwknop/ and instead install new copies from the source tree at
/etc/fwknop/fwknopd.conf.inst and /etc/fwknop/access.conf.inst
2012-08-13 22:39:03 -04:00

47 lines
1.6 KiB
Makefile

sbin_PROGRAMS = fwknopd
fwknopd_SOURCES = fwknopd.c fwknopd.h config_init.c config_init.h \
fwknopd_common.h incoming_spa.c incoming_spa.h \
pcap_capture.c pcap_capture.h process_packet.c \
process_packet.h log_msg.c log_msg.h utils.c utils.h \
sig_handler.c sig_handler.h replay_cache.c replay_cache.h \
access.c access.h fwknopd_errors.c fwknopd_errors.h \
tcp_server.c tcp_server.h extcmd.c extcmd.h \
fw_util.c fw_util.h fw_util_ipf.c fw_util_ipf.h \
fw_util_iptables.c fw_util_iptables.h \
fw_util_ipfw.c fw_util_ipfw.h \
fw_util_pf.c fw_util_pf.h cmd_opts.h
fwknopd_LDADD = $(top_builddir)/lib/libfko.la -lpcap
if ! CONFIG_FILE_CACHE
if USE_NDBM
fwknopd_LDADD += -lndbm
else
fwknopd_LDADD += -lgdbm
endif
endif
fwknopd_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/common -DSYSCONFDIR=\"$(sysconfdir)\" -DSYSRUNDIR=\"$(localstatedir)\"
fwknopddir = @sysconfdir@/fwknop
dist_man_MANS = fwknopd.8
dist_fwknopd_DATA = fwknopd.conf.inst access.conf.inst
EXTRA_DIST = fwknopd.8.in
fwknopd.8: $(top_srcdir)/server/fwknopd.8.in
$(SED) \
-e 's|[@]prefix@|$(prefix)|g' \
-e 's|[@]sysconfdir@|$(sysconfdir)|g' \
-e 's|[@]datarootdir@|$(datarootdir)|g' \
-e 's|[@]bindir@|$(bindir)|g' \
-e 's|[@]sbindir@|$(sbindir)|g' \
-e 's|[@]localstatedir@|$(localstatedir)|g' \
< $(top_srcdir)/server/fwknopd.8.in > "$@"
clean-local:
rm -f fwknopd.8