From 1c020c48c60ef81cf98f882ff51350433869c5f2 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 12 Feb 2010 09:57:45 +0100 Subject: [rc-once] new package Signed-off-by: Michael Olbrich --- rules/rc-once.make | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 rules/rc-once.make (limited to 'rules/rc-once.make') 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 +# +# 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 ") + @$(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 + -- cgit v1.2.3