summaryrefslogtreecommitdiffstats
path: root/rules/urshd.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-03-15 00:01:45 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-03-15 00:01:45 +0000
commitc072ba00011c8cc53ef513e5037b33e2ea3a26c0 (patch)
tree0ef374a9647b26521402e4cc926e46001da03b1d /rules/urshd.make
parent6a107756b2a79e470bb6165d1b0fc7c67ee72e18 (diff)
downloadptxdist-c072ba00011c8cc53ef513e5037b33e2ea3a26c0.tar.gz
ptxdist-c072ba00011c8cc53ef513e5037b33e2ea3a26c0.tar.xz
* urshd: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7841 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/urshd.make')
-rw-r--r--rules/urshd.make131
1 files changed, 131 insertions, 0 deletions
diff --git a/rules/urshd.make b/rules/urshd.make
new file mode 100644
index 000000000..6494c4a87
--- /dev/null
+++ b/rules/urshd.make
@@ -0,0 +1,131 @@
+# -*-makefile-*-
+# $Id: template-make 7759 2008-02-12 21:05:07Z mkl $
+#
+# Copyright (C) 2008 by Robert Schwebel
+#
+# 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_URSHD) += urshd
+
+#
+# Paths and names
+#
+URSHD_VERSION := 1.0.0
+URSHD := urshd-$(URSHD_VERSION)
+URSHD_SUFFIX := tar.bz2
+URSHD_URL := http://www.pengutronix.de/software/urshd/download/v1.0/$(URSHD).$(URSHD_SUFFIX)
+URSHD_SOURCE := $(SRCDIR)/$(URSHD).$(URSHD_SUFFIX)
+URSHD_DIR := $(BUILDDIR)/$(URSHD)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+urshd_get: $(STATEDIR)/urshd.get
+
+$(STATEDIR)/urshd.get:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(URSHD_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, URSHD)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+urshd_extract: $(STATEDIR)/urshd.extract
+
+$(STATEDIR)/urshd.extract:
+ @$(call targetinfo, $@)
+ @$(call clean, $(URSHD_DIR))
+ @$(call extract, URSHD)
+ @$(call patchin, URSHD)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+urshd_prepare: $(STATEDIR)/urshd.prepare
+
+URSHD_PATH := PATH=$(CROSS_PATH)
+URSHD_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+URSHD_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/urshd.prepare:
+ @$(call targetinfo, $@)
+ @$(call clean, $(URSHD_DIR)/config.cache)
+ cd $(URSHD_DIR) && \
+ $(URSHD_PATH) $(URSHD_ENV) \
+ ./configure $(URSHD_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+urshd_compile: $(STATEDIR)/urshd.compile
+
+$(STATEDIR)/urshd.compile:
+ @$(call targetinfo, $@)
+ cd $(URSHD_DIR) && $(URSHD_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+urshd_install: $(STATEDIR)/urshd.install
+
+$(STATEDIR)/urshd.install:
+ @$(call targetinfo, $@)
+ @$(call install, URSHD)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+urshd_targetinstall: $(STATEDIR)/urshd.targetinstall
+
+$(STATEDIR)/urshd.targetinstall:
+ @$(call targetinfo, $@)
+
+ @$(call install_init, urshd)
+ @$(call install_fixup, urshd,PACKAGE,urshd)
+ @$(call install_fixup, urshd,PRIORITY,optional)
+ @$(call install_fixup, urshd,VERSION,$(URSHD_VERSION))
+ @$(call install_fixup, urshd,SECTION,base)
+ @$(call install_fixup, urshd,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup, urshd,DEPENDS,)
+ @$(call install_fixup, urshd,DESCRIPTION,missing)
+
+ @$(call install_copy, urshd, 0, 0, 0755, $(URSHD_DIR)/src/urshd, /usr/sbin/urshd)
+
+ @$(call install_finish, urshd)
+
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+urshd_clean:
+ rm -rf $(STATEDIR)/urshd.*
+ rm -rf $(IMAGEDIR)/urshd_*
+ rm -rf $(URSHD_DIR)
+
+# vim: syntax=make