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