]> git.pld-linux.org Git - packages/SysVinit.git/blobdiff - SysVinit.spec
- removed update-db from %pre/%post
[packages/SysVinit.git] / SysVinit.spec
index e3a0ab7ed275c18bb1dba54ead88f4a687b0070c..c4779c578fc51737b7f9980cd8ce7c40aa19be39 100644 (file)
@@ -1,51 +1,54 @@
 Summary:       System V initialization program
 Summary(de):   System V-Intialisierungsprogramm
-Summary(fr):   Programme d'initialisation Sys V.
+Summary(fr):   Programme d'initialisation Sys V
 Summary(pl):   Program inicjalizuj±cy w Systemie V 
 Summary(tr):   System V baþlatma programý
 Name:          SysVinit
-Version:       2.77
-Release:       4
-Copyright:     GPL
+Version:       2.78
+Release:       10
+License:       GPL
 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-man.patch
-Patch2:                sysvinit-bequiet.patch
-Patch3:                sysvinit-sigpwr.patch
-Patch4:                sysvinit-md5-bigendian.patch
+Patch1:                sysvinit-bequiet.patch
+Patch2:                sysvinit-md5-bigendian.patch
+Patch3:                sysvinit-wtmpx.patch
+Patch4:                sysvinit-man.patch
+BuildRequires: glibc-static
+Prereq:                shadow-utils
+Prereq:                make
 Requires:      logrotate
-Buildroot:     /tmp/%{name}-%{version}-root
-
-%define                _sbindir        /sbin
+Requires:      mingetty
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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.
+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 
+SysVinit ist das erste Programm, das beim Systemstart vom Linux-Kernel
 gestartet wird. Es steuert das Starten, Ausführen und Beenden aller
 anderen Programme.
 
 %description -l fr
-SysVinit est le premier programme exécuté par le noyau de Linux lorsque le
-système démarre, il contrôle le lancement, l'exécution et l'arrêt de tous
-les autres programmes.
+SysVinit est le premier programme exécuté par le noyau de Linux
+lorsque le 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 
+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ý
-saðlar/denetler.
+programdýr. Diðer programlarýn baþlamalarýný, çalýþmalarýný ve
+sonlanmalarýný saðlar/denetler.
 
 %prep
 %setup -q -n sysvinit-%{version}
@@ -61,7 +64,7 @@ make -C src OPTIMIZE="$RPM_OPT_FLAGS"
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8}} \
+install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_mandir}/man{1,5,8}} \
        $RPM_BUILD_ROOT/{etc/{logrotate.d,sysconfig},var/log}
 
 make install -C src \
@@ -71,8 +74,8 @@ make install -C src \
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit
 
-ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT/etc
-ln -sf killall5 $RPM_BUILD_ROOT%{_sbindir}/pidof
+ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT%{_sysconfdir}
+ln -sf killall5 $RPM_BUILD_ROOT/sbin/pidof
 
 touch $RPM_BUILD_ROOT/var/log/{lastlog,wtmpx,btmpx}
 
@@ -88,11 +91,11 @@ echo .so last.1 > $RPM_BUILD_ROOT%{_mandir}/man1/lastb.1
 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
        doc/Propaganda debian/changelog doc/sysvinit-%{version}.lsm  
 
-%post
-touch /var/log/{lastlog,wtmpx,btmpx}
-chmod 0644 /var/log/lastlog /var/log/wtmpx
-chmod 0640 /var/log/btmpx
-chgrp utmp /var/log/wtmpx
+%pre
+groupadd -f -r -g 60 utmp
+
+%postun
+groupdel utmp
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -101,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz
 
-%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) /sbin/*
 %attr(755,root,root) %{_bindir}/last
 %attr(755,root,root) %{_bindir}/lastb
 %attr(755,root,root) %{_bindir}/mesg
@@ -109,8 +112,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(2555,root,tty) %{_bindir}/wall
 
 %attr(640,root,root) /etc/logrotate.d/*
-%ghost /etc/initrunlvl
-%ghost /var/log/lastlog
+%ghost %{_sysconfdir}/initrunlvl
+%attr(660,root,utmp) %ghost /var/log/lastlog
 %attr(660,root,utmp) %ghost /var/log/wtmpx
 %attr(640,root,root) %ghost /var/log/btmpx
 
This page took 0.072876 seconds and 4 git commands to generate.