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