summaryrefslogtreecommitdiffstats
path: root/rules/rc-once.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-02-12 09:57:45 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-02-16 17:30:11 +0100
commit1c020c48c60ef81cf98f882ff51350433869c5f2 (patch)
treecd53a782bfc814eff63d0b8b74b766d9e93cda8f /rules/rc-once.make
parent5ff9ebcba67dadb96b7a97c24d42fe6eadab33a0 (diff)
downloadptxdist-1c020c48c60ef81cf98f882ff51350433869c5f2.tar.gz
ptxdist-1c020c48c60ef81cf98f882ff51350433869c5f2.tar.xz
[rc-once] new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/rc-once.make')
-rw-r--r--rules/rc-once.make80
1 files changed, 80 insertions, 0 deletions
diff --git a/rules/rc-once.make b/rules/rc-once.make
new file mode 100644
index 000000000..4b438de76
--- /dev/null
+++ b/rules/rc-once.make
@@ -0,0 +1,80 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Michael Olbrich <m.olbrich@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_RC_ONCE) += rc-once
+
+#
+# Paths and names
+#
+RC_ONCE_VERSION := 1.0.0
+RC_ONCE := rc-once-$(RC_ONCE_VERSION)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/rc-once.extract:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/rc-once.prepare:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/rc-once.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/rc-once.install:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/rc-once.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, rc-once)
+ @$(call install_fixup, rc-once, PACKAGE, rc-once)
+ @$(call install_fixup, rc-once, PRIORITY, optional)
+ @$(call install_fixup, rc-once, VERSION, $(RC_ONCE_VERSION))
+ @$(call install_fixup, rc-once, SECTION, base)
+ @$(call install_fixup, rc-once, AUTHOR, "Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, rc-once, DEPENDS,)
+ @$(call install_fixup, rc-once, DESCRIPTION, missing)
+
+ @$(call install_alternative, rc-once, 0, 0, 0755, /etc/init.d/rc-once)
+
+ @$(call install_copy, rc-once, 0, 0, 0755, /etc/rc.once.d)
+ @$(call install_copy, rc-once, 0, 0, 0755, /etc/rc.once.d/.done)
+
+ @$(call install_finish, rc-once)
+
+ @$(call touch)
+
+# vim: syntax=make
+