2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-01-18 22:27:22 +01:00
|
|
|
#
|
|
|
|
# netkitbase
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-09-21 14:28:33 +02:00
|
|
|
NETKITBASE_VERSION = 0.17
|
|
|
|
NETKITBASE_SOURCE = netkit-base-$(NETKITBASE_VERSION).tar.gz
|
|
|
|
NETKITBASE_SITE = ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
|
|
|
|
NETKITBASE_LICENSE = BSD-4c
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2012-09-21 14:28:33 +02:00
|
|
|
define NETKITBASE_CONFIGURE_CMDS
|
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
|
2012-09-21 14:28:33 +02:00
|
|
|
(cd $(@D); \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
./configure \
|
|
|
|
--installroot=$(TARGET_DIR))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define NETKITBASE_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define NETKITBASE_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/inetd/inetd $(TARGET_DIR)/usr/sbin/inetd
|
|
|
|
if [ ! -f $(TARGET_DIR)/etc/inetd.conf ]; then \
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/etc.sample/inetd.conf $(TARGET_DIR)/etc/inetd.conf; \
|
2007-05-07 06:01:07 +02:00
|
|
|
$(SED) "s/^\([a-z]\)/#\1/;" $(TARGET_DIR)/etc/inetd.conf; \
|
2007-08-21 21:20:18 +02:00
|
|
|
fi
|
2012-09-21 14:28:33 +02:00
|
|
|
endef
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2012-09-21 14:28:33 +02:00
|
|
|
$(eval $(generic-package))
|