SHA256
1
0
forked from pool/systemd

Accepting request 43879 from Base:System

Copy from Base:System/systemd based on submit request 43879 from user kay_sievers

OBS-URL: https://build.opensuse.org/request/show/43879
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=1
This commit is contained in:
OBS User autobuild 2010-07-30 11:59:59 +00:00 committed by Git OBS Bridge
commit 0033e16e0d
6 changed files with 455 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
systemd-4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d569a0624d7ce409cd76ace49d2d853f9e030674e24ea585427b9079f10ba5ba
size 637332

4
systemd-rpmlintrc Normal file
View File

@ -0,0 +1,4 @@
addFilter(".*dangling-symlink /sbin/(halt|init|poweroff|telinit|shutdown|runlevel|reboot).*")
addFilter(".*devel-file-in-non-devel-package.*systemd.pc.*")
addFilter(".*files-duplicate .*/reboot.8.*")
addFilter(".*files-duplicate .*/sd_is_socket.3.*")

225
systemd.changes Normal file
View File

@ -0,0 +1,225 @@
-------------------------------------------------------------------
Sat Jul 24 11:16:52 CEST 2010 - kay.sievers@novell.com
- at install, read old inittab for the defaul target/runlevel
- disable services on package uninstall
-------------------------------------------------------------------
Sat Jul 24 09:50:05 CEST 2010 - kay.sievers@novell.com
- version 4
- merge systemd-install into systemctl
-------------------------------------------------------------------
Fri Jul 23 10:39:19 CEST 2010 - kay.sievers@novell.com
- create config files in /etc in %post
- mark files in /etc as config
- remove nodev from /dev/pts
- add selinux support
-------------------------------------------------------------------
Thu Jul 22 10:51:16 CEST 2010 - kay.sievers@novell.com
- version 4 (pre)
- require newer vala
- add [Install] section to getty.target and remote-fs.target
- re-enable post-build check
-------------------------------------------------------------------
Wed Jul 21 08:51:22 CEST 2010 - kay.sievers@novell.com
- do not add sysv services that are not enabled in /etc/rcN.d/
- allow symlinking unit files to /dev/null
- remove only pam sessions we ourselves created
- unit files in /etc/ always take precedence, even over link targets
-------------------------------------------------------------------
Tue Jul 20 21:20:43 CEST 2010 - kay.sievers@novell.com
- fix access mode verification of FIFOs
-------------------------------------------------------------------
Sun Jul 18 11:31:06 CEST 2010 - kay.sievers@novell.com
- fix default mode of /var/run and /var/lock
- force /var/run and /var/lock to be on tmpfs
-------------------------------------------------------------------
Wed Jul 14 17:49:57 CEST 2010 - kay.sievers@novell.com
- always enable udev and dbus until we can require systemd from
packages providing systemd service files
-------------------------------------------------------------------
Wed Jul 14 01:10:27 CEST 2010 - kay.sievers@novell.com
- drop systemd-units.rpm
-------------------------------------------------------------------
Wed Jul 14 00:07:24 CEST 2010 - kay.sievers@novell.com
- version 3
- treat non-existing cgroups like empty ones, to deal with races
- replace --running-as= by --session and --system
- always allow stopping of units that failed to load
-------------------------------------------------------------------
Tue Jul 13 06:22:56 CEST 2010 - kay.sievers@novell.com
- update
-------------------------------------------------------------------
Mon Jul 12 18:23:41 CEST 2010 - kay.sievers@novell.com
- drop libcgroup
-------------------------------------------------------------------
Mon Jul 12 10:04:26 CEST 2010 - kay.sievers@novell.com
- trim cgroups for services that are "active" but "exited"
- drop /bin/init hack and require now fixed mkinitrd
-------------------------------------------------------------------
Sun Jul 11 23:38:45 CEST 2010 - kay.sievers@novell.com
- fix reboot issue
- fix abstract namespace name handling (needs udev update)
- prefer private D-Bus socket wherever possible
-------------------------------------------------------------------
Sun Jul 11 00:50:14 CEST 2010 - kay.sievers@novell.com
- D-Bus 1.3.2 support
- use COLD_BOOT=1 on reboot to skip sysv boot.d/ handling
-------------------------------------------------------------------
Fri Jul 9 10:05:00 CEST 2010 - kay.sievers@novell.com
- fix typo in spec file
-------------------------------------------------------------------
Fri Jul 9 09:09:33 CEST 2010 - kay.sievers@novell.com
- provide /bin/init to be found by 'too simple' mkinitrd, and work
around mindless relinking of relative links in the buildsystem
- add rpmlintrc to silent warnings about intentional behavior
-------------------------------------------------------------------
Fri Jul 9 06:18:52 CEST 2010 - kay.sievers@novell.com
- version 2
-------------------------------------------------------------------
Thu Jul 8 23:48:09 CEST 2010 - kay.sievers@novell.com
- fix 'reboot -w' to skip the actual reboot
- fix segfault in D-Bus code
- use unique instead of multiple keys in config file
- support continuation lines in config files
- support multiple commands in a single key in config files
- adapt log level of some messages
-------------------------------------------------------------------
Wed Jul 7 06:20:00 CEST 2010 - kay.sievers@novell.com
- version 1
- default log level to INFO
- show welcome message
-------------------------------------------------------------------
Tue Jul 6 08:55:03 CEST 2010 - kay.sievers@novell.com
- add systemd-install --start option
- add more documentation
-------------------------------------------------------------------
Mon Jul 5 16:23:28 CEST 2010 - kay.sievers@novell.com
- new snapshot with extended D-Bus support
-------------------------------------------------------------------
Sun Jul 4 21:31:49 CEST 2010 - kay.sievers@novell.com
- new snapshot with default unit dependency handling
-------------------------------------------------------------------
Sat Jul 3 16:54:19 CEST 2010 - kay.sievers@novell.com
- new snapshot
-------------------------------------------------------------------
Fri Jul 2 10:04:26 CEST 2010 - kay.sievers@novell.com
- add more documentation
-------------------------------------------------------------------
Thu Jul 1 17:40:28 CEST 2010 - kay.sievers@novell.com
- new snapshot
-------------------------------------------------------------------
Fri Jun 25 00:34:03 CEST 2010 - kay.sievers@novell.com
- split off systemd-units.rpm which can be pulled-in by other
packages without further dependencies
-------------------------------------------------------------------
Thu Jun 24 09:40:06 CEST 2010 - kay.sievers@novell.com
- add more documentation
-------------------------------------------------------------------
Tue Jun 22 22:13:02 CEST 2010 - kay.sievers@novell.com
- more man pages and documentation
-------------------------------------------------------------------
Tue Jun 22 18:14:05 CEST 2010 - kay.sievers@novell.com
- conflict with upstart
- include all installed doc files
-------------------------------------------------------------------
Tue Jun 22 09:33:44 CEST 2010 - kay.sievers@novell.com
- provide pam module
-------------------------------------------------------------------
Mon Jun 21 10:21:20 CEST 2010 - kay.sievers@novell.com
- use private D-Bus connection
- properly handle replacing a running upstart
-------------------------------------------------------------------
Fri Jun 18 09:37:46 CEST 2010 - kay.sievers@novell.com
- implement wall message in halt/reboot/...
- speak /dev/initctl to old /sbin/init after installing
-------------------------------------------------------------------
Thu Jun 17 23:54:59 CEST 2010 - kay.sievers@novell.com
- drop no longer needed -fno-strict-aliasing
- add README and examples
-------------------------------------------------------------------
Thu Jun 17 23:23:42 CEST 2010 - kay.sievers@novell.com
- enable pam and libwrap
-------------------------------------------------------------------
Thu Jun 17 23:10:57 CEST 2010 - kay.sievers@novell.com
- provide systemd-sysvinit.rpm with /sbin/init and friends
-------------------------------------------------------------------
Thu Jun 17 11:06:14 CEST 2010 - kay.sievers@novell.com
- libwrap / pam support
-------------------------------------------------------------------
Wed Jun 16 09:46:15 CEST 2010 - kay.sievers@novell.com
- initial packaging of experimental version 0

199
systemd.spec Normal file
View File

@ -0,0 +1,199 @@
#
# spec file for package systemd (Version 4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd
Version: 4
Release: 1
License: GPLv2+
Group: System/Base
Summary: A System and Session Manager
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libudev-devel udev
BuildRequires: libcap-devel
BuildRequires: tcpd-devel
BuildRequires: pam-devel
BuildRequires: pkg-config
BuildRequires: dbus-1-glib-devel gtk2-devel
BuildRequires: libselinux-devel libsepol-devel
Requires: udev >= 160
Requires: dbus-1 >= 1.3.2
Conflicts: mkinitrd < 2.6.0-5
Source0: http://www.freedesktop.org/software/systemd/releases/%{name}-%{version}.tar.bz2
Source1: systemd-rpmlintrc
%description
Systemd is a system and session manager, compatible with SysV and LSB
init scripts for Linux. systemd provides aggressive parallelization
capabilities, uses socket and D-Bus activation for starting services,
offers on-demand starting of daemons, keeps track of processes using
Linux cgroups, supports snapshotting and restoring of the system state,
maintains mount and automount points and implements an elaborate
transactional dependency-based service control logic. It can work as a
drop-in replacement for sysvinit.
%package gtk
License: GPLv2+
Group: System/Base
Summary: Graphical front-end for systemd
Requires: %{name} = %{version}-%{release}
%description gtk
Graphical front-end for systemd system and session manager.
%package sysvinit
License: GPLv2+
Group: System/Base
Summary: System V init tools
Requires: %{name} = %{version}-%{release}
Provides: sbin_init
Conflicts: sysvinit
Conflicts: upstart
%description sysvinit
Drop-in replacement of System V init tools.
%prep
%setup -q
%build
# prevent pre-generated and distributed files from re-building
find . -name "*.[1-8]" -exec touch '{}' \;
touch src/systemadm.c
export V=1
%configure \
--with-distro=suse \
--docdir=%{_docdir}/systemd \
--with-rootdir= \
CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
%makeinstall
find $RPM_BUILD_ROOT -type f -name '*.la' -exec rm -f {} ';'
mkdir -p $RPM_BUILD_ROOT/sbin
ln -s ../bin/systemd $RPM_BUILD_ROOT/sbin/init
ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
rm -rf $RPM_BUILD_ROOT/etc/systemd/system/*.target.wants
rm -f $RPM_BUILD_ROOT/etc/systemd/system/default.target
%pre
# kernel changes are pending to move this to /sys/fs/cgroup
mkdir -p -m 0755 /cgroup || :
%post
# Create default config in /etc at first install.
# Later package updates should not overwrite these settings.
if [ "$1" -eq 1 ]; then
# Try to read default runlevel from the old inittab if it exists
runlevel=$(awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
if [ -z "$runlevel" ] ; then
target="/lib/systemd/system/graphical.target"
else
target="/etc/systemd/system/runlevel$runlevel.target"
fi
/bin/ln -sf "$target" /etc/systemd/system/default.target 2>&1 || :
# Enable the services we install by default.
/bin/systemctl enable getty@.service >/dev/null 2>&1 || :
/bin/systemctl enable remote-fs.target >/dev/null 2>&1 || :
/bin/systemctl enable var-run.mount >/dev/null 2>&1 || :
/bin/systemctl enable var-lock.mount >/dev/null 2>&1 || :
fi
# Make sure we always enable these basic services, in case something went
# wrong at the time these packages got installed. Usual systems can not
# properly bootup without these services.
/bin/systemctl enable udev.service >/dev/null 2>&1 || :
/bin/systemctl enable dbus.service >/dev/null 2>&1 || :
%preun
if [ $1 -eq 0 ]; then
/bin/systemctl disable getty@.service >/dev/null 2>&1 || :
/bin/systemctl disable remote-fs.target >/dev/null 2>&1 || :
/bin/systemctl disable var-run.mount >/dev/null 2>&1 || :
/bin/systemctl disable var-lock.mount >/dev/null 2>&1 || :
rm -f /etc/systemd/system/default.target 2>&1 || :
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/bin/systemd
/bin/systemctl
/bin/systemd-notify
%{_bindir}/systemd-cgls
/lib/systemd/systemd-*
/%{_lib}/security/pam_systemd.so
%dir %{_sysconfdir}/systemd/system
%dir %{_sysconfdir}/systemd/session
%dir %{_sysconfdir}/xdg/systemd/session
%config(noreplace) %{_sysconfdir}/systemd/system.conf
%config(noreplace) %{_sysconfdir}/systemd/system/ctrl-alt-del.target
%config(noreplace) %{_sysconfdir}/systemd/system/kbrequest.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel2.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel3.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel4.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel5.target
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
%{_datadir}/systemd
%{_datadir}/pkgconfig/systemd.pc
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%{_mandir}/man5/*.5*
%{_mandir}/man7/*.7*
%{_mandir}/man8/*.8*
%{_docdir}/systemd
/lib/udev/rules.d/*.rules
%dir /lib/systemd
/lib/systemd/system
%dir %{_sysconfdir}/systemd
%files gtk
%defattr(-,root,root,-)
%{_bindir}/systemadm
%{_mandir}/man1/systemadm.1*
%files sysvinit
%defattr(-,root,root,-)
/sbin/init
/sbin/reboot
/sbin/halt
/sbin/shutdown
/sbin/poweroff
/sbin/telinit
/sbin/runlevel
%{_mandir}/man1/init.1*
%{_mandir}/man8/halt.8*
%{_mandir}/man8/reboot.8*
%{_mandir}/man8/shutdown.8*
%{_mandir}/man8/poweroff.8*
%{_mandir}/man8/telinit.8*
%{_mandir}/man8/runlevel.8*
%changelog