aboutsummaryrefslogtreecommitdiffstats
path: root/package/netkitbase
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 04:01:07 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 04:01:07 +0000
commit9e9d2b282b3fadf291de6038d454bac638bfc47d (patch)
treec9fc64f6c9fc5d7be0fdf2c04dffe401f4e1f4b2 /package/netkitbase
parent771a17e52dd0146cd0e1af376e0e25e4eb054fa7 (diff)
downloadbuildroot-novena-9e9d2b282b3fadf291de6038d454bac638bfc47d.tar.gz
buildroot-novena-9e9d2b282b3fadf291de6038d454bac638bfc47d.zip
Install the default configuration file if the platform did not already define one.
Diffstat (limited to 'package/netkitbase')
-rw-r--r--package/netkitbase/netkitbase.mk12
1 files changed, 5 insertions, 7 deletions
diff --git a/package/netkitbase/netkitbase.mk b/package/netkitbase/netkitbase.mk
index aac6523e3..ac30c58e5 100644
--- a/package/netkitbase/netkitbase.mk
+++ b/package/netkitbase/netkitbase.mk
@@ -38,13 +38,11 @@ $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY): $(NETKITBASE_DIR)/$(NETKITBASE_BINARY
# Only install a few selected items...
mkdir -p $(TARGET_DIR)/usr/sbin
cp $(NETKITBASE_DIR)/$(NETKITBASE_BINARY) $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
- #rm -f $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
- mkdir -p $(TARGET_DIR)/etc
- cp $(NETKITBASE_DIR)/etc.sample/inetd.conf $(TARGET_DIR)/etc/
- $(SED) "s/^\([a-z]\)/#\1/;" $(TARGET_DIR)/etc/inetd.conf
- #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITBASE_DIR) install
- #rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
- # $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
+ @if [ ! -f $(TARGET_DIR)/etc/inetd.conf ] ; then \
+ mkdir -p $(TARGET_DIR)/etc; \
+ cp $(NETKITBASE_DIR)/etc.sample/inetd.conf $(TARGET_DIR)/etc/; \
+ $(SED) "s/^\([a-z]\)/#\1/;" $(TARGET_DIR)/etc/inetd.conf; \
+ fi;
touch -c $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
netkitbase: uclibc $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)