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
|
|
|
|
2014-10-23 15:31:18 +02:00
|
|
|
INADYN_VERSION = 1.99.12
|
|
|
|
INADYN_SITE = https://github.com/troglobit/inadyn/releases/download/$(INADYN_VERSION)
|
|
|
|
INADYN_SOURCE = inadyn-$(INADYN_VERSION).tar.xz
|
2013-07-10 19:25:50 +02:00
|
|
|
INADYN_LICENSE = GPLv2+
|
2014-10-23 15:31:18 +02:00
|
|
|
INADYN_LICENSE_FILES = COPYING
|
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))
|