Ignore:
Timestamp:
2011-10-28T01:41:44+02:00 (5 years ago)
Author:
jow
Message:

[backfire/packages] openntpd: merge r28620, r28621

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

Legend:

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

    r26717 r28642  
    1010PKG_NAME:=openntpd 
    1111PKG_VERSION:=3.9p1 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=5 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    5151 
    5252define Package/openntpd/install  
    53         $(INSTALL_DIR) $(1)/usr/sbin/ 
    54         $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd $(1)/usr/sbin/ 
     53        $(INSTALL_DIR) $(1)/sbin/ 
     54        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd $(1)/sbin/ 
    5555        $(INSTALL_DIR) $(1)/etc 
    5656        $(INSTALL_DATA) ./files/ntpd.conf $(1)/etc/ 
     
    6161endef 
    6262 
     63define Package/openntpd/postinst 
     64#!/bin/sh 
     65[ -L "$${IPKG_INSTROOT}/usr/sbin/ntpd" ] && rm -f "$${IPKG_INSTROOT}/usr/sbin/ntpd" 
     66exit 0 
     67endef 
     68 
     69define Package/openntpd/postrm 
     70#!/bin/sh 
     71/bin/busybox ntpd -h 2>&1 | grep -q BusyBox && ln -sf ../../bin/busybox /usr/sbin/ntpd 
     72exit 0 
     73endef 
     74 
    6375$(eval $(call BuildPackage,openntpd)) 
  • branches/packages_10.03.1/net/openntpd/files/ntpd.init

    r26717 r28642  
    1111        mkdir -p `awk -F: '/^network:/{print $6}' /etc/passwd` 
    1212        mkdir -p /var/db/ 
    13         /usr/sbin/ntpd -s 
     13        /sbin/ntpd -s 
    1414} 
    1515 
Note: See TracChangeset for help on using the changeset viewer.