You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=portmap
  9. PKG_VERSION:=6.0
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=http://neil.brown.name/portmap/
  13. PKG_MD5SUM:=ac108ab68bf0f34477f8317791aaf1ff
  14. PKG_LICENSE:=BSD-4c
  15. PKG_LICENSE_FILES:=portmap.man
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/portmap
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libwrap $(LIBRPC_DEPENDS)
  22. TITLE:=The RPC Portmapper
  23. URL:=http://neil.brown.name/portmap/
  24. endef
  25. define Package/portmap/description
  26. Portmap is a server that converts RPC (Remote Procedure Call) program
  27. numbers into DARPA protocol port numbers.
  28. endef
  29. MAKE_FLAGS += \
  30. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
  31. RPCUSER="rpc" \
  32. LDLIBS="$(TARGET_LDFLAGS) -lwrap $(LIBRPC)" \
  33. all
  34. define Package/portmap/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/portmap $(1)/usr/sbin/
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) ./files/portmap.init $(1)/etc/init.d/portmap
  39. endef
  40. $(eval $(call BuildPackage,portmap))