diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-11-11 14:25:10 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-11-11 14:25:10 +0000 |
commit | db13d321d6566c8937a7dbf872d4b4410a9d79ae (patch) | |
tree | bffd8ba57a597a2a93dcf1aa37cf9e010c510c96 /package/portmap/portmap.mk | |
parent | b4176386f4c05fd95250ba151e9b26d568b9f878 (diff) | |
download | buildroot-novena-db13d321d6566c8937a7dbf872d4b4410a9d79ae.tar.gz buildroot-novena-db13d321d6566c8937a7dbf872d4b4410a9d79ae.zip |
portmap
Diffstat (limited to 'package/portmap/portmap.mk')
-rw-r--r-- | package/portmap/portmap.mk | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/portmap/portmap.mk b/package/portmap/portmap.mk new file mode 100644 index 000000000..6a2e7d56b --- /dev/null +++ b/package/portmap/portmap.mk @@ -0,0 +1,35 @@ +############################################################# +# +# portmap +# +############################################################# +PORTMAP_VER:=5b +PORTMAP_SOURCE:=portmap_$(PORTMAP_VER)eta.tar.gz +PORTMAP_SITE:=ftp://ftp.porcupine.org/pub/security/ +PORTMAP_DIR:=$(BUILD_DIR)/portmap_$(PORTMAP_VER)eta +PORTMAP_CAT:=zcat +PORTMAP_BINARY:=portmap +PORTMAP_TARGET_BINARY:=sbin/portmap + +$(DL_DIR)/$(PORTMAP_SOURCE): + $(WGET) -P $(DL_DIR) $(PORTMAP_SITE)/$(PORTMAP_SOURCE) + +$(PORTMAP_DIR)/.unpacked: $(DL_DIR)/$(PORTMAP_SOURCE) + $(PORTMAP_CAT) $(DL_DIR)/$(PORTMAP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(PORTMAP_DIR) package/portmap/ portmap*.patch + 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) + install -D $(PORTMAP_DIR)/$(PORTMAP_BINARY) $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY) + +portmap: uclibc $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY) + +portmap-clean: + rm -f $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY) + -$(MAKE) -C $(PORTMAP_DIR) clean + +portmap-dirclean: + rm -rf $(PORTMAP_DIR) |