2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# netkitbase
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
NETKITBASE_SOURCE:=netkit-base-0.17.tar.gz
|
|
|
|
NETKITBASE_SITE:=ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
|
|
|
|
NETKITBASE_DIR:=$(BUILD_DIR)/netkit-base-0.17
|
2003-01-19 01:09:44 +01:00
|
|
|
NETKITBASE_CAT:=zcat
|
2003-01-18 22:27:22 +01:00
|
|
|
NETKITBASE_BINARY:=inetd/inetd
|
|
|
|
NETKITBASE_TARGET_BINARY:=usr/sbin/inetd
|
|
|
|
|
|
|
|
$(DL_DIR)/$(NETKITBASE_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(NETKITBASE_SITE)/$(NETKITBASE_SOURCE)
|
|
|
|
|
|
|
|
netkitbase-source: $(DL_DIR)/$(NETKITBASE_SOURCE)
|
|
|
|
|
|
|
|
$(NETKITBASE_DIR)/.unpacked: $(DL_DIR)/$(NETKITBASE_SOURCE)
|
|
|
|
$(NETKITBASE_CAT) $(DL_DIR)/$(NETKITBASE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
|
|
|
# use ANSI syntax
|
|
|
|
perl -i -p -e "s/main\(\)/main(void)/;" $(NETKITBASE_DIR)/configure
|
|
|
|
# don't try to run cross compiled binaries while configuring things
|
|
|
|
perl -i -p -e "s~./__conftest~#./__conftest~;" $(NETKITBASE_DIR)/configure
|
|
|
|
touch $(NETKITBASE_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(NETKITBASE_DIR)/.configured: $(NETKITBASE_DIR)/.unpacked
|
2003-02-12 09:10:40 +01:00
|
|
|
(cd $(NETKITBASE_DIR); PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
|
2003-01-19 01:09:44 +01:00
|
|
|
./configure --installroot=$(TARGET_DIR) --with-c-compiler=$(TARGET_CC) \
|
|
|
|
)
|
2003-01-18 22:27:22 +01:00
|
|
|
touch $(NETKITBASE_DIR)/.configured
|
|
|
|
|
|
|
|
$(NETKITBASE_DIR)/$(NETKITBASE_BINARY): $(NETKITBASE_DIR)/.configured
|
2003-01-19 07:07:22 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(NETKITBASE_DIR)
|
2003-01-18 22:27:22 +01:00
|
|
|
$(STRIP) $(NETKITBASE_DIR)/$(NETKITBASE_BINARY)
|
|
|
|
|
|
|
|
$(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)
|
|
|
|
mkdir -p $(TARGET_DIR)/etc
|
|
|
|
cp $(NETKITBASE_DIR)/etc.sample/inetd.conf $(TARGET_DIR)/etc/
|
|
|
|
perl -i -p -e "s/^([a-z])/#\1/;" $(TARGET_DIR)/etc/inetd.conf
|
2003-01-19 07:07:22 +01:00
|
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITBASE_DIR) install
|
2003-01-19 02:14:11 +01:00
|
|
|
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
|
|
|
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2003-01-19 02:14:11 +01:00
|
|
|
netkitbase: uclibc $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
netkitbase-clean:
|
2003-01-19 07:07:22 +01:00
|
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITBASE_DIR) uninstall
|
2003-01-18 22:27:22 +01:00
|
|
|
-rm -f $(TARGET_DIR)/usr/sbin/inetd $(TARGET_DIR)/etc/inetd.conf
|
|
|
|
-rm -f $(TARGET_DIR)/etc/inetd.conf
|
|
|
|
-$(MAKE) -C $(NETKITBASE_DIR) clean
|
|
|
|
|
|
|
|
netkitbase-dirclean:
|
|
|
|
rm -rf $(NETKITBASE_DIR)
|
|
|
|
|