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-05-21 19:14:12 +02:00
|
|
|
INADYN_VERSION = 1.99.9
|
2013-12-26 13:16:35 +01:00
|
|
|
INADYN_SITE = $(call github,troglobit,inadyn,$(INADYN_VERSION))
|
2013-07-10 19:25:50 +02:00
|
|
|
INADYN_LICENSE = GPLv2+
|
|
|
|
INADYN_LICENSE_FILES = COPYING LICENSE
|
2012-06-19 08:37:34 +02:00
|
|
|
|
2014-05-21 19:14:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
INADYN_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
define INADYN_DISABLE_OPENSSL
|
|
|
|
$(SED) '/ssl/Id' $(@D)/config.mk
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
INADYN_POST_PATCH_HOOKS += INADYN_DISABLE_OPENSSL
|
|
|
|
|
2012-06-19 08:37:34 +02:00
|
|
|
define INADYN_BUILD_CMDS
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define INADYN_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/inadyn $(TARGET_DIR)/usr/sbin/inadyn
|
2013-12-26 13:16:35 +01:00
|
|
|
$(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \
|
2012-06-19 08:37:34 +02:00
|
|
|
$(TARGET_DIR)/etc/inadyn.conf
|
2014-05-20 11:59:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|