# # spec file for package sysvinit # # Copyright (c) 2015 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/ # Name: sysvinit %define KPVER 2.21 %define SCVER 1.16 %define SIVER 2.88+ %define START 0.58 Version: %{SIVER} Release: 0 Summary: SysV-Style init License: GPL-2.0+ Group: System/Base BuildRoot: %{_tmppath}/%{name}-%{version}-build #!BuildIgnore: sysvinit-tools Url: http://savannah.nongnu.org/projects/sysvinit/ Source: sysvinit-%{SIVER}dsf.tar.bz2 Source2: killproc-%{KPVER}.tar.bz2 Source4: showconsole-%{SCVER}.tar.bz2 Source5: startpar-%{START}.tar.bz2 Patch: %{name}-%{version}dsf.dif Patch2: %{name}-2.88dsf-suse.patch Patch3: %{name}-2.88dsf-scripts2.patch Patch4: notify-pam-dead.patch Patch9: %{name}-2.88dsf-no-kill.patch Patch11: %{name}-%{version}dsf-dostat.patch # PATCH-FIX-UPSTREAM -- killall5: handle strange names of executables Patch12: %{name}-%{version}dsf-sulogin.diff Patch30: killproc-%{KPVER}.dif Patch31: killproc-2.18-open_flags.dif Patch40: showconsole-%{SCVER}.dif Patch41: showconsole-1.16-deadlock.diff Patch42: showconsole-1.16-glibc.dif Patch50: startpar-%{START}.dif %description System V style init programs by Miquel van Smoorenburg that control the booting and shutdown of your system. These support a number of system runlevels, each one associated with a specific set of utilities. For example, the normal system runlevel is 3, which starts a getty on virtual consoles tty1-tty6. Runlevel 5 starts xdm. Runlevel 0 shuts down the system. See the individual man pages for inittab, initscript, halt, init, powerd, reboot, runlevel, shutdown, and telinit for more information. %package tools Summary: Tools for basic booting Group: System/Base %description tools Helper tools from sysvinit that support booting, including but not exclusive to startpar, killproc and pidof. System V init specific programs are in the sysvinit package. %prep %setup -n %{name}-%{SIVER}dsf -q -b 2 -b 4 -b 5 %patch2 -p0 -b .suse %patch3 -p0 -b .scripts2 %patch4 -p0 -b .pam %patch9 -p0 -b .no-kill %patch11 -p0 -b .dostat %patch12 -p0 -b .ka5 %patch pushd doc mkdir killproc showconsole popd pushd ../killproc-%{KPVER} %patch30 %patch31 -p0 -b .dialog ln -t../%{name}-%{SIVER}dsf/doc/killproc README popd pushd ../showconsole-%{SCVER} %patch40 %patch41 -p1 %patch42 -p0 ln -t../%{name}-%{SIVER}dsf/doc/showconsole README popd pushd ../startpar-%{START} %patch50 popd %_fixowner . %_fixgroup . /bin/chmod -Rf a+rX,g-w,o-w . %build RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -std=gnu89 -D_FILE_OFFSET_BITS=64 -pipe" CC=%__cc export RPM_OPT_FLAGS CC make %{?_smp_mflags} WITH_SELINUX=yes DISTRO=SuSE pushd ../showconsole-%{SCVER} make %{?_smp_mflags} CC="%__cc" popd pushd ../killproc-%{KPVER} make %{?_smp_mflags} INC="-I../showconsole-%{SCVER} -L../showconsole-%{SCVER}" CC="%__cc" popd pushd ../startpar-%{START} make %{?_smp_mflags} INC="-I../showconsole-%{SCVER} -L../showconsole-%{SCVER}" CC="%__cc" popd %install make install -C src MANPATH=%{_mandir} ROOT=%{buildroot} DISTRO=SuSE pushd ../showconsole-%{SCVER} make install MANPATH=%{_mandir} INSTBINFLAGS="-m 0700" DESTDIR=%{buildroot} popd pushd ../killproc-%{KPVER} make install MANPATH=%{_mandir} INSTBINFLAGS="-m 0755" DESTDIR=%{buildroot} popd pushd ../startpar-%{START} make install DESTDIR=%{buildroot} popd # # Remove files not packed: # rm %{buildroot}/usr/include/{initreq.h,libblogger.h} rm %{buildroot}/usr/lib/libblogger.a chmod 444 %{buildroot}%{_mandir}/man?/* %files tools %defattr (-,root,root,755) %doc COPYING COPYRIGHT doc/Propaganda %doc doc/Changelog doc/killproc doc/showconsole %config /etc/pam.d/init /bin/pidof /bin/usleep /bin/fsync /sbin/blogger /sbin/blogd /sbin/fstab-decode /sbin/showconsole /sbin/setconsole /sbin/isserial /sbin/checkproc /sbin/pidofproc /sbin/killproc /sbin/killall5 /sbin/pidof /sbin/startpar /sbin/rvmtab /sbin/vhangup /sbin/mkill /sbin/startproc /sbin/start_daemon %doc %{_mandir}/man1/usleep.1.gz %doc %{_mandir}/man1/fsync.1.gz # /usr/include/libblogger.h # /usr/lib/libblogger.a %doc %{_mandir}/man8/blogger.8.gz %doc %{_mandir}/man8/blogd.8.gz %doc %{_mandir}/man8/fstab-decode.8.gz %doc %{_mandir}/man8/showconsole.8.gz %doc %{_mandir}/man8/setconsole.8.gz %doc %{_mandir}/man8/isserial.8.gz %doc %{_mandir}/man8/checkproc.8.gz %doc %{_mandir}/man8/pidofproc.8.gz %doc %{_mandir}/man8/killall5.8.gz %doc %{_mandir}/man8/killproc.8.gz %doc %{_mandir}/man8/pidof.8.gz %doc %{_mandir}/man8/startproc.8.gz %doc %{_mandir}/man8/start_daemon.8.gz %doc %{_mandir}/man8/startpar.8.gz %doc %{_mandir}/man8/rvmtab.8.gz %doc %{_mandir}/man8/vhangup.8.gz %doc %{_mandir}/man8/mkill.8.gz %changelog