Files
infix/package/querierd/querierd.mk
T
Joachim WibergandMattias Walström 944024f394 package/querierd: add per-interface service template
Since Infix supports per-VLAN querier parameters, like query interval,
we currently need to run a separate querierd per VLAN interface.  The
replacement, mcd, will handle this automatically in its .conf file.

Also, ensure we install the daemon configuration file as an example, and
thus creating the /etc/querierd/ directory for where .conf files for
each interface will be generated.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-03-07 12:45:55 +01:00

30 lines
922 B
Makefile

################################################################################
#
# querierd
#
################################################################################
QUERIERD_VERSION = 0.10
QUERIERD_SITE = \
https://github.com/westermo/querierd/releases/download/v$(QUERIERD_VERSION)
QUERIERD_LICENSE = BSD-3-Clause
QUERIERD_LICENSE_FILES = LICENSE
QUERIERD_INSTALL_STAGING = YES
define QUERIERD_INSTALL_CONFIG
$(INSTALL) -D -m 0644 $(QUERIERD_PKGDIR)/querierd.conf \
$(TARGET_DIR)/etc/querierd/example.conf
endef
QUERIERD_POST_INSTALL_TARGET_HOOKS += QUERIERD_INSTALL_CONFIG
define QUERIERD_INSTALL_FINIT_SVC
$(INSTALL) -D -m 0644 $(QUERIERD_PKGDIR)/querierd.svc \
$(FINIT_D)/available/querierd.conf
$(INSTALL) -D -m 0644 $(QUERIERD_PKGDIR)/template.svc \
$(FINIT_D)/available/querierd@.conf
endef
QUERIERD_POST_INSTALL_TARGET_HOOKS += QUERIERD_INSTALL_FINIT_SVC
$(eval $(autotools-package))