]> git.pld-linux.org Git - packages/SysVinit.git/blob - SysVinit.spec
- release 7.
[packages/SysVinit.git] / SysVinit.spec
1 Summary:        System V initialization program
2 Summary(de):    System V-Intialisierungsprogramm
3 Summary(fr):    Programme d'initialisation Sys V
4 Summary(pl):    Program inicjalizuj±cy w Systemie V 
5 Summary(tr):    System V baþlatma programý
6 Name:           SysVinit
7 Version:        2.78
8 Release:        7
9 License:        GPL
10 Group:          Base
11 Group(pl):      Podstawowe
12 Source0:        ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-%{version}.tar.gz
13 Source1:        sysvinit.logrotate
14 Patch0:         sysvinit-paths.patch
15 Patch1:         sysvinit-bequiet.patch
16 Patch2:         sysvinit-md5-bigendian.patch
17 Patch3:         sysvinit-wtmpx.patch
18 Patch4:         sysvinit-man.patch
19 Prereq:         shadow-utils
20 Requires:       logrotate
21 Requires:       mingetty
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24
25 %description
26 The SysVinit package contains a group of processes that control the very
27 basic functions of your system. SysVinit includes the init program, the
28 first program started by the Linux kernel when the system boots. Init then
29 controls the startup, running and shutdown of all other programs.
30
31 %description -l de
32 SysVinit ist das erste Programm, das beim Systemstart vom Linux-Kernel
33 gestartet wird. Es steuert das Starten, Ausführen und Beenden aller anderen
34 Programme.
35
36 %description -l fr
37 SysVinit est le premier programme exécuté par le noyau de Linux lorsque le
38 système démarre, il contrôle le lancement, l'exécution et l'arrêt de tous
39 les autres programmes.
40
41 %description -l pl
42 SysVinit jest pierwszym programem uruchamianym przez j±dro, podczas startu
43 systemu. Kontroluje start, pracê oraz zamykanie wszystkich innych
44 programów.
45
46 %description -l tr
47 SysVinit, sistem açýlýrken Linux çekirdeði tarafýndan çalýþtýrýlan ilk
48 programdýr. Diðer programlarýn baþlamalarýný, çalýþmalarýný ve
49 sonlanmalarýný saðlar/denetler.
50
51 %prep
52 %setup -q -n sysvinit-%{version}
53 %patch0 -p1
54 %patch1 -p1
55 %patch2 -p1
56 %patch3 -p1
57 %patch4 -p1
58
59 %build
60 make -C src OPTIMIZE="$RPM_OPT_FLAGS"
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_mandir}/man{1,5,8}} \
66         $RPM_BUILD_ROOT/{etc/{logrotate.d,sysconfig},var/log}
67
68 make install -C src \
69         ROOT=$RPM_BUILD_ROOT \
70         BIN_OWNER=`id -u` \
71         BIN_GROUP=`id -g`
72
73 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit
74
75 ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT/etc
76 ln -sf killall5 $RPM_BUILD_ROOT/sbin/pidof
77
78 touch $RPM_BUILD_ROOT/var/log/{lastlog,wtmpx,btmpx}
79
80 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
81 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
82 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
83
84 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
85 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
86 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
87 echo .so last.1 > $RPM_BUILD_ROOT%{_mandir}/man1/lastb.1
88
89 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
90         doc/Propaganda debian/changelog doc/sysvinit-%{version}.lsm  
91
92 %pre
93 groupadd -f -r -g 60 utmp
94 update-db
95
96 %post
97 if [ -f /var/log/wtmp ]; then
98         mv -f /var/log/wtmp /var/log/wtmp.rpmsave
99 fi
100
101 for i in lastlog wtmpx btmpx; do 
102         if [ ! -f /var/log/$i ]; then 
103                 >/var/log/$i 
104         fi
105 done
106
107 chmod 0644 /var/log/lastlog /var/log/wtmpx
108 chmod 0640 /var/log/btmpx
109 chgrp utmp /var/log/wtmpx
110
111 %postun
112 groupdel utmp
113 update-db
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %files
119 %defattr(644,root,root,755)
120 %doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz
121
122 %attr(755,root,root) /sbin/*
123 %attr(755,root,root) %{_bindir}/last
124 %attr(755,root,root) %{_bindir}/lastb
125 %attr(755,root,root) %{_bindir}/mesg
126 %attr(755,root,root) %{_bindir}/utmpx-dump
127 %attr(2555,root,tty) %{_bindir}/wall
128
129 %attr(640,root,root) /etc/logrotate.d/*
130 %ghost /etc/initrunlvl
131 %ghost /var/log/lastlog
132 %attr(660,root,utmp) %ghost /var/log/wtmpx
133 %attr(640,root,root) %ghost /var/log/btmpx
134
135 %{_mandir}/man*/*
This page took 0.104253 seconds and 3 git commands to generate.