diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-10-01 08:51:08 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-10-12 15:59:22 +0200 |
commit | 3771ae66d16983bf34e443f6c84f8e81899872cf (patch) | |
tree | 008e0e13735690b76aa0909338414f05eb0fe5ba /rules/machine-id.make | |
parent | 36173fa9ee0bff1bd2ed9e5d430f9015a1d0c266 (diff) | |
download | ptxdist-3771ae66d16983bf34e443f6c84f8e81899872cf.tar.gz ptxdist-3771ae66d16983bf34e443f6c84f8e81899872cf.tar.xz |
add a separate package for /etc/machine-id
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/machine-id.make')
-rw-r--r-- | rules/machine-id.make | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/rules/machine-id.make b/rules/machine-id.make new file mode 100644 index 000000000..b7274d2f9 --- /dev/null +++ b/rules/machine-id.make @@ -0,0 +1,37 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 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_MACHINE_ID) += machine-id + +MACHINE_ID_VERSION := 1 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/machine-id.targetinstall: + @$(call targetinfo) + + @$(call install_init, machine-id) + @$(call install_fixup,machine-id,PRIORITY,optional) + @$(call install_fixup,machine-id,SECTION,base) + @$(call install_fixup,machine-id,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup,machine-id,DESCRIPTION,missing) + + @$(call install_alternative, machine-id, 0, 0, 0755, /etc/rc.once.d/machine-id) + + @$(call install_finish,machine-id) + + @$(call touch) + +# vim: syntax=make |