summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-16 10:58:58 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-16 10:58:58 +0000
commit21f3e48d6cd9a0e3c09929dab77190ced4a664a2 (patch)
tree525e2ea69bb4832572e9007913816969324ec521 /package
parent5dce7d3005e1fe6c95cf67f096bf05e39651d226 (diff)
downloadbuildroot-novena-21f3e48d6cd9a0e3c09929dab77190ced4a664a2.tar.gz
buildroot-novena-21f3e48d6cd9a0e3c09929dab77190ced4a664a2.zip
Avoid rebuild of openntpd
Diffstat (limited to 'package')
-rw-r--r--package/openntpd/openntpd.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/openntpd/openntpd.mk b/package/openntpd/openntpd.mk
index 2bcbf949f..54e3e977f 100644
--- a/package/openntpd/openntpd.mk
+++ b/package/openntpd/openntpd.mk
@@ -9,7 +9,7 @@ OPENNTPD_SITE:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD
OPENNTPD_DIR:=$(BUILD_DIR)/openntpd-$(OPENNTPD_VERSION)
OPENNTPD_CAT:=$(ZCAT)
OPENNTPD_BINARY:=ntpd
-OPENNTPD_TARGET_BINARY:=usr/sbin/foo
+OPENNTPD_TARGET_BINARY:=usr/sbin/ntpd
$(DL_DIR)/$(OPENNTPD_SOURCE):
$(WGET) -P $(DL_DIR) $(OPENNTPD_SITE)/$(OPENNTPD_SOURCE)
@@ -48,9 +48,10 @@ $(OPENNTPD_DIR)/$(OPENNTPD_BINARY): $(OPENNTPD_DIR)/.configured
$(STRIP) -s $@
$(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY): $(OPENNTPD_DIR)/$(OPENNTPD_BINARY)
+ rm -f $(TARGET_DIR)/etc/ntpd.conf
$(MAKE) DESTDIR=$(TARGET_DIR) STRIP_OPT="" -C $(OPENNTPD_DIR) install
- -$(STRIP) $(TARGET_DIR)/usr/sbin/ntpd
- cp $(OPENNTPD_DIR)/ntpd.conf $(TARGET_DIR)/etc
+ -$(STRIP) $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY)
+ cp -af $(OPENNTPD_DIR)/ntpd.conf $(TARGET_DIR)/etc/ntpd.conf
rm -Rf $(TARGET_DIR)/usr/man
ntpd: uclibc $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY)