1 #############################################################
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
10 NETKITBASE_BINARY
:=inetd
/inetd
11 NETKITBASE_TARGET_BINARY
:=usr
/sbin
/inetd
13 $(DL_DIR
)/$(NETKITBASE_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(NETKITBASE_SITE
)/$(NETKITBASE_SOURCE
)
16 netkitbase-source
: $(DL_DIR
)/$(NETKITBASE_SOURCE
)
18 $(NETKITBASE_DIR
)/.unpacked
: $(DL_DIR
)/$(NETKITBASE_SOURCE
)
19 $(NETKITBASE_CAT
) $(DL_DIR
)/$(NETKITBASE_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
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
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
) \
30 touch
$(NETKITBASE_DIR
)/.configured
32 $(NETKITBASE_DIR
)/$(NETKITBASE_BINARY
): $(NETKITBASE_DIR
)/.configured
33 $(MAKE
) CC
=$(TARGET_CC
) -C
$(NETKITBASE_DIR
)
34 $(STRIP
) $(NETKITBASE_DIR
)/$(NETKITBASE_BINARY
)
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
47 netkitbase
: uclibc
$(TARGET_DIR
)/$(NETKITBASE_TARGET_BINARY
)
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
56 rm -rf
$(NETKITBASE_DIR
)
This page took 0.041624 seconds and 5 git commands to generate.