2004-11-11 15:25:10 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# portmap
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
PORTMAP_VERSION:=5b
|
|
|
|
PORTMAP_SOURCE:=portmap_$(PORTMAP_VERSION)eta.tar.gz
|
2004-11-11 15:25:10 +01:00
|
|
|
PORTMAP_SITE:=ftp://ftp.porcupine.org/pub/security/
|
2007-07-11 16:06:06 +02:00
|
|
|
PORTMAP_DIR:=$(BUILD_DIR)/portmap_$(PORTMAP_VERSION)eta
|
2006-10-01 17:17:52 +02:00
|
|
|
PORTMAP_CAT:=$(ZCAT)
|
2004-11-11 15:25:10 +01:00
|
|
|
PORTMAP_BINARY:=portmap
|
|
|
|
PORTMAP_TARGET_BINARY:=sbin/portmap
|
|
|
|
|
|
|
|
$(DL_DIR)/$(PORTMAP_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(PORTMAP_SITE)/$(PORTMAP_SOURCE)
|
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
portmap-source: $(DL_DIR)/$(PORTMAP_SOURCE)
|
|
|
|
|
2004-11-11 15:25:10 +01:00
|
|
|
$(PORTMAP_DIR)/.unpacked: $(DL_DIR)/$(PORTMAP_SOURCE)
|
|
|
|
$(PORTMAP_CAT) $(DL_DIR)/$(PORTMAP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(PORTMAP_DIR) package/portmap/ portmap\*.patch
|
2004-11-11 15:25:10 +01:00
|
|
|
touch $(PORTMAP_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(PORTMAP_DIR)/$(PORTMAP_BINARY): $(PORTMAP_DIR)/.unpacked
|
|
|
|
$(MAKE) CC=$(TARGET_CC) O="$(TARGET_CFLAGS)" -C $(PORTMAP_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(PORTMAP_TARGET_BINARY): $(PORTMAP_DIR)/$(PORTMAP_BINARY)
|
2007-01-14 01:55:25 +01:00
|
|
|
$(INSTALL) -D $(PORTMAP_DIR)/$(PORTMAP_BINARY) $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
|
2007-06-16 19:54:38 +02:00
|
|
|
$(INSTALL) -m 0755 package/portmap/S13portmap $(TARGET_DIR)/etc/init.d
|
2004-11-11 15:25:10 +01:00
|
|
|
|
|
|
|
portmap: uclibc $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
|
|
|
|
|
|
|
|
portmap-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
|
2007-01-14 01:55:25 +01:00
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S13portmap
|
2004-11-11 15:25:10 +01:00
|
|
|
-$(MAKE) -C $(PORTMAP_DIR) clean
|
|
|
|
|
|
|
|
portmap-dirclean:
|
|
|
|
rm -rf $(PORTMAP_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_PORTMAP)),y)
|
|
|
|
TARGETS+=portmap
|
|
|
|
endif
|