]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/systemd/systemd.nm
systemd: Reenable support for selinux and audit.
[people/ms/ipfire-3.x.git] / pkgs / systemd / systemd.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = systemd
28 PKG_VER = 20
29 PKG_REL = 4
30
31 PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
32 PKG_GROUP = System/Base
33 PKG_URL = http://www.freedesktop.org/wiki/Software/systemd
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = A System and Service Manager.
36
37 PKG_BUILD_DEPS+= audit-devel automake autoconf cryptsetup-luks-devel dbus-devel \
38 libcap-devel libselinux-devel libtool libudev-devel pam-devel
39
40 define PKG_DESCRIPTION
41 systemd is a system and service manager for Linux, compatible with \
42 SysV and LSB init scripts.
43 endef
44
45 PKG_TARBALL = $(THISAPP).tar.bz2
46
47 PKG_PACKAGES += $(PKG_NAME)-units $(PKG_NAME)-devel
48
49 # Package information for systemd-units
50 PKG_SUMMARY-systemd-units = Configuration files, directories and installation tool for systemd.
51 PKG_DESCRIPTION-systemd-units = This package contains all needed configuration files, directories \
52 and installation / configuration tool for systemd.
53
54 define PKG_FILES-systemd-units
55 /etc/systemd/system
56 /etc/tmpfiles.d
57 /etc/bash_completion.d/systemctl-bash-completion.sh
58 /lib/systemd/system
59 /bin/systemctl
60 /bin/systemd-tmpfiles
61 /usr/share/man/man1/systemctl.*
62 endef
63
64
65 CONFIGURE_OPTIONS += \
66 --sysconfdir=/etc \
67 --with-rootdir= \
68 --with-distro=other \
69 --with-syslog-service=rsyslog.service \
70 --with-sysvinit-path= \
71 --with-sysvrcd-path= \
72 --with-udevrulesdir=/lib/udev/rules.d/ \
73 --with-pamlibdir=/etc/pam.d
74
75 define STAGE_PREPARE_CMDS
76 cd $(DIR_APP) && ./autogen.sh ac
77 endef
78
79 define STAGE_TEST
80 cd $(DIR_APP) && make check
81 endef
82
83 define STAGE_INSTALL_CMDS
84 # Create sysv compatible symlinks.
85 -mkdir -pv $(BUILDROOT)/sbin
86 #ln -svf ../bin/systemd $(BUILDROOT)/sbin/init
87 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/reboot
88 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/halt
89 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/poweroff
90 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/shutdown
91 #ln -svf ../bin/systemctl $(BUILDROOT)/sbin/telinit
92 #ln -svf ../bin/systemctl $(BUILDROOT)/sbin/runlevel
93
94 # Create empty machine-id file.
95 touch $(BUILDROOT)/etc/machine-id
96
97 rm -rfv $(BUILDROOT)/etc/systemd/system/*.target.wants
98 -mkdir -pv $(BUILDROOT)/lib/systemd/system/basic.target.wants
99 -mkdir -pv $(BUILDROOT)/lib/systemd/system/default.target.wants
100 -mkdir -pv $(BUILDROOT)/lib/systemd/system/dbus.target.wants
101 -mkdir -pv $(BUILDROOT)/lib/systemd/system/syslog.target.wants
102
103 # Replace absolute symlinks by relative ones.
104 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/bluetooth.target bluetooth.target
105 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/local-fs.target local-fs.target
106 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/printer.target printer.target
107 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/shutdown.target shutdown.target
108 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/sockets.target sockets.target
109 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/sound.target sound.target
110 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/swap.target swap.target
111
112 ln -svf ../../systemd/user $(BUILDROOT)/etc/xdg/systemd/user
113 endef