]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - systemd/systemd.nm
newt: Update to 0.52.13 and add -devel package.
[people/amarx/ipfire-3.x.git] / systemd / systemd.nm
CommitLineData
c8ef6def 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
c8ef6def
SS
4###############################################################################
5
802ea3af 6name = systemd
ef438375 7version = 36
2a824e90 8release = 2
c8ef6def 9
802ea3af
MT
10maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
11groups = System/Base
12url = http://www.freedesktop.org/wiki/Software/systemd
13license = GPLv2+
14summary = A System and Service Manager.
c8ef6def 15
802ea3af
MT
16description
17 systemd is a system and service manager for Linux, compatible with
c8ef6def 18 SysV and LSB init scripts.
802ea3af
MT
19end
20
21conflicts += upstart
22
23source_dl = http://cgit.freedesktop.org/systemd/snapshot/
24
25build
26 requires
27 audit-devel
28 automake
29 autoconf
30 cryptsetup-luks-devel
31 dbus-devel
32 gperf
33 intltool
2a824e90 34 libacl-devel
802ea3af
MT
35 libcap-devel
36 libselinux-devel
37 libtool
38 libudev-devel>=172
39 pam-devel
40 end
41
42 configure_options += \
43 --sysconfdir=/etc \
44 --libexecdir=/usr/lib \
45 --with-rootdir= \
46 --with-distro=other \
47 --with-sysvinit-path= \
48 --with-sysvrcd-path= \
49 --with-udevrulesdir=/lib/udev/rules.d/ \
50 --with-pamlibdir=/lib/security
51
52 prepare_cmds
53 ./autogen.sh ac
54 end
55
56 test
57 make check
58 end
59
60 install_cmds
61 # Create sysv compatible symlinks.
62 mkdir -pv %{BUILDROOT}/sbin
63 ln -svf ../bin/systemd %{BUILDROOT}/sbin/init
64 ln -svf ../bin/systemctl %{BUILDROOT}/sbin/reboot
65 ln -svf ../bin/systemctl %{BUILDROOT}/sbin/halt
66 ln -svf ../bin/systemctl %{BUILDROOT}/sbin/poweroff
67 ln -svf ../bin/systemctl %{BUILDROOT}/sbin/shutdown
68
69 # Create empty machine-id file.
70 touch %{BUILDROOT}/etc/machine-id
71
72 # Copy locale and console settings
73 mkdir -pv %{BUILDROOT}/etc
74 cp -vf %{DIR_SOURCE}/locale.conf %{BUILDROOT}/etc/
75 cp -vf %{DIR_SOURCE}/vconsole.conf %{BUILDROOT}/etc/
76
77 # Recreate all targets
78 rm -rfv %{BUILDROOT}/etc/systemd/system/*.target.wants
79 mkdir -pv %{BUILDROOT}/lib/systemd/system/basic.target.wants
80 mkdir -pv %{BUILDROOT}/lib/systemd/system/default.target.wants
81 mkdir -pv %{BUILDROOT}/lib/systemd/system/dbus.target.wants
82 mkdir -pv %{BUILDROOT}/lib/systemd/system/syslog.target.wants
83
84 # Remove runlevel targets and graphical.target
85 rm -rfv %{BUILDROOT}/lib/systemd/system/runlevel*
86 rm -rfv %{BUILDROOT}/lib/systemd/system/graphical.target
87
88 # Set default target to multi-user
89 cd %{BUILDROOT}/lib/systemd/system && ln -svf multi-user.target default.target
90
91 # Replace absolute symlinks by relative ones.
92 cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/bluetooth.target bluetooth.target
93 cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/local-fs.target local-fs.target
94 cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/printer.target printer.target
95 cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/shutdown.target shutdown.target
96 cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/sockets.target sockets.target
97 cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/sound.target sound.target
98 cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/swap.target swap.target
99
100 # Remove tmpfile for X11
101 rm -rfv %{BUILDROOT}/usr/lib/tmpfiles.d/x11.conf
102
103 # Remove unneeded symlink for xdg
104 rm -rfv %{BUILDROOT}/etc/xdg/systemd
105 end
106end
107
108packages
109 package %{name}
514357ad
SS
110 requires
111 dbus
112 python-cairo
1d40b321
SS
113 python-dbus
114 udev>=172
514357ad
SS
115 util-linux>=2.19
116 end
1d40b321 117
ef438375
SS
118 prerequires += authconfig
119
1d40b321
SS
120 script postin
121 # Generate Machine ID.
122 /bin/systemd-machine-id-setup > /dev/null 2>&1 || :
123
124 # Reexec systemd daemon.
125 /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
126
127 # Make sure pam_systemd is enabled
128 if ! /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac ; then
129 /usr/sbin/authconfig --update --nostart >/dev/null 2>&1 || :
130
131 # Try harder
132 /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac || /usr/sbin/authconfig --updateall --nostart >/dev/null 2>&1 || :
133 fi
134 end
135
136 script postup
137 # Restart login service after update
138 /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
139 end
802ea3af 140 end
26bf0839 141
802ea3af
MT
142 # Package information for systemd-units
143 package %{name}-units
144 summary = Configuration files, directories and installation tool for systemd.
145 description
146 This package contains all needed configuration files, directories
147 and installation / configuration tool for systemd.
148 end
baec4059 149
802ea3af
MT
150 files
151 /etc/systemd/system
152 /etc/tmpfiles.d
153 /etc/bash_completion.d/systemctl-bash-completion.sh
154 /lib/systemd/system
155 /bin/systemctl
156 /bin/systemd-tmpfiles
157 /usr/share/man/man1/systemctl.*
158 end
1d40b321
SS
159
160 script postin
161 # Enable default services.
162 systemctl enable \
163 getty@.service \
164 remote-fs.target > /dev/null 2>&1 || :
165 end
166
167 script preun
168 # Disable default services.
169 systemctl disable \
170 getty@.service \
171 remote-fs.target > /dev/null 2>&1 || :
172 end
173
174 script postup
175 # Reload service files
176 systemctl daemon-reload > /dev/null 2>&1 || :
177 end
802ea3af
MT
178 end
179
180 package %{name}-devel
181 template DEVEL
182 end
183end