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.

99 lines
2.6 KiB

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