kumquat-buildroot/package/dante/dante.mk
Yann E. MORIN 83d1902812 package/dante: needs autoreconf
We have a patch that touches a .m4 file, so we need to regenerate the
configure script. Otherwise, this is done during the build step, and
some environment variables are thus missing and the build may fail when
the host machine does not have the expected autostuff tools.

Fixes:
    http://autobuild.buildroot.org/results/e37/e37e61bae1d81a7956e2843be70fea84b0bbb64b/
    http://autobuild.buildroot.org/results/f96/f969718402cae71446d6280ec1f66d357a155293/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-11-27 11:30:05 +01:00

35 lines
936 B
Makefile

################################################################################
#
# dante
#
################################################################################
DANTE_VERSION = 1.4.1
DANTE_SITE = http://www.inet.no/dante/files
DANTE_LICENSE = BSD-3-Clause
DANTE_LICENSE_FILES = LICENSE
# 0002-compiler.m4-do-not-remove-g-flag.patch touches a m4 file
DANTE_AUTORECONF = YES
DANTE_CONF_OPTS += --disable-client --disable-preload --without-pam
define DANTE_INSTALL_CONFIG_FILE
$(INSTALL) -D -m 644 $(@D)/example/sockd.conf \
$(TARGET_DIR)/etc/sockd.conf
endef
DANTE_POST_INSTALL_TARGET_HOOKS += DANTE_INSTALL_CONFIG_FILE
define DANTE_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/dante/dante.service \
$(TARGET_DIR)/usr/lib/systemd/system/dante.service
endef
define DANTE_INSTALL_INIT_SYSV
$(INSTALL) -D -m 755 package/dante/S50dante \
$(TARGET_DIR)/etc/init.d/S50dante
endef
$(eval $(autotools-package))