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