]> git.pld-linux.org Git - packages/SysVinit.git/blob - SysVinit.spec
- added man patch.
[packages/SysVinit.git] / SysVinit.spec
1 Summary:        System V initialization program
2 Summary(de):    System V-Intialisierungsprogramm
3 Summary(fr):    Programme d'initialisation Sys V
4 Summary(pl):    Program inicjalizuj±cy w Systemie V 
5 Summary(tr):    System V baþlatma programý
6 Name:           SysVinit
7 Version:        2.78
8 Release:        6
9 License:        GPL
10 Group:          Base
11 Group(pl):      Podstawowe
12 Source0:        ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-%{version}.tar.gz
13 Source1:        sysvinit.logrotate
14 Patch0:         sysvinit-paths.patch
15 Patch1:         sysvinit-bequiet.patch
16 Patch2:         sysvinit-md5-bigendian.patch
17 Patch3:         sysvinit-wtmpx.patch
18 Patch4:         sysvinit-man.patch
19 Prereq:         fileutils
20 Prereq:         shadow
21 Requires:       logrotate
22 Requires:       mingetty
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _sbindir        /sbin
26
27 %description
28 The SysVinit package contains a group of processes that control the very
29 basic functions of your system. SysVinit includes the init program, the
30 first program started by the Linux kernel when the system boots. Init then
31 controls the startup, running and shutdown of all other programs.
32
33 %description -l de
34 SysVinit ist das erste Programm, das beim Systemstart vom Linux-Kernel
35 gestartet wird. Es steuert das Starten, Ausführen und Beenden aller anderen
36 Programme.
37
38 %description -l fr
39 SysVinit est le premier programme exécuté par le noyau de Linux lorsque le
40 système démarre, il contrôle le lancement, l'exécution et l'arrêt de tous
41 les autres programmes.
42
43 %description -l pl
44 SysVinit jest pierwszym programem uruchamianym przez j±dro, podczas startu
45 systemu. Kontroluje start, pracê oraz zamykanie wszystkich innych
46 programów.
47
48 %description -l tr
49 SysVinit, sistem açýlýrken Linux çekirdeði tarafýndan çalýþtýrýlan ilk
50 programdýr. Diðer programlarýn baþlamalarýný, çalýþmalarýný ve
51 sonlanmalarýný saðlar/denetler.
52
53 %prep
54 %setup -q -n sysvinit-%{version}
55 %patch0 -p1
56 %patch1 -p1
57 %patch2 -p1
58 %patch3 -p1
59 %patch4 -p1
60
61 %build
62 make -C src OPTIMIZE="$RPM_OPT_FLAGS"
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8}} \
68         $RPM_BUILD_ROOT/{etc/{logrotate.d,sysconfig},var/log}
69
70 make install -C src \
71         ROOT=$RPM_BUILD_ROOT \
72         BIN_OWNER=`id -u` \
73         BIN_GROUP=`id -g`
74
75 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit
76
77 ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT/etc
78 ln -sf killall5 $RPM_BUILD_ROOT%{_sbindir}/pidof
79
80 touch $RPM_BUILD_ROOT/var/log/{lastlog,wtmpx,btmpx}
81
82 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
83 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
84 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
85
86 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
87 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
88 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
89 echo .so last.1 > $RPM_BUILD_ROOT%{_mandir}/man1/lastb.1
90
91 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
92         doc/Propaganda debian/changelog doc/sysvinit-%{version}.lsm  
93
94 %pre
95 %{_sbindir}/groupadd -f -r -g 60 utmp
96 %{_bindir}/update-db
97
98 %post
99 if [ -f /var/log/wtmp ]; then
100         mv -f /var/log/wtmp /var/log/wtmp.rpmsave
101 fi
102 touch /var/log/{lastlog,wtmpx,btmpx}
103 chmod 0644 /var/log/lastlog /var/log/wtmpx
104 chmod 0640 /var/log/btmpx
105 chgrp utmp /var/log/wtmpx
106
107 %postun
108 %{_sbindir}/groupdel utmp
109 %{_bindir}/update-db
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %files
115 %defattr(644,root,root,755)
116 %doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz
117
118 %attr(755,root,root) %{_sbindir}/*
119 %attr(755,root,root) %{_bindir}/last
120 %attr(755,root,root) %{_bindir}/lastb
121 %attr(755,root,root) %{_bindir}/mesg
122 %attr(755,root,root) %{_bindir}/utmpx-dump
123 %attr(2555,root,tty) %{_bindir}/wall
124
125 %attr(640,root,root) /etc/logrotate.d/*
126 %ghost /etc/initrunlvl
127 %ghost /var/log/lastlog
128 %attr(660,root,utmp) %ghost /var/log/wtmpx
129 %attr(640,root,root) %ghost /var/log/btmpx
130
131 %{_mandir}/man*/*
This page took 0.052434 seconds and 4 git commands to generate.