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.

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