summaryrefslogtreecommitdiffstats
path: root/rules/etherwake.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-01-05 15:41:49 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-01-05 15:41:49 +0000
commit2d1432b134e42c9a5079188523b2075b98fc05ea (patch)
tree6042d1b0413c208d3263f9f32e1e7d5e0374418e /rules/etherwake.make
parent59188d065e65099fdbf510cc5020ddc0d26e4bed (diff)
downloadptxdist-2d1432b134e42c9a5079188523b2075b98fc05ea.tar.gz
ptxdist-2d1432b134e42c9a5079188523b2075b98fc05ea.tar.xz
* rules/etherwake.make:
version bump to 1.09 git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9392 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/etherwake.make')
-rw-r--r--rules/etherwake.make86
1 files changed, 21 insertions, 65 deletions
diff --git a/rules/etherwake.make b/rules/etherwake.make
index 36ff1dc7a..f9e2c1178 100644
--- a/rules/etherwake.make
+++ b/rules/etherwake.make
@@ -2,7 +2,7 @@
# $Id: template 1681 2004-09-01 18:12:49Z $
#
# Copyright (C) 2004 by BSP
-#
+#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
@@ -17,89 +17,45 @@ PACKAGES-$(PTXCONF_ETHERWAKE) += etherwake
#
# Paths and names
#
-ETHERWAKE_VERSION = 1.08
-ETHERWAKE = etherwake-$(ETHERWAKE_VERSION).orig
-ETHERWAKE_SUFFIX = tar.gz
-ETHERWAKE_URL = $(PTXCONF_SETUP_DEBMIRROR)/pool/main/e/etherwake/etherwake_$(ETHERWAKE_VERSION).orig.$(ETHERWAKE_SUFFIX)
-ETHERWAKE_SOURCE = $(SRCDIR)/etherwake_$(ETHERWAKE_VERSION).orig.$(ETHERWAKE_SUFFIX)
-ETHERWAKE_DIR = $(BUILDDIR)/$(ETHERWAKE)
+ETHERWAKE_VERSION := 1.09.orig
+ETHERWAKE_SUFFIX := tar.gz
+ETHERWAKE := etherwake-$(ETHERWAKE_VERSION)
+ETHERWAKE_TARBALL := etherwake_$(ETHERWAKE_VERSION).$(ETHERWAKE_SUFFIX)
+ETHERWAKE_SOURCE := $(SRCDIR)/$(ETHERWAKE_TARBALL)
+ETHERWAKE_DIR := $(BUILDDIR)/$(ETHERWAKE)
+ETHERWAKE_URL := \
+ $(PTXCONF_SETUP_DEBMIRROR)/pool/main/e/etherwake/$(ETHERWAKE_TARBALL) \
+ http://www.pengutronix.de/software/ptxdist/temporary-src/$(ETHERWAKE_TARBALL)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
-etherwake_get: $(STATEDIR)/etherwake.get
-
-$(STATEDIR)/etherwake.get: $(etherwake_get_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
-
$(ETHERWAKE_SOURCE):
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call get, ETHERWAKE)
# ----------------------------------------------------------------------------
-# Extract
-# ----------------------------------------------------------------------------
-
-etherwake_extract: $(STATEDIR)/etherwake.extract
-
-$(STATEDIR)/etherwake.extract: $(etherwake_extract_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(ETHERWAKE_DIR))
- @$(call extract, ETHERWAKE)
- @$(call patchin, ETHERWAKE)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-etherwake_prepare: $(STATEDIR)/etherwake.prepare
+ETHERWAKE_PATH := PATH=$(CROSS_PATH)
+ETHERWAKE_ENV := $(CROSS_ENV)
-ETHERWAKE_PATH = PATH=$(CROSS_PATH)
-ETHERWAKE_ENV = $(CROSS_ENV)
+ETHERWAKE_MAKEVARS := CC=$(CROSS_CC)
-$(STATEDIR)/etherwake.prepare: $(etherwake_prepare_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(ETHERWAKE_DIR)/config.cache)
- cd $(ETHERWAKE_DIR) && \
- perl -i -p -e 's/CC.*=.*//' $(ETHERWAKE_DIR)/Makefile
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Compile
-# ----------------------------------------------------------------------------
-
-etherwake_compile: $(STATEDIR)/etherwake.compile
-
-$(STATEDIR)/etherwake.compile: $(etherwake_compile_deps_default)
- @$(call targetinfo, $@)
- cd $(ETHERWAKE_DIR) && $(ETHERWAKE_ENV) $(ETHERWAKE_PATH) make
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Install
-# ----------------------------------------------------------------------------
-
-etherwake_install: $(STATEDIR)/etherwake.install
-
-$(STATEDIR)/etherwake.install: $(etherwake_install_deps_default)
- @$(call targetinfo, $@)
- # FIXME
- #@$(call install, ETHERWAKE)
- @$(call touch, $@)
+$(STATEDIR)/etherwake.prepare:
+ @$(call targetinfo)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
-etherwake_targetinstall: $(STATEDIR)/etherwake.targetinstall
+$(STATEDIR)/etherwake.targetinstall:
+ @$(call targetinfo)
-$(STATEDIR)/etherwake.targetinstall: $(etherwake_targetinstall_deps_default)
- @$(call targetinfo, $@)
-
@$(call install_init, etherwake)
@$(call install_fixup, etherwake,PACKAGE,etherwake)
@$(call install_fixup, etherwake,PRIORITY,optional)
@@ -108,12 +64,12 @@ $(STATEDIR)/etherwake.targetinstall: $(etherwake_targetinstall_deps_default)
@$(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, $(ETHERWAKE_DIR)/etherwake, /usr/sbin/etherwake)
@$(call install_finish, etherwake)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Clean