Summary(pl): Program inicjalizuj±cy w Systemie V
Summary(tr): System V baþlatma programý
Name: SysVinit
-Version: 2.76
-Release: 6d
+Version: 2.78
+Release: 1
Copyright: GPL
-Group: Daemons
-Group(pl): Demony
-URL: ftp://ftp.cistron.nl/pub/people/miquels/software
-Source0: sysvinit-%{version}.tar.gz
-Source1: sysvinit-initscript
-Patch: sysvinit-optimize.patch
+Group: Base
+Group(pl): Podstawowe
+Source0: ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-%{version}.tar.gz
+Source1: sysvinit.logrotate
+Patch0: sysvinit-paths.patch
+Patch1: sysvinit-bequiet.patch
+Patch2: sysvinit-md5-bigendian.patch
+Patch3: sysvinit-wtmpx.patch
+Requires: logrotate
Buildroot: /tmp/%{name}-%{version}-root
-%description
-SysVinit is the first program started by the Linux kernel when the system
-boots, controlling the startup, running, and shutdown of all other
-programs.
+%define _sbindir /sbin
-%description -l pl
-SysVinit jest pierwszym programem uruchamianym przez j±dro, podczas
-startu systemu. Kontroluje start, pracê oraz zamykanie wszystkich
-innych programów.
+%description
+The SysVinit package contains a group of processes 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.
%description -l de
SysVinit ist das erste Programm, das beim Systemstart vom Linux-Kernel
système démarre, il contrôle le lancement, l'exécution et l'arrêt de tous
les autres programmes.
+%description -l pl
+SysVinit jest pierwszym programem uruchamianym przez j±dro, podczas
+startu systemu. Kontroluje start, pracê oraz zamykanie wszystkich
+innych programów.
+
%description -l tr
SysVinit, sistem açýlýrken Linux çekirdeði tarafýndan çalýþtýrýlan ilk
programdýr. Diðer programlarýn baþlamalarýný, çalýþmalarýný ve sonlanmalarýný
%prep
%setup -q -n sysvinit-%{version}
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
make -C src OPTIMIZE="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
-for I in sbin usr/bin usr/man/man{1,5,8} etc var/run dev; do
- install -d $RPM_BUILD_ROOT/$I
-done
-make -C src ROOT=$RPM_BUILD_ROOT BIN_OWNER=`id -u` BIN_GROUP=`id -g` install
-install %SOURCE1 $RPM_BUILD_ROOT/etc/initscript
-
-#ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT/etc
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8}} \
+ $RPM_BUILD_ROOT/{etc/{logrotate.d,sysconfig},var/log}
-mknod --mode=0600 $RPM_BUILD_ROOT/dev/initctl p
+make install -C src \
+ ROOT=$RPM_BUILD_ROOT \
+ BIN_OWNER=`id -u` \
+ BIN_GROUP=`id -g`
-ln -sf killall5 $RPM_BUILD_ROOT/sbin/pidof
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit
-# man pages cleaning & compressing ;)
+ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT/etc
+ln -sf killall5 $RPM_BUILD_ROOT%{_sbindir}/pidof
-rm -f $RPM_BUILD_ROOT/usr/man/man1/lastb.1
+touch $RPM_BUILD_ROOT/var/log/{lastlog,wtmpx,btmpx}
-echo .so last.1 > $RPM_BUILD_ROOT/usr/man/man1/lastb.1
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
-rm -f $RPM_BUILD_ROOT/usr/man/man8/poweroff.8
-rm -f $RPM_BUILD_ROOT/usr/man/man8/telinit.8
-rm -f $RPM_BUILD_ROOT/usr/man/man8/reboot.8
+echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
+echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
+echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
+echo .so last.1 > $RPM_BUILD_ROOT%{_mandir}/man1/lastb.1
-echo .so halt.8 > $RPM_BUILD_ROOT/usr/man/man8/reboot.8
-echo .so halt.8 > $RPM_BUILD_ROOT/usr/man/man8/telinit.8
-echo .so halt.8 > $RPM_BUILD_ROOT/usr/man/man8/poweroff.8
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
+ doc/Propaganda debian/changelog doc/sysvinit-%{version}.lsm
-gzip -9nf $RPM_BUILD_ROOT/usr/man/{man1/*,man5/*,man8/*} \
-doc/Propaganda debian/changelog doc/sysvinit-%{version}.lsm
+%post
+if [ -f /var/log/wtmp ]; then
+ mv -f /var/log/wtmp /var/log/wtmp.rpmsave
+fi
+touch /var/log/{lastlog,wtmpx,btmpx}
+chmod 0644 /var/log/lastlog /var/log/wtmpx
+chmod 0640 /var/log/btmpx
+chgrp utmp /var/log/wtmpx
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz
-
-%attr(755,root,root) /sbin/*
-
-#%ghost /etc/*
-
-%attr(755,root,root) /usr/bin/*
-%attr(600,root,root) /dev/initctl
-%attr(640,root,root) /etc/initscript
-%attr(644,root, man) /usr/man/man[158]/*
-
-%changelog
-* Tue Feb 9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
- [2.74-6d]
-- gzipping instead bzipping
-- cosmetic changes
-
-* Fri Jun 12 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.74-5d]
-- build against glibc-2.1,
-- added pl translation,
-- changed prmissions of binaries to 711,
-- removed a suid bit from wall,
-- moved %changelog at the end of spec.
-- added a Chris Evans's <chris@ferret.lmh.ox.ac.uk> patches.
-
-* Thu May 07 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to 2.74
-- fixed the package source url... (yeah, it was wrong !)
-
-* Wed Oct 1 1997 Cristian Gafton <gafton@redhat.com>
-- fixed the MD5 check in sulogin (128 hash bits encoded with base64 gives
- 22 bytes, not 24...). Fix in -md5.patch
-
-* Thu Sep 11 1997 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
-- /etc/initrunlvl gets linked to /tmp/init-root/var/run/initrunlvl which is
- just plain wrong..
-- /usr/bin/utmpdump was missing in the files section, although it was
- explicitly patched into PROGS.
-- added attr's to the files section.
-- various small fixes.
-
-* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
-- updated to 2.71
-- built against glibc 2.0.4
-
-* Fri Feb 07 1997 Michael K. Johnson <johnsonm@redhat.com>
-- Added sulogin.8 man page to file list.
+%doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz
+
+%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_bindir}/last
+%attr(755,root,root) %{_bindir}/lastb
+%attr(755,root,root) %{_bindir}/mesg
+%attr(755,root,root) %{_bindir}/utmpx-dump
+%attr(2555,root,tty) %{_bindir}/wall
+
+%attr(640,root,root) /etc/logrotate.d/*
+%ghost /etc/initrunlvl
+%ghost /var/log/lastlog
+%attr(660,root,utmp) %ghost /var/log/wtmpx
+%attr(640,root,root) %ghost /var/log/btmpx
+
+%{_mandir}/man*/*