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.

98 lines
2.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=inotify-tools
  3. PKG_VERSION:=3.14
  4. PKG_HASH:=222bcca8893d7bf8a1ce207fb39ceead5233b5015623d099392e95197676c92f
  5. PKG_RELEASE:=1
  6. PKG_SOURCE_URL:=https://github.com/downloads/rvoicilas/inotify-tools/
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  9. PKG_LICENSE:=GPLv2
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_INSTALL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/inotify-tools/Default
  14. URL:=https://github.com/rvoicilas/inotify-tools/wiki
  15. endef
  16. define Package/libinotifytools
  17. $(call Package/inotify-tools/Default)
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE=libinotifytools
  21. endef
  22. define Package/inotifywait
  23. $(call Package/inotify-tools/Default)
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. DEPENDS:=+libinotifytools
  27. TITLE=inotifywait tool
  28. endef
  29. define Package/inotifywatch
  30. $(call Package/inotify-tools/Default)
  31. SECTION:=utils
  32. CATEGORY:=Utilities
  33. DEPENDS:=+libinotifytools
  34. TITLE=inotifywatch tool
  35. endef
  36. define Package/inotify-tools/description
  37. inotify-tools is a C library and a set of command-line programs for
  38. Linux providing a simple interface to inotify. These programs can be
  39. used to monitor and act upon filesystem events. A more detailed
  40. description of the programs is further down the page. The programs are
  41. written in C and have no dependencies other than a Linux kernel
  42. supporting inotify.
  43. endef
  44. define Package/inotifywait/description
  45. $(call Package/inotify-tools/description)
  46. This package provides the inotifywait tool.
  47. endef
  48. define Package/inotifywatch/description
  49. $(call Package/inotify-tools/description)
  50. This package provides the inotifywatch tool.
  51. endef
  52. define Package/libinotifytools/description
  53. $(call Package/inotify-tools/description)
  54. This package provides the libinotifytools shared library.
  55. endef
  56. define Package/inotifywait/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/inotifywait $(1)/usr/bin/
  59. endef
  60. define Package/inotifywatch/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/inotifywatch $(1)/usr/bin/
  63. endef
  64. define Package/libinotifytools/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  67. endef
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/include/inotifytools
  70. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/inotifytools/* $(1)/usr/include/inotifytools/
  71. $(INSTALL_DIR) $(1)/usr/lib/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  73. endef
  74. $(eval $(call BuildPackage,libinotifytools))
  75. $(eval $(call BuildPackage,inotifywait))
  76. $(eval $(call BuildPackage,inotifywatch))