Changeset 8222


Ignore:
Timestamp:
2007-07-30T10:34:04+02:00 (11 years ago)
Author:
olli
Message:

ntpclient: fix and cleanup

Location:
packages/net/ntpclient
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • packages/net/ntpclient/Makefile

    r7765 r8222  
    1111PKG_NAME:=ntpclient 
    1212PKG_VERSION:=2003_194 
    13 PKG_RELEASE:=3 
     13PKG_RELEASE:=4 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz 
    1616PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/ 
    1717PKG_MD5SUM:=94e84d5c6023c5e1f3890b28d0a08c92 
    18 PKG_CAT:=zcat 
    1918 
    2019PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
     
    3130endef 
    3231 
    33 define Build/Compile 
    34         $(call Build/Compile/Default,all adjtimex) 
    35 endef 
     32MAKE_FLAGS += \ 
     33        all adjtimex 
    3634 
    3735define Package/ntpclient/install         
    3836        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 
    39         $(INSTALL_BIN) ./files/ntpclient.init $(1)/etc/hotplug.d/iface/20-ntpclient 
     37        $(INSTALL_DATA) ./files/ntpclient.hotplug $(1)/etc/hotplug.d/iface/20-ntpclient 
    4038        $(INSTALL_DIR) $(1)/etc/config 
    41         $(INSTALL_DATA) ./files/ntpclient.config $(1)/etc/config/ntp_client 
     39        $(INSTALL_CONF) ./files/ntpclient.config $(1)/etc/config/ntpclient 
    4240        $(INSTALL_DIR) $(1)/usr/sbin 
    4341        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/ 
  • packages/net/ntpclient/files/ntpclient.config

    r6500 r8222  
    1 config ntp_client 
     1config ntpclient 
    22        option hostname 'pool.ntp.org' 
    33        option port     '123' 
    44        option count    '1' 
    55 
    6 config ntp_client 
     6config ntpclient 
    77        option hostname 'ntp.ubuntu.com' 
    88        option port     '123' 
  • packages/net/ntpclient/files/ntpclient.hotplug

    r8221 r8222  
    1111 
    1212        case "$cfgtype" in 
    13                 ntp_client) 
     13                ntpclient) 
    1414                        config_get hostname     $cfg hostname 
    1515                        config_get port         $cfg port 
     
    2727case "${ACTION:-ifup}" in 
    2828        ifup) 
    29                 config_load ntp_client& 
     29                config_load ntpclient& 
    3030        ;; 
    3131        ifdown) 
Note: See TracChangeset for help on using the changeset viewer.