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.

105 lines
2.8 KiB

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