Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37568778
en ru br
Репозитории ALT
5.1: 2.86-alt2
4.1: 2.86-alt2
4.0: 2.86-alt1
3.0: 2.85-alt8
www.altlinux.org/Changes

Группа :: Система/Настройка/Загрузка и инициализация
Пакет: SysVinit

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: SysVinit
Version: 2.86
Release: alt2

Summary: Programs which control basic system processes
License: GPL
Group: System/Configuration/Boot and Init
Url: ftp://ftp.cistron.nl/pub/people/miquels/sysvinit
Packager: Dmitry V. Levin <ldv at altlinux.org>

# %url/sysvinit-%version.tar.gz

Source: sysvinit-%version.tar

# Debian

Patch10: sysvinit-2.86-deb-doc-manuals.patch
Patch11: sysvinit-2.86-deb-doc-mountpoint.patch
Patch13: sysvinit-2.86-deb-doc-telinit.patch
Patch14: sysvinit-2.86-deb-doc-fsf-addr.patch
Patch15: sysvinit-2.86-deb-doc-pidof.patch
Patch16: sysvinit-2.86-deb-doc-runlevel.patch
Patch20: sysvinit-2.86-deb-pidof.patch
Patch25: sysvinit-2.86-deb-last-sanify.patch
Patch50: sysvinit-2.86-deb-bootlogd-exitcode.patch
Patch51: sysvinit-2.86-deb-bootlogd-syncalot.patch
Patch52: sysvinit-2.86-deb-bootlogd-createlogfile.patch
Patch60: sysvinit-2.86-deb-init-race.patch
Patch61: sysvinit-2.86-deb-init-msg.patch
Patch63: sysvinit-2.86-deb-init-longer-procname.patch
Patch64: sysvinit-2.86-deb-init-set-PATH.patch
Patch65: sysvinit-2.86-deb-init-u-in-06.patch
Patch66: sysvinit-2.86-deb-init-emerg-tty.patch
Patch67: sysvinit-2.86-deb-init-hddown.patch
Patch70: sysvinit-2.86-deb-wall-ttyname.patch
Patch71: sysvinit-2.86-deb-wall-hostname.patch
Patch80: sysvinit-2.86-deb-killall-sched.patch
Patch81: sysvinit-2.86-deb-killall-avoid-init.patch
Patch82: sysvinit-2.86-deb-killall-retval.patch
Patch90: sysvinit-2.86-deb-shutdown-H.patch

# Owl/ALT

Patch101: sysvinit-2.86-alt-progname-umask.patch
Patch102: sysvinit-2.86-alt-mount.patch
Patch103: sysvinit-2.86-rh-alt-owl-pidof.patch
Patch104: sysvinit-2.86-owl-initcmd_setenv.patch
Patch105: sysvinit-2.86-owl-warnings.patch
Patch106: sysvinit-2.86-alt-fixes.patch
Patch107: sysvinit-2.86-alt-signedness.patch
Patch108: sysvinit-2.86-alt-makefile.patch
Patch109: sysvinit-2.86-alt-doc.patch
Patch110: sysvinit-2.86-alt-64bit.patch
Patch111: sysvinit-2.86-alt-wur.patch

# SuSE

Patch201: sysvinit-2.86-suse-SETSIG.patch
Patch202: sysvinit-2.86-suse-last-F.patch

PreReq: coreutils
Requires: /sbin/sulogin
Requires: sysvinit-utils = %version-%release
Conflicts: glibc < 6:2.2.1-ipl0.2mdk,
BuildConflicts: openssl-devel < 0.9.6a

%description
This package contains a group of programs that control the
very basic functions of your system.  SysVinit includes the init
program, the first program started by the Linux kernel when the
system boots.  init then controls the startup, running and shutdown
of all other programs.

%package -n sysvinit-utils
Summary: Commonly used utilites from SysVinit
Group: System/Base

%description -n sysvinit-utils
The package contains commonly used non-boot-specific utilities from SysVinit:
bootlogd, killall5, last, lastb, mesg, mountpoint, pidof, pidof, wall.

%prep
%setup -q -n sysvinit-%version

# Debian

%patch10 -p1
%patch11 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch20 -p1
%patch25 -p1
%patch50 -p1
%patch51 -p1
%patch52 -p1
%patch60 -p1
%patch61 -p1
%patch63 -p1
%patch64 -p1
%patch65 -p1
%patch66 -p1
%patch67 -p1
%patch70 -p1
%patch71 -p1
%patch80 -p1
%patch81 -p1
%patch82 -p1
%patch90 -p1

# Owl/ALT

%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
%patch109 -p1
%patch110 -p1
%patch111 -p1

# rest

%patch201 -p1
%patch202 -p1

pushd src
find -type f -print0 |
xargs -r0 grep -FZl '"paths.h"' -- |
xargs -r0 sed -i 's/"paths\.h"/"paths_init.h"/g' --
mv paths.h paths_init.h
echo '#include <paths.h>' >>paths_init.h
popd

find -type f -name \*.orig -delete

%build
%make_build -C src \
DISTRO=ALT \
CFLAGS="%optflags -fomit-frame-pointer -D_GNU_SOURCE" \
LDFLAGS= \
LCRYPT= \
#
%install
mkdir -p %buildroot{/{s,}bin,/dev,%_bindir,%_includedir,%_mandir/man{1,3,5,8}}
%make_install install -C src \
ROOT=%buildroot \
DISTRO=ALT \
#

install -pm755 src/bootlogd %buildroot/sbin/

mkfifo -m600 %buildroot/dev/initctl

%pre
# This is tricky.  We don't want to let RPM remove the only link to the
# old init as that would actually leave it pending for delete on process
# termination.  That delete is a filesystem write operation meaning that
# the root filesystem would need to stay mounted read/write.  But we
# absolutely want to be able to remount it read-only during shutdown,
# possibly with the old init still alive!
if [ -e /sbin/init -a ! -e /sbin/.init-working ]; then
ln /sbin/init /sbin/.init-working
fi

%post
# If /proc is mounted and /sbin/.init-working is running, tell init to
# invoke the replaced version of itself.
if pidof /sbin/.init-working >/dev/null 2>&1; then
/sbin/telinit u
sleep 1
fi

# If /proc is not mounted or /sbin/.init-working is no longer running,

# remove it.
if ! pidof /sbin/.init-working >/dev/null 2>&1; then
rm -f /sbin/.init-working
fi

%files
%attr(700,root,root) /sbin/init
%attr(700,root,root) /sbin/shutdown
/sbin/halt
/sbin/poweroff
/sbin/reboot
/sbin/runlevel
/sbin/telinit
%_man5dir/initscript.*
%_man5dir/inittab.*
%_man8dir/halt.*
%_man8dir/init.*
%_man8dir/poweroff.*
%_man8dir/reboot.*
%_man8dir/runlevel.*
%_man8dir/shutdown.*
%_man8dir/telinit.*
%_includedir/*
%ghost /dev/initctl

%files -n sysvinit-utils
%attr(700,root,root) /sbin/bootlogd
/sbin/killall5
/sbin/pidof
/bin/mountpoint
/bin/pidof
%_bindir/last
%_bindir/lastb
%_bindir/mesg
%attr(2711,root,tty) %_bindir/wall
%_man1dir/last.*
%_man1dir/lastb.*
%_man1dir/mesg.*
%_man1dir/mountpoint.*
%_man1dir/wall.*
%_man8dir/bootlogd.*
%_man8dir/killall5.*
%_man8dir/pidof.*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin