2006-12-14 18:06:00 +01:00
|
|
|
#
|
2011-01-24 16:24:23 +01:00
|
|
|
# spec file for package sysvinit
|
2006-12-14 18:06:00 +01:00
|
|
|
#
|
2018-05-28 10:29:42 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-14 18:06:00 +01:00
|
|
|
#
|
2008-08-06 01:58:24 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-14 18:06:00 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-03-13 19:06:50 +01:00
|
|
|
|
2006-12-14 18:06:00 +01:00
|
|
|
Name: sysvinit
|
2012-01-31 17:45:43 +01:00
|
|
|
%define KPVER 2.21
|
|
|
|
%define SCVER 1.16
|
2018-08-06 15:25:01 +02:00
|
|
|
%define SIVER 2.90
|
2012-01-31 17:45:43 +01:00
|
|
|
%define START 0.58
|
2011-10-01 05:04:13 +02:00
|
|
|
Version: %{SIVER}
|
2012-03-16 18:02:25 +01:00
|
|
|
Release: 0
|
2006-12-14 18:06:00 +01:00
|
|
|
Summary: SysV-Style init
|
2018-05-28 10:29:42 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-03-16 18:02:25 +01:00
|
|
|
Group: System/Base
|
2016-01-21 12:39:47 +01:00
|
|
|
BuildRequires: blog-devel
|
2006-12-14 18:06:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-06-07 12:34:09 +02:00
|
|
|
#!BuildIgnore: sysvinit-tools
|
2010-04-30 01:18:28 +02:00
|
|
|
Url: http://savannah.nongnu.org/projects/sysvinit/
|
2018-08-06 15:25:01 +02:00
|
|
|
Source: sysvinit-%{SIVER}.tar.xz
|
2016-01-21 12:39:47 +01:00
|
|
|
Source1: killproc-%{KPVER}.tar.bz2
|
|
|
|
Source2: startpar-%{START}.tar.bz2
|
2018-08-06 15:25:01 +02:00
|
|
|
Patch: %{name}-%{SIVER}.dif
|
2011-10-01 05:04:13 +02:00
|
|
|
Patch2: %{name}-2.88dsf-suse.patch
|
2018-08-06 15:25:01 +02:00
|
|
|
Patch9: %{name}-%{SIVER}-no-kill.patch
|
2011-10-01 05:04:13 +02:00
|
|
|
Patch30: killproc-%{KPVER}.dif
|
2014-05-27 14:12:43 +02:00
|
|
|
Patch31: killproc-2.18-open_flags.dif
|
2018-08-02 09:00:50 +02:00
|
|
|
Patch32: killproc-sysmacros.patch
|
2011-10-01 05:04:13 +02:00
|
|
|
Patch50: startpar-%{START}.dif
|
2018-08-02 09:00:50 +02:00
|
|
|
Patch51: startpar-sysmacros.patch
|
2006-12-14 18:06:00 +01:00
|
|
|
|
|
|
|
%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,
|
2010-02-15 18:11:18 +01:00
|
|
|
halt, init, powerd, reboot, runlevel, shutdown, and telinit for
|
|
|
|
more information.
|
2006-12-14 18:06:00 +01:00
|
|
|
|
2010-02-15 18:11:18 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Tools for basic booting
|
2012-03-16 18:02:25 +01:00
|
|
|
Group: System/Base
|
2016-01-21 12:39:47 +01:00
|
|
|
Requires: blog
|
2010-02-15 18:11:17 +01:00
|
|
|
|
2010-02-15 18:11:18 +01:00
|
|
|
%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.
|
2006-12-14 18:06:00 +01:00
|
|
|
|
|
|
|
%prep
|
2018-08-06 15:25:01 +02:00
|
|
|
%setup -n %{name}-%{SIVER} -q -b 1 -b 2
|
2010-04-25 18:42:19 +02:00
|
|
|
%patch2 -p0 -b .suse
|
2011-10-17 14:36:23 +02:00
|
|
|
%patch9 -p0 -b .no-kill
|
2007-06-05 16:40:38 +02:00
|
|
|
%patch
|
2011-09-02 17:44:27 +02:00
|
|
|
pushd doc
|
2016-01-21 12:39:47 +01:00
|
|
|
mkdir killproc
|
2006-12-14 18:06:00 +01:00
|
|
|
popd
|
|
|
|
pushd ../killproc-%{KPVER}
|
2010-04-25 18:42:19 +02:00
|
|
|
%patch30
|
2014-05-27 14:12:43 +02:00
|
|
|
%patch31 -p0 -b .dialog
|
2018-08-02 09:00:50 +02:00
|
|
|
%patch32 -p1
|
2018-08-06 15:25:01 +02:00
|
|
|
ln -t../%{name}-%{SIVER}/doc/killproc README
|
2006-12-14 18:06:00 +01:00
|
|
|
popd
|
|
|
|
pushd ../startpar-%{START}
|
2010-04-25 18:42:19 +02:00
|
|
|
%patch50
|
2018-08-02 09:00:50 +02:00
|
|
|
%patch51 -p1
|
2006-12-14 18:06:00 +01:00
|
|
|
popd
|
|
|
|
%_fixowner .
|
|
|
|
%_fixgroup .
|
|
|
|
/bin/chmod -Rf a+rX,g-w,o-w .
|
|
|
|
|
|
|
|
%build
|
2015-02-23 10:32:04 +01:00
|
|
|
RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -std=gnu89 -D_FILE_OFFSET_BITS=64 -pipe"
|
2011-10-04 11:22:53 +02:00
|
|
|
CC=%__cc
|
2010-04-25 18:42:19 +02:00
|
|
|
export RPM_OPT_FLAGS CC
|
|
|
|
make %{?_smp_mflags} WITH_SELINUX=yes DISTRO=SuSE
|
2006-12-14 18:06:00 +01:00
|
|
|
pushd ../killproc-%{KPVER}
|
2016-01-21 12:39:47 +01:00
|
|
|
make %{?_smp_mflags} CC="%__cc"
|
2006-12-14 18:06:00 +01:00
|
|
|
popd
|
|
|
|
pushd ../startpar-%{START}
|
2016-01-21 12:39:47 +01:00
|
|
|
make %{?_smp_mflags} CC="%__cc"
|
2006-12-14 18:06:00 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2016-01-13 19:16:58 +01:00
|
|
|
make install -C src MANPATH=%{_mandir} ROOT=%{buildroot} DISTRO=SuSE
|
2006-12-14 18:06:00 +01:00
|
|
|
pushd ../killproc-%{KPVER}
|
2014-01-14 12:07:01 +01:00
|
|
|
make install MANPATH=%{_mandir} INSTBINFLAGS="-m 0755" DESTDIR=%{buildroot}
|
2006-12-14 18:06:00 +01:00
|
|
|
popd
|
|
|
|
pushd ../startpar-%{START}
|
2014-01-14 12:07:01 +01:00
|
|
|
make install DESTDIR=%{buildroot}
|
2006-12-14 18:06:00 +01:00
|
|
|
popd
|
|
|
|
#
|
|
|
|
# Remove files not packed:
|
|
|
|
#
|
2016-01-21 12:39:47 +01:00
|
|
|
rm -vf %{buildroot}/usr/include/initreq.h
|
2010-02-15 18:11:18 +01:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr (-,root,root,755)
|
2018-05-28 10:29:42 +02:00
|
|
|
%license COPYING COPYRIGHT
|
|
|
|
%doc doc/Propaganda doc/Changelog doc/killproc
|
2006-12-14 18:06:00 +01:00
|
|
|
/bin/pidof
|
|
|
|
/bin/usleep
|
2007-06-18 17:19:15 +02:00
|
|
|
/bin/fsync
|
2010-04-25 18:42:19 +02:00
|
|
|
/sbin/fstab-decode
|
2006-12-14 18:06:00 +01:00
|
|
|
/sbin/checkproc
|
|
|
|
/sbin/pidofproc
|
|
|
|
/sbin/killproc
|
|
|
|
/sbin/killall5
|
|
|
|
/sbin/pidof
|
2010-02-15 18:11:17 +01:00
|
|
|
/sbin/startpar
|
2011-02-04 15:44:33 +01:00
|
|
|
/sbin/rvmtab
|
2010-02-15 18:11:17 +01:00
|
|
|
/sbin/vhangup
|
|
|
|
/sbin/mkill
|
2010-02-15 18:11:18 +01:00
|
|
|
/sbin/startproc
|
|
|
|
/sbin/start_daemon
|
2006-12-14 18:06:00 +01:00
|
|
|
%doc %{_mandir}/man1/usleep.1.gz
|
2007-06-18 17:19:15 +02:00
|
|
|
%doc %{_mandir}/man1/fsync.1.gz
|
2010-04-25 18:42:19 +02:00
|
|
|
%doc %{_mandir}/man8/fstab-decode.8.gz
|
2006-12-14 18:06:00 +01:00
|
|
|
%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
|
2010-02-15 18:11:17 +01:00
|
|
|
%doc %{_mandir}/man8/startpar.8.gz
|
2011-02-04 15:44:33 +01:00
|
|
|
%doc %{_mandir}/man8/rvmtab.8.gz
|
2008-12-05 15:50:32 +01:00
|
|
|
%doc %{_mandir}/man8/vhangup.8.gz
|
2008-12-06 14:47:45 +01:00
|
|
|
%doc %{_mandir}/man8/mkill.8.gz
|
2007-11-30 16:13:55 +01:00
|
|
|
|
2007-04-19 22:43:28 +02:00
|
|
|
%changelog
|