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