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.

53 lines
1.4 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_HASH:=02c820d39f3e6e729d1bea3287a2d8a6c684f1006fb9612f97dcad4a281d41de
  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. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  25. USERID:=rpc=65533:rpc=65533
  26. endef
  27. define Package/portmap/description
  28. Portmap is a server that converts RPC (Remote Procedure Call) program
  29. numbers into DARPA protocol port numbers.
  30. endef
  31. MAKE_FLAGS += \
  32. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
  33. RPCUSER="rpc" \
  34. LDLIBS="$(TARGET_LDFLAGS) -lwrap $(LIBRPC)" \
  35. all
  36. define Package/portmap/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/portmap $(1)/usr/sbin/
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) ./files/portmap.init $(1)/etc/init.d/portmap
  41. endef
  42. $(eval $(call BuildPackage,portmap))