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.

64 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
  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:=nsutils
  9. PKG_VERSION:=0.2
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/rd235/nsutils.git
  13. PKG_SOURCE_DATE:=2022-02-27
  14. PKG_SOURCE_VERSION:=d70867d11d455c19aece0c75791dae5c40b88ca6
  15. PKG_MIRROR_HASH:=94b33cde9240bad9803e2c796437d59c57405e3da95cdb762c9ba8fe041e9643
  16. PKG_FIXUP:=autoreconf
  17. PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
  18. PKG_LICENSE:=GPL-2.0-only
  19. PKG_LICENSE_FILES:=COPYING
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/nsutils
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Linux namespace utilities
  25. DEPENDS:=+libbsd +libcap
  26. endef
  27. define Package/nsutils/description
  28. Nsutils suite includes a number of utilities to list, add/remove tag, and join namespaces.
  29. endef
  30. define Package/nsutils/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/{netnsjoin,nshold,nslist,nsrelease} $(1)/usr/bin/
  33. $(LN) cgroupnshold $(1)/usr/bin/cgroupnshold
  34. $(LN) nslist $(1)/usr/bin/cgroupnslist
  35. $(LN) nsrelease $(1)/usr/bin/cgroupnsrelease
  36. $(LN) nshold $(1)/usr/bin/ipcnshold
  37. $(LN) nslist $(1)/usr/bin/ipcnslist
  38. $(LN) nsrelease $(1)/usr/bin/ipcnsrelease
  39. $(LN) nshold $(1)/usr/bin/mntnshold
  40. $(LN) nslist $(1)/usr/bin/mntnslist
  41. $(LN) nsrelease $(1)/usr/bin/mntnsrelease
  42. $(LN) nshold $(1)/usr/bin/netnshold
  43. $(LN) nslist $(1)/usr/bin/netnslist
  44. $(LN) nsrelease $(1)/usr/bin/netnsrelease
  45. $(LN) nshold $(1)/usr/bin/pidnshold
  46. $(LN) nslist $(1)/usr/bin/pidnslist
  47. $(LN) nsrelease $(1)/usr/bin/pidnsrelease
  48. $(LN) nshold $(1)/usr/bin/usernshold
  49. $(LN) nslist $(1)/usr/bin/usernslist
  50. $(LN) nsrelease $(1)/usr/bin/usernsrelease
  51. $(LN) nshold $(1)/usr/bin/utsnshold
  52. $(LN) nslist $(1)/usr/bin/utsnslist
  53. $(LN) nsrelease $(1)/usr/bin/utsnsrelease
  54. endef
  55. $(eval $(call BuildPackage,nsutils))