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