2004-11-11 15:25:10 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# portmap
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-11-02 20:30:43 +01:00
|
|
|
PORTMAP_VERSION = 6.0
|
|
|
|
PORTMAP_SOURCE = portmap-$(PORTMAP_VERSION).tgz
|
|
|
|
PORTMAP_SITE = http://neil.brown.name/portmap
|
|
|
|
PORTMAP_SBINS = portmap pmap_dump pmap_set
|
|
|
|
|
2011-01-11 19:00:17 +01:00
|
|
|
PORTMAP_FLAGS = NO_TCP_WRAPPER=1 NO_PIE=1 NO_PERROR=1
|
|
|
|
ifeq ($(BR2_USE_MMU),)
|
|
|
|
PORTMAP_FLAGS += NO_FORK=1
|
|
|
|
endif
|
|
|
|
|
2010-11-02 20:30:43 +01:00
|
|
|
define PORTMAP_BUILD_CMDS
|
2011-01-10 15:28:43 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2011-01-11 19:00:17 +01:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(@D) $(PORTMAP_FLAGS)
|
2010-11-02 20:30:43 +01:00
|
|
|
endef
|
|
|
|
|
2011-01-10 15:28:44 +01:00
|
|
|
define PORTMAP_CLEAN_CMDS
|
|
|
|
$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
|
|
|
|
2010-11-02 20:30:43 +01:00
|
|
|
define PORTMAP_INSTALL_TARGET_CMDS
|
|
|
|
for sbin in $(PORTMAP_SBINS); do \
|
|
|
|
$(INSTALL) -D $(@D)/$$sbin $(TARGET_DIR)/sbin/$$sbin; \
|
|
|
|
done
|
|
|
|
$(INSTALL) -D $(@D)/portmap.man \
|
|
|
|
$(TARGET_DIR)/usr/share/man/man8/portmap.8
|
|
|
|
$(INSTALL) -D $(@D)/pmap_dump.8 \
|
|
|
|
$(TARGET_DIR)/usr/share/man/man8/pmap_dump.8
|
|
|
|
$(INSTALL) -D $(@D)/pmap_set.8 \
|
|
|
|
$(TARGET_DIR)/usr/share/man/man8/pmap_set.8
|
2010-12-13 13:09:39 +01:00
|
|
|
$(INSTALL) -m 0755 package/portmap/S13portmap \
|
|
|
|
$(TARGET_DIR)/etc/init.d
|
2010-11-02 20:30:43 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PORTMAP_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/sbin/,$(PORTMAP_SBINS))
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/share/man/man8/, \
|
|
|
|
$(addsuffix .8,$(PORTMAP_SBINS)))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call GENTARGETS,package,portmap))
|