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.

67 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2022 Oskari Rauta <oskari.rauta@gmail.com>
  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. BASE_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-05-13
  14. PKG_SOURCE_VERSION:=d6570bdec8435dfc781b95f6b404dedf965294dd
  15. PKG_MIRROR_HASH:=3f058b7bf0c1b941f0039a7951ffa053f6f0ecf89abdc3d6cbceb4824d52b0de
  16. PKG_VERSION:=$(BASE_VERSION)-$(PKG_SOURCE_DATE)-$(call version_abbrev,$(PKG_SOURCE_VERSION))
  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. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/nsutils
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Linux namespace utilities
  26. DEPENDS:=+libcap
  27. URL:=https://github.com/rd235/nsutils
  28. endef
  29. define Package/nsutils/description
  30. Nsutils suite includes a number of utilities to list, add/remove tag, and join namespaces.
  31. endef
  32. define Package/nsutils/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/{netnsjoin,nshold,nslist,nsrelease} $(1)/usr/bin/
  35. $(LN) cgroupnshold $(1)/usr/bin/cgroupnshold
  36. $(LN) nslist $(1)/usr/bin/cgroupnslist
  37. $(LN) nsrelease $(1)/usr/bin/cgroupnsrelease
  38. $(LN) nshold $(1)/usr/bin/ipcnshold
  39. $(LN) nslist $(1)/usr/bin/ipcnslist
  40. $(LN) nsrelease $(1)/usr/bin/ipcnsrelease
  41. $(LN) nshold $(1)/usr/bin/mntnshold
  42. $(LN) nslist $(1)/usr/bin/mntnslist
  43. $(LN) nsrelease $(1)/usr/bin/mntnsrelease
  44. $(LN) nshold $(1)/usr/bin/netnshold
  45. $(LN) nslist $(1)/usr/bin/netnslist
  46. $(LN) nsrelease $(1)/usr/bin/netnsrelease
  47. $(LN) nshold $(1)/usr/bin/pidnshold
  48. $(LN) nslist $(1)/usr/bin/pidnslist
  49. $(LN) nsrelease $(1)/usr/bin/pidnsrelease
  50. $(LN) nshold $(1)/usr/bin/usernshold
  51. $(LN) nslist $(1)/usr/bin/usernslist
  52. $(LN) nsrelease $(1)/usr/bin/usernsrelease
  53. $(LN) nshold $(1)/usr/bin/utsnshold
  54. $(LN) nslist $(1)/usr/bin/utsnslist
  55. $(LN) nsrelease $(1)/usr/bin/utsnsrelease
  56. endef
  57. $(eval $(call BuildPackage,nsutils))