firehol/sbin/Makefile.am
Pieter du Preez ba494063c1 Moved the service definitions out of firehol and fireqos.
This commit moves the service definitions from firehol and fireqos into
the following files:

   - sbin/services.common
   - sbin/services.firehol
   - sbin/services.fireqos

The sbin/services.common file is now sourced by firehol and fireqos,
in addition to their respective sbin/services.fire(hol|qos) files.

The goal of this commit was to simplify maintenance of service definitions.
2018-02-14 21:22:28 +01:00

63 lines
1.1 KiB
Makefile

# Process this file with automake to produce Makefile.in
inclibdir = @firehollibexecdir@
include $(top_srcdir)/build/subst.inc
SUFFIXES = .in
scripts =
if ENABLE_FIREHOL
scripts += firehol
endif
if ENABLE_FIREQOS
scripts += fireqos
endif
if ENABLE_LINK_BALANCER
scripts += link-balancer
endif
if ENABLE_UPDATE_IPSETS
scripts += update-ipsets
endif
if ENABLE_VNETBUILD
scripts += vnetbuild
endif
CLEANFILES = install.config
inclib_DATA = \
functions.common \
services.common \
services.fireqos \
services.firehol \
install.config \
$(NULL)
inclib_SCRIPTS = $(scripts)
EXTRA_DIST = \
functions.common \
services.common \
services.fireqos \
services.firehol \
install.config.in \
$(scripts) \
$(NULL)
install-exec-hook:
$(MKDIR_P) "$(DESTDIR)$(sbindir)"
$(CHMOD) 755 "$(DESTDIR)$(sbindir)"
for i in $(scripts); do \
$(RM) -f "$(DESTDIR)$(sbindir)/$$i"; \
$(LN_S_R) "$(DESTDIR)$(inclibdir)/$$i" "$(DESTDIR)$(sbindir)"; done
uninstall-hook:
for i in $(scripts); do \
$(RM) -f "$(DESTDIR)$(sbindir)/$$i"; done
@-rmdir --ignore-fail-on-non-empty $(DESTDIR)$(inclibdir)