inadyn: bump to version 1.99.11

Update initscript for the /usr/sbin -> /usr/bin change which is the
default installation directory now that it's using autotools infra.
Also add hash file.
Make the initscript use tabs instead of spaces.
Make the config file installation conditional.
Now with optional gnutls support for HTTPS.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Gustavo Zacarias 2014-10-16 14:06:05 -03:00 committed by Peter Korsgaard
parent e41b89a40f
commit fe0261aac1
3 changed files with 32 additions and 31 deletions

View File

@ -14,12 +14,14 @@ VR_INADYN=/var/run/inadyn
case "$1" in case "$1" in
start) start)
echo "Starting inadyn." echo "Starting inadyn: "
start-stop-daemon -S -x /usr/sbin/inadyn start-stop-daemon -S -x /usr/bin/inadyn
[ $? == 0 ] && echo "OK" || echo "FAIL"
;; ;;
stop) stop)
echo "Stopping inadyn." echo "Stopping inadyn: "
start-stop-daemon -q -K -x /usr/sbin/inadyn start-stop-daemon -q -K -x /usr/bin/inadyn
[ $? == 0 ] && echo "OK" || echo "FAIL"
rm -f /var/run/inadyn/inadyn.pid rm -f /var/run/inadyn/inadyn.pid
;; ;;
restart) restart)
@ -32,4 +34,3 @@ case "$1" in
esac esac
exit $? exit $?

View File

@ -0,0 +1,2 @@
# Locally calculated
sha256 7e2bfc5df32848abd814548c87bf1d2731ffcf34ad180d8204d94239cb7ad590 inadyn-1.99.11.tar.gz

View File

@ -4,33 +4,31 @@
# #
################################################################################ ################################################################################
INADYN_VERSION = 1.99.9 INADYN_VERSION = 1.99.11
INADYN_SITE = $(call github,troglobit,inadyn,$(INADYN_VERSION)) INADYN_SITE = $(call github,troglobit,inadyn,$(INADYN_VERSION))
INADYN_LICENSE = GPLv2+ INADYN_LICENSE = GPLv2+
INADYN_LICENSE_FILES = COPYING LICENSE INADYN_LICENSE_FILES = COPYING LICENSE
ifeq ($(BR2_PACKAGE_OPENSSL),y) ifeq ($(BR2_PACKAGE_OPENSSL),y)
INADYN_CONF_OPTS += --enable-openssl
INADYN_DEPENDENCIES += openssl INADYN_DEPENDENCIES += openssl
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
INADYN_DEPENDENCIES += gnutls
else else
define INADYN_DISABLE_OPENSSL INADYN_CONF_OPTS += --disable-ssl
$(SED) '/ssl/Id' $(@D)/config.mk
endef
endif endif
INADYN_POST_PATCH_HOOKS += INADYN_DISABLE_OPENSSL
define INADYN_BUILD_CMDS define INADYN_INSTALL_SAMPLE_CONFIG
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) @if [ ! -f $(TARGET_DIR)/etc/inadyn.conf ]; then \
endef
define INADYN_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/src/inadyn $(TARGET_DIR)/usr/sbin/inadyn
$(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \ $(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \
$(TARGET_DIR)/etc/inadyn.conf $(TARGET_DIR)/etc/inadyn.conf; \
fi
endef endef
INADYN_POST_INSTALL_TARGET_HOOKS += INADYN_INSTALL_SAMPLE_CONFIG
define INADYN_INSTALL_INIT_SYSV define INADYN_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/inadyn/S70inadyn \ $(INSTALL) -D -m 0755 package/inadyn/S70inadyn \
$(TARGET_DIR)/etc/init.d/S70inadyn $(TARGET_DIR)/etc/init.d/S70inadyn
endef endef
$(eval $(generic-package)) $(eval $(autotools-package))