From: Jo-Philipp Wich Date: Sun, 5 Feb 2012 15:18:02 +0000 (+0000) Subject: [packages_10.03.2] iodine: merge r29059, r29199 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b0184020ffc5eefb7e5d2ac8b9e98365c776f770;p=openwrt%2Fsvn-archive%2Farchive.git [packages_10.03.2] iodine: merge r29059, r29199 SVN-Revision: 30209 --- diff --git a/net/iodine/Makefile b/net/iodine/Makefile index 05e4743578..03535b8ad6 100644 --- a/net/iodine/Makefile +++ b/net/iodine/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=iodine PKG_VERSION:=0.6.0-rc1 -PKG_RELEASE:=3 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://code.kryo.se/iodine/ @@ -61,5 +61,9 @@ define Package/iodined/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodined $(1)/usr/sbin endef +define Package/iodined/conffiles +/etc/config/iodined +endef + $(eval $(call BuildPackage,iodine)) $(eval $(call BuildPackage,iodined)) diff --git a/net/iodine/files/iodined.init b/net/iodine/files/iodined.init index 1eac807661..d91b7793ef 100644 --- a/net/iodine/files/iodined.init +++ b/net/iodine/files/iodined.init @@ -1,22 +1,23 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org + START=50 -start_service () { +start_instance () { local section="$1" - config_get address "$section" address - config_get password "$section" password - config_get tunnelip "$section" tunnelip - config_get tld "$section" tld + config_get address "$section" 'address' + config_get password "$section" 'password' + config_get tunnelip "$section" 'tunnelip' + config_get tld "$section" 'tld' - iodined -l $address -P $password $tunnelip $tld + service_start /usr/sbin/iodined -l "$address" -P "$password" "$tunnelip" "$tld" } start() { - config_load "iodined" - config_foreach start_service iodined + config_load 'iodined' + config_foreach start_instance 'iodined' } stop() { - killall iodined + service_stop /usr/sbin/iodined }