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