diff options
Diffstat (limited to 'rules/systemd.make')
-rw-r--r-- | rules/systemd.make | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/rules/systemd.make b/rules/systemd.make new file mode 100644 index 000000000..0ace4ef10 --- /dev/null +++ b/rules/systemd.make @@ -0,0 +1,118 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 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_SYSTEMD) += systemd + +# +# Paths and names +# +SYSTEMD_VERSION := 20 +SYSTEMD := systemd-$(SYSTEMD_VERSION) +SYSTEMD_SUFFIX := tar.bz2 +SYSTEMD_URL := http://www.freedesktop.org/software/systemd/$(SYSTEMD).$(SYSTEMD_SUFFIX) +SYSTEMD_SOURCE := $(SRCDIR)/$(SYSTEMD).$(SYSTEMD_SUFFIX) +SYSTEMD_DIR := $(BUILDDIR)/$(SYSTEMD) +SYSTEMD_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(SYSTEMD_SOURCE): + @$(call targetinfo) + @$(call get, SYSTEMD) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +#SYSTEMD_CONF_ENV := $(CROSS_ENV) + +# +# autoconf +# +SYSTEMD_CONF_TOOL := autoconf +SYSTEMD_CONF_OPT := $(CROSS_AUTOCONF_USR) + +SYSTEMD_CONF_OPT += \ + --enable-silent-rules \ + --disable-selinux \ + --disable-tcpwrap \ + --disable-pam \ + --disable-gtk \ + --with-distro=other \ + --with-sysvinit-path=/etc/init.d \ + --with-sysvrcd-path=/etc \ + --with-syslog-service=syslog-ng.service \ + --with-dbuspolicydir=/etc/dbus-1/system.d \ + --with-dbussessionservicedir=/usr/share/dbus-1/services \ + --with-dbussystemservicedir=/usr/share/dbus-1/system-services \ + --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \ + --with-udevrulesdir=/lib/udev/rules.d \ + --with-pamlibdir=/lib/security \ + --with-rootdir= + +# SYSTEMD_MAKEVARS := V=1 + +# FIXME --with-syslog-service depends on config +# FIXME do we have to create dbuspolicydir? +# FIXME --with-rootdir=/ or /usr? +# - autofs4 is mandatory. Is this necessary? +# - ipv6 is mandatory. Is this necessary? + +# FIXME busybox tools: +# - modprobe fails +# - mount fails + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/systemd.targetinstall: + @$(call targetinfo) + + @$(call install_init, systemd) + @$(call install_fixup, systemd,PRIORITY,optional) + @$(call install_fixup, systemd,SECTION,base) + @$(call install_fixup, systemd,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") + @$(call install_fixup, systemd,DESCRIPTION,missing) + + # + # Some info about the current state of systemd support in ptxdist: + # + # - we don't care about a user systemd yet + # + + # daemon + tools + @$(call install_copy, systemd, 0, 0, 0755, -, /bin/systemd) + @$(call install_copy, systemd, 0, 0, 0755, -, /bin/systemctl) + @$(call install_copy, systemd, 0, 0, 0755, -, /bin/systemd-ask-password) + @$(call install_copy, systemd, 0, 0, 0755, -, /bin/systemd-tmpfiles) + @$(call install_copy, systemd, 0, 0, 0755, -, /bin/systemd-notify) + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-cgls) + + # configuration + @$(call install_copy, systemd, 0, 0, 0644, -, /etc/systemd/system.conf) + @$(call install_copy, systemd, 0, 0, 0644, -, /etc/tmpfiles.d/x11.conf) + @$(call install_copy, systemd, 0, 0, 0644, -, /etc/tmpfiles.d/systemd.conf) + @$(call install_copy, systemd, 0, 0, 0644, -, /lib/udev/rules.d/99-systemd.rules) + @$(call install_copy, systemd, 0, 0, 0644, -, /etc/dbus-1/system.d/org.freedesktop.systemd1.conf) + + # units + @$(call install_tree, systemd, -, -, $(SYSTEMD_PKGDIR)/lib/systemd, /lib/systemd) + + @$(call install_finish, systemd) + + @$(call touch) + +# vim: syntax=make |