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