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