summaryrefslogtreecommitdiffstats
path: root/rules/etherwake.make
blob: 9c6a35c1ea1080aa0d4e5541cbded832ed2ea2dc (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
# -*-makefile-*-
#
# Copyright (C) 2004 by Benedikt Spranger
#               2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# 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_ETHERWAKE) += etherwake

#
# Paths and names
#
ETHERWAKE_VERSION	:= 1.09
ETHERWAKE_SUFFIX	:= tar.gz
ETHERWAKE		:= etherwake-$(ETHERWAKE_VERSION).orig
ETHERWAKE_TARBALL	:= etherwake_$(ETHERWAKE_VERSION).orig.$(ETHERWAKE_SUFFIX)
ETHERWAKE_URL		:= $(PTXCONF_SETUP_DEBMIRROR)/pool/main/e/etherwake/$(ETHERWAKE_TARBALL)
ETHERWAKE_SOURCE	:= $(SRCDIR)/$(ETHERWAKE_TARBALL)
ETHERWAKE_DIR		:= $(BUILDDIR)/$(ETHERWAKE)
ETHERWAKE_LICENSE	:= GPL

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

$(ETHERWAKE_SOURCE):
	@$(call targetinfo)
	@$(call get, ETHERWAKE)

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

ETHERWAKE_PATH	:= PATH=$(CROSS_PATH)
ETHERWAKE_ENV 	:= $(CROSS_ENV)

ETHERWAKE_MAKEVARS := CC=$(CROSS_CC)

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

$(STATEDIR)/etherwake.targetinstall:
	@$(call targetinfo)

	@$(call install_init, etherwake)
	@$(call install_fixup, etherwake,PACKAGE,etherwake)
	@$(call install_fixup, etherwake,PRIORITY,optional)
	@$(call install_fixup, etherwake,VERSION,$(ETHERWAKE_VERSION))
	@$(call install_fixup, etherwake,SECTION,base)
	@$(call install_fixup, etherwake,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, etherwake,DEPENDS,)
	@$(call install_fixup, etherwake,DESCRIPTION,missing)

	@$(call install_copy, etherwake, 0, 0, 0755, -, \
		/usr/sbin/etherwake)

	@$(call install_finish, etherwake)

	@$(call touch)

# vim: syntax=make