mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
Everything (!) potentially shared with other sysrepo plugins/daemons and helper functions (not yet in libite) that can be used by other daemons have been relocated to libsrx. Fix #116 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
30 lines
833 B
Makefile
30 lines
833 B
Makefile
################################################################################
|
|
#
|
|
# statd
|
|
#
|
|
################################################################################
|
|
|
|
STATD_VERSION = 1.0
|
|
STATD_LICENSE = MIT
|
|
STATD_SITE_METHOD = local
|
|
STATD_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/statd
|
|
STATD_DEPENDENCIES = sysrepo libev libsrx jansson
|
|
|
|
define STATD_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
endef
|
|
|
|
define STATD_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
DESTDIR="$(TARGET_DIR)" install
|
|
endef
|
|
|
|
define STATD_INSTALL_EXTRA
|
|
cp $(STATD_PKGDIR)/statd.conf $(FINIT_D)/available/
|
|
ln -sf ../available/statd.conf $(FINIT_D)/enabled/statd.conf
|
|
endef
|
|
STATD_TARGET_FINALIZE_HOOKS += STATD_INSTALL_EXTRA
|
|
|
|
$(eval $(generic-package))
|