summaryrefslogtreecommitdiffstats
path: root/rules/inotify-tools.make
blob: 2df3d2fc0540eb7e15f2aa1488e419014f226288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*-makefile-*-
#
# Copyright (C) 2008 by Brandon Fosdick <bfosdick@dash.net>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_INOTIFY_TOOLS) += inotify-tools

#
# Paths and names
#
INOTIFY_TOOLS_VERSION	:= 3.13
INOTIFY_TOOLS		:= inotify-tools-$(INOTIFY_TOOLS_VERSION)
INOTIFY_TOOLS_SUFFIX	:= tar.gz
INOTIFY_TOOLS_URL	:= $(PTXCONF_SETUP_SFMIRROR)/inotify-tools/$(INOTIFY_TOOLS).$(INOTIFY_TOOLS_SUFFIX)
INOTIFY_TOOLS_SOURCE	:= $(SRCDIR)/$(INOTIFY_TOOLS).$(INOTIFY_TOOLS_SUFFIX)
INOTIFY_TOOLS_DIR	:= $(BUILDDIR)/$(INOTIFY_TOOLS)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(INOTIFY_TOOLS_SOURCE):
	@$(call targetinfo)
	@$(call get, INOTIFY_TOOLS)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

INOTIFY_TOOLS_PATH	:= PATH=$(CROSS_PATH)
INOTIFY_TOOLS_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
INOTIFY_TOOLS_AUTOCONF := $(CROSS_AUTOCONF_USR)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/inotify-tools.targetinstall:
	@$(call targetinfo)

	@$(call install_init, inotify-tools)
	@$(call install_fixup,inotify-tools,PACKAGE,inotify-tools)
	@$(call install_fixup,inotify-tools,PRIORITY,optional)
	@$(call install_fixup,inotify-tools,VERSION,$(INOTIFY_TOOLS_VERSION))
	@$(call install_fixup,inotify-tools,SECTION,base)
	@$(call install_fixup,inotify-tools,AUTHOR,"Brandon Fosdick <bfosdick@dash.net>")
	@$(call install_fixup,inotify-tools,DEPENDS,)
	@$(call install_fixup,inotify-tools,DESCRIPTION,missing)

	@$(call install_copy, inotify-tools, 0, 0, 0755, -, \
		/usr/bin/inotifywait)

	@$(call install_copy, inotify-tools, 0, 0, 0755, -, \
		/usr/bin/inotifywait)

	@$(call install_copy, inotify-tools, 0, 0, 0644, -, \
		/usr/lib/libinotifytools.so.0.4.1)

	@$(call install_link, inotify-tools, \
		libinotifytools.so.0.4.1, \
		/usr/lib/libinotifytools.so.0)

	@$(call install_link, inotify-tools, \
		libinotifytools.so.0.4.1, \
		/usr/lib/libinotifytools.so)

	@$(call install_finish, inotify-tools)

	@$(call touch)

# vim: syntax=make