]> git.pld-linux.org Git - projects/rc-scripts.git/blob - rc-scripts.spec.in
Synced with latest from old repo
[projects/rc-scripts.git] / rc-scripts.spec.in
1 Summary:        inittab and /etc/rc.d scripts
2 Summary(de):    inittab und /etc/rc.d Scripts
3 Summary(fr):    inittab et scripts /etc/rc.d
4 Summary(pl):    inittab i skrypty startowe z katalogu /etc/rc.d
5 Summary(tr):    inittab ve /etc/rc.d dosyalarý
6 Name:           rc-scripts
7 Version:        @VERSION@
8 Release:        1
9 Copyright:      GPL
10 Group:          Base
11 Group(pl):      Bazowe  
12 Source:         %{name}-%{version}.tar.gz
13 Requires:       mingetty
14 Requires:       mktemp
15 Requires:       modutils >= 2.1.121
16 Prereq:         /sbin/chkconfig
17 Obsoletes:      initscripts
18 Provides:       initscripts
19 Buildroot:      /tmp/buildroot-%{name}-%{version}
20
21 %description
22 This package contains the scripts use to boot a system, change run
23 levels, and shut the system down cleanly.
24
25 %description -l de
26 Dieses Paket enthält die Scripts, die zum Hochfahren des Systems, Ändern
27 der Betriebsebene und sauberem Herunterfahren des Systems erforderlich sind.
28 Außerdem enthält es die Scripts, die Netzwerkschnittstellen aktivieren und
29 deaktivieren.
30
31 %description -l fr
32 Ce package contient les scripts utilisés pour démarrer le systéme,
33 changer les niveaux d'exécution, et arréter le systéme proprement.
34 Il contient aussi les scripts qui activent et désactivent la plupart
35 des inetrfaces réseau.
36
37 %description -l pl
38 Pakiet zawiera skrypty uruchamiane przy starcie i zamykaniu systemu, a
39 tak¿e przy zmianie poziomu uruchomienia. 
40
41 %description -l tr
42 Bu paket, sistem açmak, çalýþma düzeylerini deðiþtirmek ve sistemi düzgün bir
43 þekilde kapatmak için gereken dosyalarý içerir. Ayrýca pek çok bilgisayar aðý
44 arayüzlerini etkinleþtiren ya da edilginleþtiren programcýklar içerir.
45
46 %package -n net-scripts
47 Summary:        network startup scripts
48 Summary(pl):    skrypty startowe sieci
49 Group:          Base
50 Group(pl):      Bazowe  
51 Requires:       %{name} = %{version}
52 Requires:       modutils >= 2.1.121
53 Prereq:         /sbin/chkconfig
54
55 %description -n net-scripts
56 Scripts that activate and deactivate most network interfaces.
57
58 %description -l pl -n net-scripts
59 Skrypty s³u¿±ce do aktywacji i deaktywacji interfejsów sieciowych
60
61 %package -n ipchains-setup
62 Summary:        firewall chains setup script
63 Summary(pl):    skrypty konfiguruj±cy regu³y filtrowania pakietów IP
64 Group:          Base
65 Group(pl):      Bazowe  
66 Requires:       net-scripts = %{version}
67 Requires:       ipchains
68 Prereq:         /sbin/chkconfig
69
70 %description -n ipchains-setup
71 Script making IP firewall rules setup easier 
72
73 %description -l pl -n ipchains-setup
74 Skrypt u³atwiaj±cy konfigurowanie regu³ filtracji pakietów IP
75
76 %prep
77 %setup -q
78
79 %build
80 %configure --prefix=/
81 make
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT/var/run/netreport
86
87 make install  \
88         DESTDIR=$RPM_BUILD_ROOT \
89         mandir=/usr/man \
90         
91 ln -s network-scripts/ifup $RPM_BUILD_ROOT/sbin/ifup
92 ln -s network-scripts/ifdown $RPM_BUILD_ROOT/sbin/ifdown
93
94 gzip -9nf $RPM_BUILD_ROOT/usr/man/man*/* \
95         doc/*.txt 
96
97 %post
98 for i in  halt nfsfs random reboot single  
99         do /sbin/chkconfig --add $i
100 done 
101 if [ -f /etc/inittab.rpmsave ]; then
102         echo "**** Found old /etc/inittab.rpmsave ****"
103         echo "/etc/inittab renamed to /etc/inittab.rpmnew"
104         mv /etc/inittab /etc/inittab.rpmnew
105         echo "/etc/inittab.rpmsave renamed to /etc/inittab."
106         mv /etc/inittab.rpmsave /etc/inittab
107 fi
108
109 %preun
110 if [ "$1" = "0" ]; then
111         /sbin/chkconfig --del random
112         /sbin/chkconfig --del nfsfs
113 fi
114
115 %post -n net-scripts
116 /sbin/chkconfig --add network
117 for l in /etc/sysconfig/network-scripts/ifcfg-* ; do 
118   if [ -f "$l" ] ; then
119     NEWNAME=`basename $l | sed -e 's /^ifcfg-//'`
120     [ -f /etc/sysconfig/interfaces/$NEWNAME ] || cp $l /etc/sysconfig/interfaces/$NEWNAME
121   fi
122 done
123
124 %preun -n net-scripts
125 if [ "$1" = "0" ]; then
126         /sbin/chkconfig --del network
127 fi
128
129 %post -n ipchains-setup
130 /sbin/chkconfig --add ipchains
131
132 %preun -n ipchains-setup
133 if [ "$1" = "0" ]; then
134         /sbin/chkconfig --del ipchains
135 fi
136
137 %files
138 %defattr(644,root,root,754)
139 %doc doc/sysconfig.txt.gz
140
141 %config(noreplace) %verify(not md5 mtime size) /etc/adjtime
142 %config(noreplace) %verify(not md5 mtime size) /etc/inittab
143
144 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/system
145
146 %attr(644,root,root) /etc/rc.d/init.d/functions
147 %attr(754,root,root) /etc/rc.d/init.d/halt
148 %attr(754,root,root) /etc/rc.d/init.d/killall
149 %attr(754,root,root) /etc/rc.d/init.d/nfsfs
150 %attr(754,root,root) /etc/rc.d/init.d/random
151 %attr(754,root,root) /etc/rc.d/init.d/reboot
152 %attr(754,root,root) /etc/rc.d/init.d/shutdwn
153 %attr(754,root,root) /etc/rc.d/init.d/single
154
155 %attr(754,root,root) /etc/rc.d/rc.sysinit
156 %attr(754,root,root) /etc/rc.d/rc.serial
157 %attr(754,root,root) /etc/rc.d/rc
158 %attr(754,root,root) /etc/rc.d/rc.local
159 %attr(755,root,root) /etc/profile.d/lang.sh
160 %attr(755,root,root) /bin/doexec
161 %attr(755,root,root) /bin/usleep
162 %attr(755,root,root) /sbin/setsysfont
163
164 /usr/man/man1/usleep.1.gz
165 /usr/man/man1/doexec.1.gz
166
167 %files -n net-scripts
168 %defattr(644,root,root,754)
169 %doc sysconfig/interfaces/*-template!
170 %doc sysconfig/interfaces/data/chat-ppp*
171 %doc doc/net-scripts.txt.gz
172 %attr(754,root,root) /etc/rc.d/init.d/network
173 %attr(750,root,root) %dir /var/run/netreport
174 %attr(755,root,root) %dir /etc/sysconfig/interfaces
175 %attr(755,root,root) %dir /etc/sysconfig/interfaces/data
176 %attr(755,root,root) %dir /etc/ppp
177 %attr(755,root,root) /etc/ppp/*
178
179 %attr(755,root,root) %dir /sbin/network-scripts
180 %attr(755,root,root) /sbin/network-scripts/if*
181 %attr(644,root,root) /sbin/network-scripts/network-functions
182 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/interfaces/lo
183
184 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/network
185 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/static-routes
186
187 %attr(755,root,root) /sbin/usernetctl
188 %attr(755,root,root) /bin/ipcalc
189 %attr(755,root,root) /sbin/netreport
190 %attr(755,root,root) /sbin/ifup
191 %attr(755,root,root) /sbin/ifdown
192
193 /usr/man/man1/netreport.1.gz
194 /usr/man/man1/usernetctl.1.gz
195 /usr/man/man1/ipcalc.1.gz
196
197 %files -n ipchains-setup
198 %defattr(644,root,root,754)
199 %doc doc/ipchains-setup.txt.gz
200 %attr(754,root,root) /etc/rc.d/init.d/ipchains
201 %attr(755,root,root) %dir /etc/sysconfig/ipchains.d/
202 %attr(755,root,root) %dir /etc/sysconfig/interfaces/data
203 %attr(750,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/ipchains.d/*
204 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/ipchains
205
206 %changelog
207 * Thu Apr 29 1999 PLD Team <bugs@pld.org.pl>
208   [0.0.5-1]
209 - automake/autoconf support
210
211 * Wed Apr 28 1999 PLD Team <bugs@pld.org.pl>
212   [0.0.4-1]
213 - added ipchains-setup  
214
215 * Thu Apr 22 1999 PLD Team <bugs@pld.org.pl>
216   [0.0.3-1]
217 - split into two packages: rc-scripts & net-scripts  
218 - directory structure changed - only config in /etc
219
220 * Tue Mar 23 1999 PLD Team <bugs@pld.org.pl>
221   [0.0.2-1]
222 - be more verbose while upgrading when /etc/inittab.rpmsave is found,
223 - added seting NETWORK="no" variable to when /etc/sysconfig/network is not present
224   or when NETWORK in this file is not defined.
225
226 * Sun Mar 21 1999 PLD Team <bugs@pld.org.pl>
227   [0.0.1-1]
228 - added /etc/sysconfig/system,
229 - removed man group from man pages,
230 - added in %post not replacing /etc/inittab on upgrade from initscripts,
231 - removed %config from scripts.
232
233 * Fri Mar 19 1999 PLD Team <bugs@pld.org.pl>
234 - Modified handling ppp links. Added new features to ifcfg-ppp
235   and changed syntax of chat scripts for ppp.
236 - First Release.
237 - Package based on RedHat's initscripts-3.78.
This page took 0.084292 seconds and 4 git commands to generate.