2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-19 08:37:34 +02:00
|
|
|
#
|
|
|
|
# inadyn
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-19 08:37:34 +02:00
|
|
|
|
2016-10-17 22:14:30 +02:00
|
|
|
INADYN_VERSION = v2.0
|
|
|
|
INADYN_SITE = $(call github,troglobit,inadyn,$(INADYN_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
INADYN_LICENSE = GPL-2.0+
|
2014-10-23 15:31:18 +02:00
|
|
|
INADYN_LICENSE_FILES = COPYING
|
2016-10-17 22:14:30 +02:00
|
|
|
INADYN_AUTORECONF = YES
|
|
|
|
INADYN_DEPENDENCIES = host-pkgconf libconfuse libite
|
|
|
|
|
|
|
|
# Needed for autoreconf to work properly, see ./autogen.sh
|
|
|
|
define INADYN_FIXUP_M4_DIR
|
|
|
|
mkdir $(@D)/m4
|
|
|
|
endef
|
|
|
|
INADYN_POST_EXTRACT_HOOKS += INADYN_FIXUP_M4_DIR
|
2012-06-19 08:37:34 +02:00
|
|
|
|
2014-05-21 19:14:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2014-10-16 19:06:05 +02:00
|
|
|
INADYN_CONF_OPTS += --enable-openssl
|
2014-05-21 19:14:12 +02:00
|
|
|
INADYN_DEPENDENCIES += openssl
|
2014-10-16 19:06:05 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
INADYN_DEPENDENCIES += gnutls
|
2014-05-21 19:14:12 +02:00
|
|
|
else
|
2014-10-16 19:06:05 +02:00
|
|
|
INADYN_CONF_OPTS += --disable-ssl
|
2014-05-21 19:14:12 +02:00
|
|
|
endif
|
2012-06-19 08:37:34 +02:00
|
|
|
|
2014-10-16 19:06:05 +02:00
|
|
|
define INADYN_INSTALL_SAMPLE_CONFIG
|
2014-11-30 15:19:00 +01:00
|
|
|
$(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \
|
|
|
|
$(TARGET_DIR)/etc/inadyn.conf
|
2014-05-20 11:59:51 +02:00
|
|
|
endef
|
2014-10-16 19:06:05 +02:00
|
|
|
INADYN_POST_INSTALL_TARGET_HOOKS += INADYN_INSTALL_SAMPLE_CONFIG
|
2014-05-20 11:59:51 +02:00
|
|
|
|
|
|
|
define INADYN_INSTALL_INIT_SYSV
|
2012-06-19 08:37:34 +02:00
|
|
|
$(INSTALL) -D -m 0755 package/inadyn/S70inadyn \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S70inadyn
|
|
|
|
endef
|
|
|
|
|
2015-05-23 12:03:45 +02:00
|
|
|
define INADYN_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/inadyn/inadyn.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/inadyn.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
2015-07-13 21:06:30 +02:00
|
|
|
ln -sf ../../../../usr/lib/systemd/system/inadyn.service \
|
2015-05-23 12:03:45 +02:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/inadyn.service
|
|
|
|
endef
|
|
|
|
|
2014-10-16 19:06:05 +02:00
|
|
|
$(eval $(autotools-package))
|