Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= inotify-tools
  5. PKG_VERSION:= 3.14
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 222bcca8893d7bf8a1ce207fb39ceead5233b5015623d099392e95197676c92f
  8. PKG_DESCR:= command line programs providing a simple interface to inotify
  9. PKG_SECTION:= sys/fs
  10. PKG_URL:= https://github.com/rvoicilas/inotify-tools/wiki
  11. PKG_SITES:= http://github.com/downloads/rvoicilas/inotify-tools/
  12. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SUBPKGS:= INOTIFYWAIT INOTIFYWATCH LIBINOTIFYTOOLS
  14. PKGSC_LIBINOTIFYTOOLS:= libs/misc
  15. PKGSD_INOTIFYWAIT:= wait for changes to files using inotify
  16. PKGSD_INOTIFYWATCH:= gather filesystem access statistics using inotify
  17. PKGSD_LIBINOTIFYTOOLS:= inotify tools library
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,INOTIFYWAIT,inotifywait,$(PKG_VERSION)-$(PKG_RELEASE),libinotifytools,$(PKGSD_INOTIFYWAIT),$(PKG_SECTION)))
  20. $(eval $(call PKG_template,INOTIFYWATCH,inotifywatch,$(PKG_VERSION)-$(PKG_RELEASE),libinotifytools,$(PKGSD_INOTIFYWATCH),$(PKG_SECTION)))
  21. $(eval $(call PKG_template,LIBINOTIFYTOOLS,libinotifytools,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_LIBINOTIFYTOOLS),$(PKGSC_LIBINOTIFYTOOLS)))
  22. inotifywait-install:
  23. $(INSTALL_DIR) $(IDIR_INOTIFYWAIT)/usr/bin
  24. $(INSTALL_BIN) $(WRKINST)/usr/bin/inotifywait $(IDIR_INOTIFYWAIT)/usr/bin
  25. inotifywatch-install:
  26. $(INSTALL_DIR) $(IDIR_INOTIFYWATCH)/usr/bin
  27. $(INSTALL_BIN) $(WRKINST)/usr/bin/inotifywatch $(IDIR_INOTIFYWATCH)/usr/bin
  28. libinotifytools-install:
  29. $(INSTALL_DIR) $(IDIR_LIBINOTIFYTOOLS)/usr/lib
  30. $(CP) $(WRKINST)/usr/lib/libinotifytools.so* $(IDIR_LIBINOTIFYTOOLS)/usr/lib
  31. include $(ADK_TOPDIR)/mk/pkg-bottom.mk