]> git.pld-linux.org Git - packages/SysVinit.git/blob - SysVinit.spec
bde09ccdd4492ba2966496405ea2a0163b7ff087
[packages/SysVinit.git] / SysVinit.spec
1 Summary:        System V initialization program
2 Summary(de):    System V-Intialisierungsprogramm
3 Summary(es):    Programa de inicialización System V
4 Summary(fr):    Programme d'initialisation Sys V
5 Summary(pl):    Program inicjalizuj±cy w Systemie V
6 Summary(pt_BR): Programa de inicialização System V
7 Summary(ru):    ðÒÏÇÒÁÍÍÙ, ÕÐÒÁ×ÌÑÀÝÉÅ ÂÁÚÏ×ÙÍÉ ÓÉÓÔÅÍÎÙÍÉ ÐÒÏÃÅÓÓÁÍÉ
8 Summary(tr):    System V baþlatma programý
9 Summary(uk):    ðÒÏÇÒÁÍÉ, ÝÏ ËÅÒÕÀÔØ ÂÁÚÏ×ÉÍÉ ÓÉÓÔÅÍÎÉÍÉ ÐÒÏÃÅÓÁÍÉ
10 Name:           SysVinit
11 Version:        2.85
12 Release:        5
13 License:        GPL
14 Group:          Base
15 Source0:        ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-%{version}.tar.gz
16 # Source0-md5:  8a2d8f1ed5a2909da04132fefa44905e
17 Source1:        sysvinit.logrotate
18 Source2:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/sysvinit-non-english-man-pages.tar.bz2
19 # Source2-md5:  9ae8a63a4685368fae19707f95475cca
20 Patch0:         sysvinit-paths.patch
21 Patch1:         sysvinit-bequiet.patch
22 Patch2:         sysvinit-md5-bigendian.patch
23 Patch3:         sysvinit-wtmp.patch
24 Patch4:         sysvinit-man.patch
25 Patch5:         sysvinit-halt.patch
26 Patch6:         sysvinit-blowfish.patch
27 Patch7:         sysvinit-initctl.patch
28 Patch8:         sysvinit-autofsck.patch
29 Patch9:         sysvinit-pidof.patch
30 Patch10:        sysvinit-log-signals.patch
31 Patch11:        sysvinit-killall5.patch
32 Patch12:        sysvinit-selinux.patch
33 BuildRequires:  libselinux-devel
34 Requires(pre):  /usr/bin/getgid
35 Requires(pre):  /usr/sbin/groupadd
36 Requires(post): fileutils
37 Requires(postun):       /usr/sbin/groupdel
38 Requires:       /bin/awk
39 Requires:       login
40 Requires:       logrotate
41 Requires:       mingetty
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %define         _sbindir        /sbin
45
46 %description
47 The SysVinit package contains a group of processes that control the
48 very basic functions of your system. SysVinit includes the init
49 program, the first program started by the Linux kernel when the system
50 boots. Init then controls the startup, running and shutdown of all
51 other programs.
52
53 %description -l de
54 SysVinit ist das erste Programm, das beim Systemstart vom Linux-Kernel
55 gestartet wird. Es steuert das Starten, Ausführen und Beenden aller
56 anderen Programme.
57
58 %description -l es
59 SysVinit es el primer programa ejecutado por el kernel Linux cuando se
60 inicia el sistema. Controla arranque, funcionamiento y cierre de todos
61 los otros programas.
62
63 %description -l fr
64 SysVinit est le premier programme exécuté par le noyau de Linux
65 lorsque le système démarre, il contrôle le lancement, l'exécution et
66 l'arrêt de tous les autres programmes.
67
68 %description -l pl
69 SysVinit jest pierwszym programem uruchamianym przez j±dro podczas
70 startu systemu. Kontroluje start, pracê oraz zamykanie wszystkich
71 innych programów.
72
73 %description -l pt_BR
74 SysVinit é o primeiro programa executado pelo kernel Linux quando o
75 sistema é inicializado. Controla inicialização, funcionamento e
76 finalização de todos os outros programas.
77
78 %description -l ru
79 ðÁËÅÔ SysVinit ÓÏÄÅÒÖÉÔ ÇÒÕÐÐÕ ÐÒÏÃÅÓÓÏ×, ËÏÔÏÒÙÅ ÕÐÒÁ×ÌÑÀÔ ÓÁÍÙÍÉ
80 ÂÁÚÏ×ÙÍÉ ÆÕÎËÃÉÑÍÉ ×ÁÛÅÊ ÓÉÓÔÅÍÙ. SysVinit ×ËÌÀÞÁÅÔ ÐÒÏÇÒÁÍÍÕ init,
81 ÓÁÍÕÀ ÐÅÒ×ÕÀ ÐÒÏÇÒÁÍÍÕ, ËÏÔÏÒÁÑ ÚÁÐÕÓËÁÅÔÓÑ ÑÄÒÏÍ Linux ÐÒÉ ÚÁÇÒÕÚËÅ
82 ÓÉÓÔÅÍÙ. ðÏÓÌÅ ÜÔÏÇÏ init ÕÐÒÁ×ÌÑÅÔ ÚÁÐÕÓËÏÍ, ÉÓÐÏÌÎÅÎÉÅÍ É ÏÓÔÁÎÏ×ÏÍ
83 ×ÓÅÈ ÏÓÔÁÌØÎÙÈ ÐÒÏÇÒÁÍÍ.
84
85 %description -l tr
86 SysVinit, sistem açýlýrken Linux çekirdeði tarafýndan çalýþtýrýlan ilk
87 programdýr. Diðer programlarýn baþlamalarýný, çalýþmalarýný ve
88 sonlanmalarýný saðlar/denetler.
89
90 %description -l uk
91 ðÁËÅÔ SysVinit Í¦ÓÔÉÔØ ÇÒÕÐÕ ÐÒÏÃÅÓ¦×, ËÏÔÒ¦ ËÅÒÕÀÔØ ÓÁÍÉÍÉ ÂÁÚÏ×ÉÍÉ
92 ÆÕÎËæÑÍÉ ×ÁÛϧ ÓÉÓÔÅÍÉ. SysVinit Í¦ÓÔÉÔØ ÐÒÏÇÒÁÍÕ init, ÐÅÒÛÕ
93 ÐÒÏÇÒÁÍÕ, ÑËÕ ÚÁÐÕÓËÁ¤ ÑÄÒÏ Linux Ð¦Ä ÞÁÓ ÚÁÇÒÕÚËÉ ÓÉÓÔÅÍÉ. ð¦ÓÌÑ
94 ÃØÏÇÏ init ËÅÒÕ¤ ÚÁÐÕÓËÏÍ, ×ÉËÏÎÁÎÎÑÍ ÔÁ ÚÕÐÉÎËÏÀ ×ӦȠ¦ÎÛÉÈ ÐÒÏÇÒÁÍ.
95
96 %prep
97 %setup -q -n sysvinit-%{version}
98 %patch0 -p1
99 %patch1 -p1
100 %patch2 -p1
101 %patch3 -p1
102 %patch4 -p1
103 %patch5 -p1
104 %patch6 -p1
105 %patch7 -p1
106 %patch8 -p1
107 %patch9 -p1
108 %patch10 -p1
109 %patch11 -p1
110 %patch12 -p1
111
112 %build
113 %{__make} -C src \
114         LCRYPT="-lcrypt" \
115         OPTIMIZE="%{rpmcflags}"
116
117 %install
118 rm -rf $RPM_BUILD_ROOT
119 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8}} \
120         $RPM_BUILD_ROOT{%{_sysconfdir},/etc/logrotate.d,/var/log}
121
122 %{__make} install -C src \
123         ROOT=$RPM_BUILD_ROOT \
124         BIN_OWNER=`id -u` \
125         BIN_GROUP=`id -g`
126
127 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit
128
129 ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT%{_sysconfdir}
130 ln -sf killall5 $RPM_BUILD_ROOT%{_sbindir}/pidof
131
132 > $RPM_BUILD_ROOT%{_sysconfdir}/ioctl.save
133 > $RPM_BUILD_ROOT/var/log/faillog
134 > $RPM_BUILD_ROOT/var/log/lastlog
135 > $RPM_BUILD_ROOT/var/log/wtmpx
136 > $RPM_BUILD_ROOT/var/log/btmpx
137
138 echo .so last.1 > $RPM_BUILD_ROOT%{_mandir}/man1/lastb.1
139 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
140 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
141 echo .so init.8 > $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
142 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
143
144 %clean
145 rm -rf $RPM_BUILD_ROOT
146
147 %pre
148 if [ -n "`/usr/bin/getgid utmp`" ]; then
149         if [ "`/usr/bin/getgid utmp`" != "22" ]; then
150                 echo "Error: group utmp doesn't have gid=22. Correct this before installing SysVinit." 1>&2
151                 exit 1
152         fi
153 else
154         /usr/sbin/groupadd -g 22 -r -f utmp
155 fi
156
157 %post
158 touch %{_sysconfdir}/ioctl.save /var/log/{fail,last}log
159 chmod 000 %{_sysconfdir}/ioctl.save /var/log/{fail,last}log
160 chown root:root %{_sysconfdir}/ioctl.save /var/log/faillog
161 chown root:utmp /var/log/lastlog
162 chmod 600 %{_sysconfdir}/ioctl.save
163 chmod 640 /var/log/faillog
164 chmod 660 /var/log/lastlog
165
166 %{_sbindir}/telinit u || :
167
168 %postun
169 if [ "$1" = "0" ]; then
170         /usr/sbin/groupdel utmp
171 fi
172
173 %files
174 %defattr(644,root,root,755)
175 %doc doc/{Propaganda,Changelog,*.lsm}
176
177 %attr(755,root,root) %{_sbindir}/*
178 %attr(755,root,root) %{_bindir}/last
179 %attr(755,root,root) %{_bindir}/lastb
180 %attr(755,root,root) %{_bindir}/mesg
181 %attr(755,root,root) %{_bindir}/utmpx-dump
182 %attr(2755,root,tty) %{_bindir}/wall
183
184 %attr(640,root,root) /etc/logrotate.d/sysvinit
185 %ghost %{_sysconfdir}/initrunlvl
186 %attr(600,root,root) %ghost %{_sysconfdir}/ioctl.save
187 %attr(640,root,root) %ghost /var/log/faillog
188 %attr(660,root,utmp) %ghost /var/log/lastlog
189 %attr(664,root,utmp) %ghost /var/log/wtmpx
190 %attr(640,root,root) %ghost /var/log/btmpx
191
192 %{_mandir}/man[158]/*
193 %lang(de) %{_mandir}/de/man[158]/*
194 %lang(es) %{_mandir}/es/man[158]/*
195 %lang(fi) %{_mandir}/fi/man[158]/*
196 %lang(fr) %{_mandir}/fr/man[158]/*
197 %lang(hu) %{_mandir}/hu/man[158]/*
198 %lang(id) %{_mandir}/id/man[158]/*
199 %lang(it) %{_mandir}/it/man[158]/*
200 %lang(ja) %{_mandir}/ja/man[158]/*
201 %lang(ko) %{_mandir}/ko/man[158]/*
202 %lang(pl) %{_mandir}/pl/man[158]/*
This page took 0.053146 seconds and 3 git commands to generate.