]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/systemd/systemd.nm
systemd: New package.
[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 = 1
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)-devel
48
49 CONFIGURE_OPTIONS += \
50 --sysconfdir=/etc \
51 --with-rootdir= \
52 --with-distro=other \
53 --with-syslog-service=syslog-ng.service \
54 --with-sysvinit-path= \
55 --with-sysvrcd-path= \
56 --with-udevrulesdir=/lib/udev
57
58 define STAGE_PREPARE_CMDS
59 cd $(DIR_APP) && ./autogen.sh ac
60 endef
61
62 define STAGE_TEST
63 cd $(DIR_APP) && make check
64 endef
65
66 define STAGE_INSTALL_CMDS
67 # Create sysv compatible symlinks.
68 -mkdir -pv $(BUILDROOT)/sbin
69 #ln -svf ../bin/systemd $(BUILDROOT)/sbin/init
70 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/reboot
71 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/halt
72 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/poweroff
73 ln -svf ../bin/systemctl $(BUILDROOT)/sbin/shutdown
74 #ln -svf ../bin/systemctl $(BUILDROOT)/sbin/telinit
75 #ln -svf ../bin/systemctl $(BUILDROOT)/sbin/runlevel
76
77 # Create empty machine-id file.
78 touch $(BUILDROOT)/etc/machine-id
79
80 rm -rfv $(BUILDROOT)/etc/systemd/system/*.target.wants
81 -mkdir -pv $(BUILDROOT)/lib/systemd/system/basic.target.wants
82 -mkdir -pv $(BUILDROOT)/lib/systemd/system/default.target.wants
83 -mkdir -pv $(BUILDROOT)/lib/systemd/system/dbus.target.wants
84 -mkdir -pv $(BUILDROOT)/lib/systemd/system/syslog.target.wants
85
86 # Replace absolute symlinks by relative ones.
87 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/bluetooth.target bluetooth.target
88 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/local-fs.target local-fs.target
89 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/printer.target printer.target
90 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/shutdown.target shutdown.target
91 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/sockets.target sockets.target
92 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/sound.target sound.target
93 cd $(BUILDROOT)/usr/share/systemd/user/ && ln -svf ../../../../lib/systemd/system/swap.target swap.target
94
95 ln -svf ../../systemd/user $(BUILDROOT)/etc/xdg/systemd/user
96 endef