1 #############################################################
5 #############################################################
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
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
)
31 rm -f
$(TARGET_DIR
)/$(PORTMAP_TARGET_BINARY
)
32 -$(MAKE
) -C
$(PORTMAP_DIR
) clean
36 #############################################################
38 # Toplevel Makefile options
40 #############################################################
41 ifeq ($(strip $(BR2_PACKAGE_PORTMAP
)),y
)