Move units from fedora/* (except plymouth) to initscripts.
This commit is contained in:
parent
172ed57f7c
commit
81e89e7427
22
systemd.spec
22
systemd.spec
@ -2,7 +2,7 @@ Name: systemd
|
|||||||
Url: http://www.freedesktop.org/wiki/Software/systemd
|
Url: http://www.freedesktop.org/wiki/Software/systemd
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Version: 9
|
Version: 9
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Summary: A System and Session Manager
|
Summary: A System and Session Manager
|
||||||
@ -24,7 +24,7 @@ Requires: systemd-units = %{version}-%{release}
|
|||||||
Requires: dbus >= 1.3.2
|
Requires: dbus >= 1.3.2
|
||||||
Requires: udev >= 160
|
Requires: udev >= 160
|
||||||
Requires: libudev >= 160
|
Requires: libudev >= 160
|
||||||
Requires: initscripts
|
Requires: initscripts >= 9.18
|
||||||
Requires: selinux-policy >= 3.8.7
|
Requires: selinux-policy >= 3.8.7
|
||||||
Requires: kernel >= 2.6.35.2-9.fc14
|
Requires: kernel >= 2.6.35.2-9.fc14
|
||||||
Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
|
Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
|
||||||
@ -106,6 +106,13 @@ rm -r %{buildroot}/etc/systemd/system/*.target.wants
|
|||||||
# And the default symlink we generate automatically based on inittab
|
# And the default symlink we generate automatically based on inittab
|
||||||
rm %{buildroot}/etc/systemd/system/default.target
|
rm %{buildroot}/etc/systemd/system/default.target
|
||||||
|
|
||||||
|
# These are now in the initscripts package
|
||||||
|
rm -f %{buildroot}/lib/systemd/system/{halt,killall,poweroff,prefdm,rc-local,reboot,single,sysinit}.service
|
||||||
|
rm -f %{buildroot}/%{_sysconfdir}/rc.d/init.d/reboot
|
||||||
|
rm -f %{buildroot}/%{_sysconfdir}/systemd/system/ctrl-alt-del.target \
|
||||||
|
%{buildroot}/%{_sysconfdir}/systemd/system/display-manager.service \
|
||||||
|
%{buildroot}/%{_sysconfdir}/systemd/system/kbrequest.target
|
||||||
|
|
||||||
sed -i -e 's/^#MountAuto=yes$/MountAuto=no/' \
|
sed -i -e 's/^#MountAuto=yes$/MountAuto=no/' \
|
||||||
-e 's/^#SwapAuto=yes$/SwapAuto=no/' %{buildroot}/etc/systemd/system.conf
|
-e 's/^#SwapAuto=yes$/SwapAuto=no/' %{buildroot}/etc/systemd/system.conf
|
||||||
|
|
||||||
@ -139,9 +146,7 @@ if [ $1 -eq 1 ] ; then
|
|||||||
# Enable the services we install by default.
|
# Enable the services we install by default.
|
||||||
/bin/systemctl enable \
|
/bin/systemctl enable \
|
||||||
getty@.service \
|
getty@.service \
|
||||||
prefdm.service \
|
|
||||||
getty.target \
|
getty.target \
|
||||||
rc-local.service \
|
|
||||||
remote-fs.target > /dev/null 2>&1 || :
|
remote-fs.target > /dev/null 2>&1 || :
|
||||||
|
|
||||||
# Temporary fix for broken upgrades between older F14 rawhide to newer F14 rawhide. Should be removed eventually.
|
# Temporary fix for broken upgrades between older F14 rawhide to newer F14 rawhide. Should be removed eventually.
|
||||||
@ -154,9 +159,7 @@ fi
|
|||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
/bin/systemctl disable \
|
/bin/systemctl disable \
|
||||||
getty@.service \
|
getty@.service \
|
||||||
prefdm.service \
|
|
||||||
getty.target \
|
getty.target \
|
||||||
rc-local.service \
|
|
||||||
remote-fs.target > /dev/null 2>&1 || :
|
remote-fs.target > /dev/null 2>&1 || :
|
||||||
|
|
||||||
/bin/rm -f /etc/systemd/system/default.target > /dev/null 2>&1 || :
|
/bin/rm -f /etc/systemd/system/default.target > /dev/null 2>&1 || :
|
||||||
@ -170,7 +173,6 @@ fi
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
|
||||||
%{_sysconfdir}/rc.d/init.d/reboot
|
|
||||||
%dir %{_sysconfdir}/systemd/session
|
%dir %{_sysconfdir}/systemd/session
|
||||||
%{_sysconfdir}/xdg/systemd
|
%{_sysconfdir}/xdg/systemd
|
||||||
/bin/systemd
|
/bin/systemd
|
||||||
@ -198,9 +200,6 @@ fi
|
|||||||
%dir %{_sysconfdir}/systemd
|
%dir %{_sysconfdir}/systemd
|
||||||
%dir %{_sysconfdir}/systemd/system
|
%dir %{_sysconfdir}/systemd/system
|
||||||
%config(noreplace) %{_sysconfdir}/systemd/system.conf
|
%config(noreplace) %{_sysconfdir}/systemd/system.conf
|
||||||
%config(noreplace) %{_sysconfdir}/systemd/system/ctrl-alt-del.target
|
|
||||||
%config(noreplace) %{_sysconfdir}/systemd/system/display-manager.service
|
|
||||||
%config(noreplace) %{_sysconfdir}/systemd/system/kbrequest.target
|
|
||||||
%dir /lib/systemd
|
%dir /lib/systemd
|
||||||
/lib/systemd/system
|
/lib/systemd/system
|
||||||
/bin/systemctl
|
/bin/systemctl
|
||||||
@ -238,6 +237,9 @@ fi
|
|||||||
%{_mandir}/man8/runlevel.*
|
%{_mandir}/man8/runlevel.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 3 2010 Bill Nottingham <notting@redhat.com> - 9-3
|
||||||
|
- move fedora-specific units to initscripts; require newer version thereof
|
||||||
|
|
||||||
* Fri Sep 3 2010 Lennart Poettering <lpoetter@redhat.com> - 9-2
|
* Fri Sep 3 2010 Lennart Poettering <lpoetter@redhat.com> - 9-2
|
||||||
- Add missing tarball
|
- Add missing tarball
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user