Use urandom for dropbear keying
[gumsense-br.git] / package / portmap / portmap.mk
blob1bef8a97e3c5c43321e3dcf7e6f678411be9acb4
1 #############################################################
3 # portmap
5 #############################################################
6 PORTMAP_VER:=5b
7 PORTMAP_SOURCE:=portmap_$(PORTMAP_VER)eta.tar.gz
8 PORTMAP_SITE:=ftp://ftp.porcupine.org/pub/security/
9 PORTMAP_DIR:=$(BUILD_DIR)/portmap_$(PORTMAP_VER)eta
10 PORTMAP_CAT:=zcat
11 PORTMAP_BINARY:=portmap
12 PORTMAP_TARGET_BINARY:=sbin/portmap
14 $(DL_DIR)/$(PORTMAP_SOURCE):
15 $(WGET) -P $(DL_DIR) $(PORTMAP_SITE)/$(PORTMAP_SOURCE)
17 $(PORTMAP_DIR)/.unpacked: $(DL_DIR)/$(PORTMAP_SOURCE)
18 $(PORTMAP_CAT) $(DL_DIR)/$(PORTMAP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
19 toolchain/patch-kernel.sh $(PORTMAP_DIR) package/portmap/ portmap\*.patch
20 touch $(PORTMAP_DIR)/.unpacked
22 $(PORTMAP_DIR)/$(PORTMAP_BINARY): $(PORTMAP_DIR)/.unpacked
23 $(MAKE) CC=$(TARGET_CC) O="$(TARGET_CFLAGS)" -C $(PORTMAP_DIR)
25 $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY): $(PORTMAP_DIR)/$(PORTMAP_BINARY)
26 install -D $(PORTMAP_DIR)/$(PORTMAP_BINARY) $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
28 portmap: uclibc $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
30 portmap-clean:
31 rm -f $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
32 -$(MAKE) -C $(PORTMAP_DIR) clean
34 portmap-dirclean:
35 rm -rf $(PORTMAP_DIR)
36 #############################################################
38 # Toplevel Makefile options
40 #############################################################
41 ifeq ($(strip $(BR2_PACKAGE_PORTMAP)),y)
42 TARGETS+=portmap
43 endif