2005-05-20 00:22:09 +03:00
|
|
|
# $Id$
|
|
|
|
|
2005-04-05 01:12:17 +03:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ntpclient
|
|
|
|
PKG_VERSION:=2003_194
|
2005-11-07 03:12:51 +02:00
|
|
|
PKG_RELEASE:=2
|
2005-04-05 01:12:17 +03:00
|
|
|
PKG_MD5SUM:=94e84d5c6023c5e1f3890b28d0a08c92
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=http://doolittle.faludi.com/ntpclient
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
2005-05-18 16:30:05 +03:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
$(eval $(call PKG_template,NTPCLIENT,ntpclient,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
|
2005-05-18 17:49:08 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
2005-05-20 03:54:55 +03:00
|
|
|
touch $@
|
2005-05-18 17:49:08 +03:00
|
|
|
|
2005-05-18 16:30:05 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-06-09 06:05:11 +03:00
|
|
|
CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" all adjtimex
|
2005-05-20 03:54:55 +03:00
|
|
|
touch $@
|
2005-05-18 16:30:05 +03:00
|
|
|
|
|
|
|
$(IPKG_NTPCLIENT):
|
2005-11-07 03:12:51 +02:00
|
|
|
install -d -m0755 $(IDIR_NTPCLIENT)/etc/hotplug.d/iface
|
|
|
|
install -m0755 ./files/ntpclient.init $(IDIR_NTPCLIENT)/etc/hotplug.d/iface/10-ntpclient
|
2005-05-18 16:30:05 +03:00
|
|
|
install -d -m0755 $(IDIR_NTPCLIENT)/usr/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/ntpclient $(IDIR_NTPCLIENT)/usr/sbin/
|
2006-06-09 06:05:11 +03:00
|
|
|
install -m0755 $(PKG_BUILD_DIR)/adjtimex $(IDIR_NTPCLIENT)/usr/sbin/
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/rate.awk $(IDIR_NTPCLIENT)/usr/sbin/
|
2005-05-18 16:30:05 +03:00
|
|
|
$(RSTRIP) $(IDIR_NTPCLIENT)
|
|
|
|
$(IPKG_BUILD) $(IDIR_NTPCLIENT) $(PACKAGE_DIR)
|
|
|
|
|