diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-01-27 16:17:57 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-01-27 16:17:57 +0000 |
commit | 8b3955af97ee1bc2ecec67678241091d65815eae (patch) | |
tree | 6b1019989df0d5dcc0ee3a6383e9d8da9da85699 /rules/upstart.make | |
parent | 8bc389d2d4720699f5f62ddbbf42667b9aef9a5a (diff) | |
download | ptxdist-8b3955af97ee1bc2ecec67678241091d65815eae.tar.gz ptxdist-8b3955af97ee1bc2ecec67678241091d65815eae.tar.xz |
* upstart: initial addition, not tested yet
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9657 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/upstart.make')
-rw-r--r-- | rules/upstart.make | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/rules/upstart.make b/rules/upstart.make new file mode 100644 index 000000000..2c70db9c7 --- /dev/null +++ b/rules/upstart.make @@ -0,0 +1,146 @@ +# -*-makefile-*- +# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $ +# +# Copyright (C) 2009 by Robert Schwebel <r.schwebel@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_UPSTART) += upstart + +# +# Paths and names +# +UPSTART_VERSION := 0.5.0 +UPSTART := upstart-$(UPSTART_VERSION) +UPSTART_SUFFIX := tar.bz2 +UPSTART_URL := http://upstart.ubuntu.com/download/0.5/$(UPSTART).$(UPSTART_SUFFIX) +UPSTART_SOURCE := $(SRCDIR)/$(UPSTART).$(UPSTART_SUFFIX) +UPSTART_DIR := $(BUILDDIR)/$(UPSTART) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(UPSTART_SOURCE): + @$(call targetinfo) + @$(call get, UPSTART) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/upstart.extract: + @$(call targetinfo) + @$(call clean, $(UPSTART_DIR)) + @$(call extract, UPSTART) + @$(call patchin, UPSTART) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +UPSTART_PATH := PATH=$(CROSS_PATH) +UPSTART_ENV := $(CROSS_ENV) + +# +# autoconf +# +UPSTART_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --disable-nls \ + --enable-threads=posix \ + --disable-rpath \ + --enable-shared \ + --enable-static \ + --enable-threading \ + --enable-compiler-warnings \ + --enable-compiler-optimisations \ + --disable-compiler-coverage \ + --enable-linker-optimisations \ + --with-gnu-ld \ + --without-libpth-prefix \ + --without-libiconv-prefix \ + --with-included-gettext \ + --without-libintl-prefix + +$(STATEDIR)/upstart.prepare: + @$(call targetinfo) + @$(call clean, $(UPSTART_DIR)/config.cache) + cd $(UPSTART_DIR) && \ + $(UPSTART_PATH) $(UPSTART_ENV) \ + ./configure $(UPSTART_AUTOCONF) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/upstart.compile: + @$(call targetinfo) + cd $(UPSTART_DIR) && $(UPSTART_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/upstart.install: + @$(call targetinfo) + @$(call install, UPSTART) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/upstart.targetinstall: + @$(call targetinfo) + + @$(call install_init, upstart) + @$(call install_fixup, upstart,PACKAGE,upstart) + @$(call install_fixup, upstart,PRIORITY,optional) + @$(call install_fixup, upstart,VERSION,$(UPSTART_VERSION)) + @$(call install_fixup, upstart,SECTION,base) + @$(call install_fixup, upstart,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") + @$(call install_fixup, upstart,DEPENDS,) + @$(call install_fixup, upstart,DESCRIPTION,missing) + + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/init) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/halt) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/shutdown) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/stop) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/reboot) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/poweroff) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/runlevel) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/telinit) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/start) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/status) + @$(call install_copy, upstart, 0, 0, 0755, -, /usr/sbin/initctl) + + @$(call install_copy, upstart, 0, 0, 0755, /etc/init.d/conf.d) + @$(call install_copy, upstart, 0, 0, 0755, /etc/init.d/jobs.d) + + @$(call install_copy, upstart, 0, 0, 0644, -, /etc/dbus-1/system.d/Upstart.conf) + + @$(call install_finish, upstart) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +upstart_clean: + rm -rf $(STATEDIR)/upstart.* + rm -rf $(PKGDIR)/upstart_* + rm -rf $(UPSTART_DIR) + +# vim: syntax=make |