2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2004-11-11 15:25:10 +01:00
|
|
|
#
|
|
|
|
# portmap
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2004-11-11 15:25:10 +01:00
|
|
|
|
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
|
2014-05-06 17:42:46 +02:00
|
|
|
PORTMAP_LICENSE = BSD-4c (portmap.c) SunRPC License (portmap.c from_local.c)
|
|
|
|
PORTMAP_LICENSE_FILES = portmap.c from_local.c
|
2010-11-02 20:30:43 +01:00
|
|
|
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
|
2014-09-08 23:43:45 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(PORTMAP_FLAGS)
|
2010-11-02 20:30:43 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PORTMAP_INSTALL_TARGET_CMDS
|
|
|
|
for sbin in $(PORTMAP_SBINS); do \
|
2014-11-30 15:17:57 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/$$sbin $(TARGET_DIR)/sbin/$$sbin || exit 1; \
|
2010-11-02 20:30:43 +01:00
|
|
|
done
|
2014-11-30 15:17:55 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PORTMAP_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/portmap/S13portmap $(TARGET_DIR)/etc/init.d/S13portmap
|
2010-11-02 20:30:43 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|