Changeset 28641


Ignore:
Timestamp:
2011-10-28T01:40:18+02:00 (6 years ago)
Author:
jow
Message:

[backfire/packages] ntpd: merge r28572

Location:
branches/packages_10.03.1/net/ntpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.1/net/ntpd/Makefile

    r27017 r28641  
    11# 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=ntp 
    1111PKG_VERSION:=4.2.6p3 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    118118 
    119119define Package/ntpd/install 
    120         $(INSTALL_DIR) $(1)/usr/sbin 
    121         $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd/ntpd $(1)/usr/sbin/ 
     120        $(INSTALL_DIR) $(1)/sbin 
     121        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd/ntpd $(1)/sbin/ 
    122122        $(INSTALL_DIR) $(1)/etc 
    123123        $(INSTALL_CONF) ./files/ntp.conf $(1)/etc/ 
     
    126126        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 
    127127        $(INSTALL_BIN) ./files/ntpd.hotplug $(1)/etc/hotplug.d/iface/20-ntpd 
     128endef 
     129 
     130define Package/ntpd/postinst 
     131#!/bin/sh 
     132[ -L "$${IPKG_INSTROOT}/usr/sbin/ntpd" ] && rm -f "$${IPKG_INSTROOT}/usr/sbin/ntpd" 
     133exit 0 
     134endef 
     135 
     136define Package/ntpd/postrm 
     137#!/bin/sh 
     138/bin/busybox ntpd -h 2>&1 | grep -q BusyBox && ln -sf ../../bin/busybox /usr/sbin/ntpd 
     139exit 0 
    128140endef 
    129141 
  • branches/packages_10.03.1/net/ntpd/files/ntpd.init

    r10920 r28641  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006-2008 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33 
    44START=65 
     
    1010#       /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf 
    1111        stop 
    12         /usr/sbin/ntpd -g -p $PIDFILE 
     12        /sbin/ntpd -g -p $PIDFILE 
    1313} 
    1414 
Note: See TracChangeset for help on using the changeset viewer.