]> git.pld-linux.org Git - packages/SysVinit.git/blobdiff - SysVinit.spec
- release 13
[packages/SysVinit.git] / SysVinit.spec
index 73a714a6ccc0c214d9b88983a26b46de51127410..d691b53d643ba23ff3c1751708abeae2ab96daba 100644 (file)
@@ -1,75 +1,90 @@
 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.76
-Release:       14
-Copyright:     GPL
+Version:       2.78
+Release:       13
+License:       GPL
 Group:         Base
 Group(pl):     Podstawowe
 Source0:       ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-%{version}.tar.gz
-Source1:       sysvinit-initscript
-Source2:       sysvinit.logrotate
+Source1:       sysvinit.logrotate
 Patch0:                sysvinit-paths.patch
-Patch1:                sysvinit-man.patch
-Patch2:                sysvinit-bequiet.patch
+Patch1:                sysvinit-bequiet.patch
+Patch2:                sysvinit-md5-bigendian.patch
+Patch3:                sysvinit-wtmpx.patch
+Patch4:                sysvinit-man.patch
+Patch5:                sysvinit-sigint.patch
+Patch6:                sysvinit-ai64.patch
+Patch7:                sysvinit-halt.patch
+Patch8:                sysvinit-blowfish.patch
+BuildRequires: glibc-static
+Prereq:                shadow-utils
+Prereq:                make
+Prereq:                /bin/awk
 Requires:      logrotate
-Buildroot:     /tmp/%{name}-%{version}-root
-
-%define                _sbindir        /sbin
+Requires:      mingetty
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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.
-
-%description -l pl
-SysVinit jest pierwszym programem uruchamianym przez j±dro, podczas 
-startu systemu. Kontroluje start, pracê oraz zamykanie wszystkich
-innych programów.
+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
+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}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 %build
-make -C src OPTIMIZE="$RPM_OPT_FLAGS"
+%{__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 \
+%{__make} install -C src \
        ROOT=$RPM_BUILD_ROOT \
        BIN_OWNER=`id -u` \
        BIN_GROUP=`id -g`
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/initscript
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit
+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}
 
@@ -85,25 +100,30 @@ 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 /var/log/wtmpx
-chmod 0640 /var/log/lastlog /var/log/wtmpx
+%pre
+groupadd -f -r -g 22 utmp
+
+%postun
+groupdel utmp
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz  
+%doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz
 
-%attr(755,root,root) %{_sbindir}/*
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) /sbin/*
+%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(644,root,root) %config /etc/sysconfig/initscript
 %attr(640,root,root) /etc/logrotate.d/*
-%ghost /etc/initrunlvl
-%attr(640,root,root) %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
-%ghost /var/log/wtmpx
 
-%{_mandir}/man[158]/*
+%{_mandir}/man*/*
This page took 0.036024 seconds and 4 git commands to generate.