Changeset 30224


Ignore:
Timestamp:
2012-02-05T16:31:29+01:00 (6 years ago)
Author:
jow
Message:

[packages_10.03.2] ndyndns: merge r29064

Location:
branches/packages_10.03.2/net/ndyndns
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.2/net/ndyndns/Makefile

    r26068 r30224  
     1# 
     2# Copyright (C) 2008-2011 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
    18include $(TOPDIR)/rules.mk 
    29 
    310PKG_NAME:=ndyndns 
    411PKG_VERSION:=2.1 
    5 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    613 
    714PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    3441define Package/ndyndns/conffiles 
    3542/etc/ndyndns/ndyndns.conf.sample 
    36 /etc/default/ndyndns 
    3743endef 
    3844 
    3945define Package/ndyndns/install 
    4046        $(INSTALL_DIR) $(1)/usr/sbin 
    41         $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndyndns $(1)/usr/sbin 
    42         $(INSTALL_DIR) $(1)/etc/default 
    43         $(INSTALL_BIN) files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME) 
     47        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndyndns $(1)/usr/sbin/ 
    4448        $(INSTALL_DIR) $(1)/etc/init.d/ 
    45         $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME) 
    46         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME) 
    47         $(INSTALL_CONF) files/$(PKG_NAME).conf.sample $(1)/etc/$(PKG_NAME) 
     49        $(INSTALL_BIN) files/ndyndns.init $(1)/etc/init.d/ndyndns 
     50        $(INSTALL_DIR) $(1)/etc/ndyndns 
     51        $(INSTALL_CONF) files/ndyndns.conf.sample $(1)/etc/ndyndns 
    4852endef 
    4953 
  • branches/packages_10.03.2/net/ndyndns/files/ndyndns.init

    r10615 r30224  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2007 OpenWrt.org 
     2# Copyright (C) 2007-2011 OpenWrt.org 
    33 
    44START=80 
    5 DEFAULT=/etc/default/ndyndns 
     5 
     6include /lib/network 
    67 
    78start() { 
    8         [ -f $DEFAULT ] && . $DEFAULT 
    9  
    10         . /etc/functions.sh 
    11         include /lib/network 
    129        scan_interfaces 
    13         /usr/sbin/ndyndns -c $CHROOT -f $CONFIG -i $(config_get wan ifname) $OPTIONS 
     10        config_get wan_if 'wan' 'ifname' 
     11        [ -n "$wan_if" ] || return 1 
     12        [ -f /etc/ndyndns/ndyndns.conf ] || { 
     13                echo "$0: missing config file '/etc/ndyndns/ndyndns.conf'" 1>&2 
     14                return 1 
     15        } 
     16        service_start /usr/sbin/ndyndns -c /etc/ndyndns -f /etc/ndyndns/ndyndns.conf -i $wan_if 
    1417} 
    1518 
    1619stop() { 
    17         killall ndyndns 
     20        service_stop /usr/sbin/ndyndns 
    1821} 
Note: See TracChangeset for help on using the changeset viewer.