2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# netkitbase
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
NETKITBASE_VERSION:=0.17
|
|
|
|
NETKITBASE_SOURCE:=netkit-base-$(NETKITBASE_VERSION).tar.gz
|
2003-01-18 22:27:22 +01:00
|
|
|
NETKITBASE_SITE:=ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
|
2007-07-11 16:06:06 +02:00
|
|
|
NETKITBASE_DIR:=$(BUILD_DIR)/netkit-base-$(NETKITBASE_VERSION)
|
2006-10-01 17:17:52 +02: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):
|
2012-03-16 14:42:53 +01:00
|
|
|
$(call DOWNLOAD,$(NETKITBASE_SITE)/$(NETKITBASE_SOURCE))
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
netkitbase-source: $(DL_DIR)/$(NETKITBASE_SOURCE)
|
|
|
|
|
|
|
|
$(NETKITBASE_DIR)/.unpacked: $(DL_DIR)/$(NETKITBASE_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(NETKITBASE_CAT) $(DL_DIR)/$(NETKITBASE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-01-18 22:27:22 +01:00
|
|
|
# use ANSI syntax
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s/main()/main(void)/;" $(NETKITBASE_DIR)/configure
|
2003-01-18 22:27:22 +01:00
|
|
|
# don't try to run cross compiled binaries while configuring things
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s~./__conftest~#./__conftest~;" $(NETKITBASE_DIR)/configure
|
2011-08-31 23:35:04 +02:00
|
|
|
support/scripts/apply-patches.sh $(NETKITBASE_DIR) package/netkitbase/ netkitbase\*.patch
|
2003-01-18 22:27:22 +01:00
|
|
|
touch $(NETKITBASE_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(NETKITBASE_DIR)/.configured: $(NETKITBASE_DIR)/.unpacked
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(NETKITBASE_DIR); rm -f config.cache; \
|
2010-07-06 09:27:32 +02:00
|
|
|
PATH=$(TARGET_PATH) CC="$(TARGET_CC)" \
|
|
|
|
./configure --installroot=$(TARGET_DIR) --with-c-compiler="$(TARGET_CC)" \
|
2003-01-19 01:09:44 +01:00
|
|
|
)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(NETKITBASE_DIR)/.configured
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
$(NETKITBASE_DIR)/$(NETKITBASE_BINARY): $(NETKITBASE_DIR)/.configured
|
2010-07-06 09:27:32 +02:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(NETKITBASE_DIR)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(NETKITBASE_DIR)/$(NETKITBASE_BINARY)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
$(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)
|
2007-08-22 11:56:41 +02:00
|
|
|
@if [ ! -f $(TARGET_DIR)/etc/inetd.conf ]; then \
|
2007-05-07 06:01:07 +02:00
|
|
|
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; \
|
2007-08-21 21:20:18 +02:00
|
|
|
fi
|
2006-07-09 02:39:39 +02:00
|
|
|
touch -c $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
netkitbase: $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
netkitbase-clean:
|
2010-07-06 09:27:32 +02: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)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NETKITBASE),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=netkitbase
|
|
|
|
endif
|