|
Lennart Poettering |
cc49ef |
Name: systemd
|
|
Lennart Poettering |
cc49ef |
Url: http://www.freedesktop.org/wiki/Software/systemd
|
|
Lennart Poettering |
cc49ef |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Lennart Poettering |
25a5a1 |
Version: 4
|
|
Lennart Poettering |
25a5a1 |
Release: 1%{?dist}
|
|
Lennart Poettering |
cc49ef |
License: GPLv2+
|
|
Lennart Poettering |
cc49ef |
Group: System Environment/Base
|
|
Lennart Poettering |
cc49ef |
Summary: A System and Session Manager
|
|
Lennart Poettering |
25a5a1 |
BuildRequires: libudev-devel >= 160
|
|
Lennart Poettering |
cc49ef |
BuildRequires: libcap-devel
|
|
Lennart Poettering |
cc49ef |
BuildRequires: tcp_wrappers-devel
|
|
Lennart Poettering |
cc49ef |
BuildRequires: pam-devel
|
|
Lennart Poettering |
cc49ef |
BuildRequires: libxslt
|
|
Lennart Poettering |
cc49ef |
BuildRequires: docbook-style-xsl
|
|
Lennart Poettering |
cc49ef |
BuildRequires: dbus-glib-devel
|
|
Lennart Poettering |
25a5a1 |
BuildRequires: vala >= 0.9
|
|
Lennart Poettering |
cc49ef |
BuildRequires: pkgconfig
|
|
Lennart Poettering |
cc49ef |
BuildRequires: gtk2-devel
|
|
Lennart Poettering |
cc49ef |
BuildRequires: automake
|
|
Lennart Poettering |
cc49ef |
BuildRequires: autoconf
|
|
Lennart Poettering |
1a8865 |
BuildRequires: libtool
|
|
Lennart Poettering |
fdaca2 |
Requires: systemd-units = %{version}-%{release}
|
|
Lennart Poettering |
b93a36 |
Requires: dbus >= 1.3.2
|
|
Lennart Poettering |
b93a36 |
Requires: udev >= 160
|
|
Lennart Poettering |
aee139 |
Requires: libudev >= 160
|
|
Lennart Poettering |
cc49ef |
Requires: initscripts
|
|
Lennart Poettering |
aee139 |
Requires: selinux-policy >= 3.8.7
|
|
Lennart Poettering |
5a28ec |
Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
cc49ef |
%description
|
|
Lennart Poettering |
cc49ef |
systemd is a system and session manager for Linux, compatible with
|
|
Lennart Poettering |
cc49ef |
SysV and LSB init scripts. systemd provides aggressive parallelization
|
|
Lennart Poettering |
cc49ef |
capabilities, uses socket and D-Bus activation for starting services,
|
|
Lennart Poettering |
cc49ef |
offers on-demand starting of daemons, keeps track of processes using
|
|
Lennart Poettering |
cc49ef |
Linux cgroups, supports snapshotting and restoring of the system
|
|
Lennart Poettering |
cc49ef |
state, maintains mount and automount points and implements an
|
|
Lennart Poettering |
cc49ef |
elaborate transactional dependency-based service control logic. It can
|
|
Lennart Poettering |
cc49ef |
work as a drop-in replacement for sysvinit.
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
4372ad |
%package units
|
|
Lennart Poettering |
4372ad |
Group: System Environment/Base
|
|
Lennart Poettering |
4372ad |
Summary: Configuration files, directories and installation tool for systemd
|
|
Lennart Poettering |
5a28ec |
Requires: pkgconfig
|
|
Lennart Poettering |
4372ad |
|
|
Lennart Poettering |
4372ad |
%description units
|
|
Lennart Poettering |
4372ad |
Basic configuration files, directories and installation tool for the systemd
|
|
Lennart Poettering |
4372ad |
system and session manager.
|
|
Lennart Poettering |
4372ad |
|
|
Lennart Poettering |
cc49ef |
%package gtk
|
|
Lennart Poettering |
cc49ef |
Group: System Environment/Base
|
|
Lennart Poettering |
cc49ef |
Summary: Graphical frontend for systemd
|
|
Lennart Poettering |
cc49ef |
Requires: %{name} = %{version}-%{release}
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
cc49ef |
%description gtk
|
|
Lennart Poettering |
cc49ef |
Graphical front-end for systemd.
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
cc49ef |
%package sysvinit
|
|
Lennart Poettering |
cc49ef |
Group: System Environment/Base
|
|
Lennart Poettering |
cc49ef |
Summary: systemd System V init tools
|
|
Lennart Poettering |
cc49ef |
Requires: %{name} = %{version}-%{release}
|
|
Lennart Poettering |
4372ad |
Obsoletes: SysVinit < 2.86-24, sysvinit < 2.86-24
|
|
Lennart Poettering |
4372ad |
Provides: SysVinit = 2.86-24, sysvinit = 2.86-24
|
|
Lennart Poettering |
25a5a1 |
Obsoletes: upstart < 0.6.5-6.fc14
|
|
Lennart Poettering |
25a5a1 |
Conflicts: upstart-sysvinit
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
# For now, require upstart installed, so that people can rely that
|
|
Lennart Poettering |
25a5a1 |
# they can emergency boot into upstart with init=/sbin/upstart
|
|
Lennart Poettering |
25a5a1 |
Requires: upstart >= 0.6.5-6.fc14
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
cc49ef |
%description sysvinit
|
|
Lennart Poettering |
cc49ef |
Drop-in replacement for the System V init tools of systemd.
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
cc49ef |
%prep
|
|
Lennart Poettering |
fdaca2 |
%setup -q
|
|
Rahul Sundaram |
7a392d |
|
|
Lennart Poettering |
cc49ef |
%build
|
|
Lennart Poettering |
cc49ef |
%configure --with-rootdir= --with-distro=fedora
|
|
Rahul Sundaram |
7a392d |
make %{?_smp_mflags}
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
cc49ef |
%install
|
|
Lennart Poettering |
cc49ef |
rm -rf %{buildroot}
|
|
Lennart Poettering |
cc49ef |
make DESTDIR=%{buildroot} install
|
|
Lennart Poettering |
cc49ef |
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -exec rm {} \;
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
# Create SysV compatibility symlinks. systemctl/systemd are smart
|
|
Lennart Poettering |
25a5a1 |
# enough to detect in which way they are called.
|
|
Lennart Poettering |
cc49ef |
mkdir -p %{buildroot}/sbin
|
|
Lennart Poettering |
5a28ec |
ln -s ../bin/systemd %{buildroot}/sbin/init
|
|
Lennart Poettering |
5a28ec |
ln -s ../bin/systemctl %{buildroot}/sbin/reboot
|
|
Lennart Poettering |
5a28ec |
ln -s ../bin/systemctl %{buildroot}/sbin/halt
|
|
Lennart Poettering |
5a28ec |
ln -s ../bin/systemctl %{buildroot}/sbin/poweroff
|
|
Lennart Poettering |
5a28ec |
ln -s ../bin/systemctl %{buildroot}/sbin/shutdown
|
|
Lennart Poettering |
5a28ec |
ln -s ../bin/systemctl %{buildroot}/sbin/telinit
|
|
Lennart Poettering |
5a28ec |
ln -s ../bin/systemctl %{buildroot}/sbin/runlevel
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
25a5a1 |
# We create all wants links manually at installation time to make sure
|
|
Lennart Poettering |
25a5a1 |
# they are not owned and hence overriden by rpm after the used deleted
|
|
Lennart Poettering |
25a5a1 |
# them.
|
|
Lennart Poettering |
25a5a1 |
rm -r %{buildroot}/etc/systemd/system/*.target.wants
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
# And the default symlink we generate automatically based on inittab
|
|
Lennart Poettering |
25a5a1 |
rm %{buildroot}/etc/systemd/system/default.target
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
cc49ef |
%clean
|
|
Lennart Poettering |
cc49ef |
rm -rf $RPM_BUILD_ROOT
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
25a5a1 |
%post units
|
|
Lennart Poettering |
25a5a1 |
if [ $1 -eq 1 ] ; then
|
|
Lennart Poettering |
25a5a1 |
# Try to read default runlevel from the old inittab if it exists
|
|
Lennart Poettering |
25a5a1 |
runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
|
|
Lennart Poettering |
25a5a1 |
if [ -z "$runlevel" ] ; then
|
|
Lennart Poettering |
25a5a1 |
target="/lib/systemd/system/graphical.target"
|
|
Lennart Poettering |
25a5a1 |
else
|
|
Lennart Poettering |
25a5a1 |
target="/etc/systemd/system/runlevel$runlevel.target"
|
|
Lennart Poettering |
25a5a1 |
fi
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
# And symlink what we found to the new-style default.target
|
|
Lennart Poettering |
25a5a1 |
/bin/ln -sf "$target" /etc/systemd/system/default.target 2>&1 || :
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
# Enable the services we install by default.
|
|
Lennart Poettering |
25a5a1 |
/bin/systemctl enable \
|
|
Lennart Poettering |
25a5a1 |
getty@.service \
|
|
Lennart Poettering |
25a5a1 |
prefdm.service \
|
|
Lennart Poettering |
25a5a1 |
getty.target \
|
|
Lennart Poettering |
25a5a1 |
rc-local.service \
|
|
Lennart Poettering |
25a5a1 |
remote-fs.target 2>&1 || :
|
|
Lennart Poettering |
25a5a1 |
fi
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
%preun units
|
|
Lennart Poettering |
25a5a1 |
if [ $1 -eq 0 ] ; then
|
|
Lennart Poettering |
25a5a1 |
/bin/systemctl disable \
|
|
Lennart Poettering |
25a5a1 |
getty@.service \
|
|
Lennart Poettering |
25a5a1 |
prefdm.service \
|
|
Lennart Poettering |
25a5a1 |
getty.target \
|
|
Lennart Poettering |
25a5a1 |
rc-local.service \
|
|
Lennart Poettering |
25a5a1 |
remote-fs.target 2>&1 || :
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
/bin/rm -f /etc/systemd/system/default.target 2>&1 || :
|
|
Lennart Poettering |
25a5a1 |
fi
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
25a5a1 |
%postun units
|
|
Lennart Poettering |
25a5a1 |
if [ $1 -ge 1 ] ; then
|
|
Lennart Poettering |
25a5a1 |
/bin/systemctl daemon-reload 2>&1 || :
|
|
Lennart Poettering |
25a5a1 |
fi
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
cc49ef |
%files
|
|
Lennart Poettering |
cc49ef |
%defattr(-,root,root,-)
|
|
Lennart Poettering |
1e979b |
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
|
|
Lennart Poettering |
cc49ef |
%{_sysconfdir}/rc.d/init.d/reboot
|
|
Lennart Poettering |
25a5a1 |
%dir %{_sysconfdir}/systemd/session
|
|
Lennart Poettering |
25a5a1 |
%{_sysconfdir}/xdg/systemd
|
|
Lennart Poettering |
cc49ef |
/bin/systemd
|
|
Lennart Poettering |
cc49ef |
/bin/systemd-notify
|
|
Lennart Poettering |
4372ad |
/lib/systemd/systemd-*
|
|
Lennart Poettering |
cc49ef |
/lib/udev/rules.d/*.rules
|
|
Lennart Poettering |
1e979b |
/%{_lib}/security/pam_systemd.so
|
|
Lennart Poettering |
5a28ec |
%{_bindir}/systemd-cgls
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man1/systemd.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man1/systemd-notify.*
|
|
Lennart Poettering |
5a28ec |
%{_mandir}/man1/systemd-cgls.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man3/*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man5/*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man7/*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man8/pam_systemd.*
|
|
Lennart Poettering |
cc49ef |
%{_datadir}/systemd
|
|
Rahul Sundaram |
7a392d |
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
|
|
Rahul Sundaram |
7a392d |
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
|
|
Lennart Poettering |
cc49ef |
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
|
|
Lennart Poettering |
cc49ef |
%{_docdir}/systemd
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
85eb5f |
# Joint ownership with libcgroup
|
|
Lennart Poettering |
85eb5f |
%dir /cgroup
|
|
Lennart Poettering |
85eb5f |
|
|
Lennart Poettering |
4372ad |
%files units
|
|
Lennart Poettering |
4372ad |
%defattr(-,root,root,-)
|
|
Lennart Poettering |
25a5a1 |
%dir %{_sysconfdir}/systemd
|
|
Lennart Poettering |
25a5a1 |
%dir %{_sysconfdir}/systemd/system
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system.conf
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system/ctrl-alt-del.target
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system/display-manager.service
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system/kbrequest.target
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel2.target
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel3.target
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel4.target
|
|
Lennart Poettering |
25a5a1 |
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel5.target
|
|
Lennart Poettering |
4372ad |
%dir /lib/systemd
|
|
Lennart Poettering |
4372ad |
/lib/systemd/system
|
|
Lennart Poettering |
25a5a1 |
/bin/systemctl
|
|
Lennart Poettering |
25a5a1 |
%{_mandir}/man1/systemctl.*
|
|
Lennart Poettering |
5a28ec |
%{_datadir}/pkgconfig/systemd.pc
|
|
Lennart Poettering |
5a28ec |
%{_docdir}/systemd/LICENSE
|
|
Lennart Poettering |
4372ad |
|
|
Lennart Poettering |
cc49ef |
%files gtk
|
|
Lennart Poettering |
cc49ef |
%defattr(-,root,root,-)
|
|
Lennart Poettering |
cc49ef |
%{_bindir}/systemadm
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man1/systemadm.*
|
|
Lennart Poettering |
cc49ef |
|
|
Lennart Poettering |
cc49ef |
%files sysvinit
|
|
Lennart Poettering |
cc49ef |
%defattr(-,root,root,-)
|
|
Lennart Poettering |
cc49ef |
/sbin/init
|
|
Lennart Poettering |
cc49ef |
/sbin/reboot
|
|
Lennart Poettering |
cc49ef |
/sbin/halt
|
|
Lennart Poettering |
cc49ef |
/sbin/poweroff
|
|
Lennart Poettering |
cc49ef |
/sbin/shutdown
|
|
Lennart Poettering |
cc49ef |
/sbin/telinit
|
|
Lennart Poettering |
cc49ef |
/sbin/runlevel
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man1/init.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man8/halt.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man8/reboot.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man8/shutdown.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man8/poweroff.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man8/telinit.*
|
|
Lennart Poettering |
4372ad |
%{_mandir}/man8/runlevel.*
|
|
Lennart Poettering |
cc49ef |
|
|
Rahul Sundaram |
7a392d |
%changelog
|
|
Lennart Poettering |
25a5a1 |
* Sat Jul 24 2010 Lennart Poettering <lpoetter@redhat.com> - 4-1
|
|
Lennart Poettering |
25a5a1 |
- New upstream release, and make default
|
|
Lennart Poettering |
25a5a1 |
|
|
Lennart Poettering |
d348ae |
* Tue Jul 13 2010 Lennart Poettering <lennart@poettering.net> - 3-3
|
|
Lennart Poettering |
d348ae |
- Used wrong tarball
|
|
Lennart Poettering |
d348ae |
|
|
Lennart Poettering |
85eb5f |
* Tue Jul 13 2010 Lennart Poettering <lennart@poettering.net> - 3-2
|
|
Lennart Poettering |
85eb5f |
- Own /cgroup jointly with libcgroup, since we don't dpend on it anymore
|
|
Lennart Poettering |
85eb5f |
|
|
Lennart Poettering |
b93a36 |
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 3-1
|
|
Lennart Poettering |
b93a36 |
- New upstream release
|
|
Lennart Poettering |
b93a36 |
|
|
Lennart Poettering |
5a28ec |
* Fri Jul 9 2010 Lennart Poettering <lpoetter@redhat.com> - 2-0
|
|
Lennart Poettering |
5a28ec |
- New upstream release
|
|
Lennart Poettering |
5a28ec |
|
|
Lennart Poettering |
fdaca2 |
* Wed Jul 7 2010 Lennart Poettering <lpoetter@redhat.com> - 1-0
|
|
Lennart Poettering |
fdaca2 |
- First upstream release
|
|
Lennart Poettering |
fdaca2 |
|
|
Lennart Poettering |
caa30f |
* Tue Jun 29 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.7.20100629git4176e5
|
|
Lennart Poettering |
4372ad |
- New snapshot
|
|
Lennart Poettering |
4372ad |
- Split off -units package where other packages can depend on without pulling in the whole of systemd
|
|
Lennart Poettering |
4372ad |
|
|
Lennart Poettering |
1a8865 |
* Tue Jun 22 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.6.20100622gita3723b
|
|
Lennart Poettering |
1a8865 |
- Add missing libtool dependency.
|
|
Lennart Poettering |
1a8865 |
|
|
Lennart Poettering |
1e979b |
* Tue Jun 22 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.5.20100622gita3723b
|
|
Lennart Poettering |
4372ad |
- Update snapshot
|
|
Lennart Poettering |
1e979b |
|
|
Lennart Poettering |
1e979b |
* Mon Jun 14 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.4.20100614git393024
|
|
Rahul Sundaram |
ab31d0 |
- Pull the latest snapshot that fixes a segfault. Resolves rhbz#603231
|
|
Rahul Sundaram |
ab31d0 |
|
|
Rahul Sundaram |
7a392d |
* Thu Jun 11 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.3.20100610git2f198e
|
|
Rahul Sundaram |
7a392d |
- More minor fixes as per review
|
|
Rahul Sundaram |
7a392d |
|
|
Rahul Sundaram |
7a392d |
* Thu Jun 10 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.2.20100610git2f198e
|
|
Rahul Sundaram |
7a392d |
- Spec improvements from David Hollis
|
|
Rahul Sundaram |
7a392d |
|
|
Rahul Sundaram |
7a392d |
* Wed Jun 09 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.1.20090609git2f198e
|
|
Rahul Sundaram |
7a392d |
- Address review comments
|
|
Rahul Sundaram |
ab31d0 |
|
|
Rahul Sundaram |
7a392d |
* Tue Jun 01 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.0.git2010-06-02
|
|
Rahul Sundaram |
7a392d |
- Initial spec (adopted from Kay Sievers)
|