remove ^M chars from asus parport driver
[openwrt.git] / obsolete-buildroot / make / netkitbase.mk
1 #############################################################
2 #
3 # netkitbase
4 #
5 #############################################################
6 NETKITBASE_SOURCE:=netkit-base-0.17.tar.gz
7 NETKITBASE_SITE:=ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
8 NETKITBASE_DIR:=$(BUILD_DIR)/netkit-base-0.17
9 NETKITBASE_CAT:=zcat
10 NETKITBASE_BINARY:=inetd/inetd
11 NETKITBASE_TARGET_BINARY:=usr/sbin/inetd
12
13 $(DL_DIR)/$(NETKITBASE_SOURCE):
14 $(WGET) -P $(DL_DIR) $(NETKITBASE_SITE)/$(NETKITBASE_SOURCE)
15
16 netkitbase-source: $(DL_DIR)/$(NETKITBASE_SOURCE)
17
18 $(NETKITBASE_DIR)/.unpacked: $(DL_DIR)/$(NETKITBASE_SOURCE)
19 $(NETKITBASE_CAT) $(DL_DIR)/$(NETKITBASE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 # use ANSI syntax
21 $(SED) "s/main()/main(void)/;" $(NETKITBASE_DIR)/configure
22 # don't try to run cross compiled binaries while configuring things
23 $(SED) "s~./__conftest~#./__conftest~;" $(NETKITBASE_DIR)/configure
24 touch $(NETKITBASE_DIR)/.unpacked
25
26 $(NETKITBASE_DIR)/.configured: $(NETKITBASE_DIR)/.unpacked
27 (cd $(NETKITBASE_DIR); PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
28 ./configure --installroot=$(TARGET_DIR) --with-c-compiler=$(TARGET_CC) \
29 )
30 touch $(NETKITBASE_DIR)/.configured
31
32 $(NETKITBASE_DIR)/$(NETKITBASE_BINARY): $(NETKITBASE_DIR)/.configured
33 $(MAKE) CC=$(TARGET_CC) -C $(NETKITBASE_DIR)
34 $(STRIP) $(NETKITBASE_DIR)/$(NETKITBASE_BINARY)
35
36 $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY): $(NETKITBASE_DIR)/$(NETKITBASE_BINARY)
37 # Only install a few selected items...
38 mkdir -p $(TARGET_DIR)/usr/sbin
39 cp $(NETKITBASE_DIR)/$(NETKITBASE_BINARY) $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
40 mkdir -p $(TARGET_DIR)/etc
41 cp $(NETKITBASE_DIR)/etc.sample/inetd.conf $(TARGET_DIR)/etc/
42 $(SED) "s/^\([a-z]\)/#\1/;" $(TARGET_DIR)/etc/inetd.conf
43 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITBASE_DIR) install
44 #rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
45 # $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
46
47 netkitbase: uclibc $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
48
49 netkitbase-clean:
50 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITBASE_DIR) uninstall
51 -rm -f $(TARGET_DIR)/usr/sbin/inetd $(TARGET_DIR)/etc/inetd.conf
52 -rm -f $(TARGET_DIR)/etc/inetd.conf
53 -$(MAKE) -C $(NETKITBASE_DIR) clean
54
55 netkitbase-dirclean:
56 rm -rf $(NETKITBASE_DIR)
57
This page took 0.041624 seconds and 5 git commands to generate.