source: projects/specs/trunk/S/SysVinit/SysVinit-vl.spec @ 5722

Revision 5722, 11.9 KB checked in by daisuke, 12 years ago (diff)

remove /bin/mountpoint which is part of util-linux>2.20

Line 
1Summary: Programs which control basic system processes.
2Summary(ja): 基本的なシステムプロセスを制御するプログラム
3Name: SysVinit
4Version: 2.88dsf
5Release: 2%{_dist_release}
6License: GPLv2+
7Group: System Environment/Base
8Source: http://download.savannah.gnu.org/releases/sysvinit/sysvinit-%{version}.tar.bz2
9URL: http://savannah.nongnu.org/projects/sysvinit/
10Patch1: sysvinit-2.78-man.patch
11Patch2: sysvinit-2.86-autofsck.patch
12Patch3: sysvinit-2.86-loginshell.patch
13Patch4: sysvinit-2.86-inittab.patch
14Patch5: sysvinit-2.86-single.patch
15Patch6: sysvinit-2.88-quiet.patch
16Patch14: sysvinit-2.88-ipv6.patch
17Patch15: sysvinit-2.88-omit.patch
18Patch16: sysvinit-2.88-wall-maxlines.patch
19Patch17: sysvinit-2.88-wall-broadcast-message.patch
20Buildroot: %{_tmppath}/%{name}-%{version}-root
21Requires: pam >= 0.66-5
22Requires: %{name}-tools = %{version}-%{release}
23Requires: filesystem
24
25Vendor: Project Vine
26Distribution: Vine Linux
27Packager: daisuke
28
29
30%description
31The SysVinit package contains a group of processes that control
32the very basic functions of your system. SysVinit includes the init
33program, the first program started by the Linux kernel when the
34system boots. Init then controls the startup, running, and shutdown
35of all other programs.
36
37%description -l ja
38SysVinit パッケージには,システムの非常に基本的な機能を制御する
39プロセスが収められています.例えば,システム起動時に Linux カーネルに
40よって最初に起動されるプログラムである init 等です.init はその後
41システムの起動や,他のプログラムの起動/終了を制御します.
42
43%package tools
44Summary: Tools used for process management.
45Summary(ja): プロセス管理に使用するツール
46Group: System Environment/Base
47
48%description tools
49The sysvinit-tools package contains various tools used for process
50management.
51
52$description -l ja tools
53SysVinit-tools パッケージにはプロセス管理に使用するさまざまなツール
54が含まれています。
55
56%prep
57%setup -q -n sysvinit-%{version}
58# We use a shell, not sulogin. Other random man fixes go here (such as #192804)
59%patch1 -p1 -b .manpatch
60# Unlink /.autofsck on shutdown -f
61%patch2 -p1 -b .autofsck
62# Invoke single-user shell as a login shell (#105653)
63%patch3 -p1 -b .loginshell
64# Adjust examples in inittab(5) to more accurately reflect RH/Fedora
65# usage (#173572)
66%patch4 -p1 -b .inittabdocs
67# Fix single user mode (#176348)
68%patch5 -p1 -b .single
69# Be less verbose when booted with 'quiet'
70%patch6 -p1 -b .quiet
71# Change accepted ipv6 addresses (#573346)
72%patch14 -p1 -b .ipv6
73# Add option to pidof to exclude similar processes to omitted processes (#632321)
74%patch15 -p1 -b .omit
75# Fix counting MAXLINES in wall
76%patch16 -p1 -b .maxlines
77# Raise limit for broadcast message
78%patch17 -p1 -b .broadcast
79
80%build
81make %{?_smp_mflags} CC=%{__cc} CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" LDFLAGS="-lcrypt" -C src
82
83%install
84rm -rf $RPM_BUILD_ROOT
85for I in bin sbin %{_bindir} %{_mandir}/man{1,3,5,8} etc var/run dev %{_includedir}; do
86        mkdir -p $RPM_BUILD_ROOT/$I
87done
88make -C src ROOT=$RPM_BUILD_ROOT MANDIR=%{_mandir} STRIP=/bin/true \
89        BIN_OWNER=`id -nu` BIN_GROUP=`id -ng` install
90
91rm -f $RPM_BUILD_ROOT/bin/pidof
92ln -snf killall5 $RPM_BUILD_ROOT/sbin/pidof
93rm -f $RPM_BUILD_ROOT/sbin/bootlogd
94rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/bootlogd*
95chmod 755 $RPM_BUILD_ROOT/usr/bin/utmpdump
96
97# Remove these files, as we use upstart as /sbin/init.
98rm -f $RPM_BUILD_ROOT/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit}
99rm -f $RPM_BUILD_ROOT/%{_includedir}/initreq.h
100rm -f $RPM_BUILD_ROOT/%{_mandir}/man5/*
101rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/{halt,init,poweroff,reboot,runlevel,shutdown,telinit}*
102
103# /sbin/fstab-decode is part of initscripts
104rm -f $RPM_BUILD_ROOT/sbin/fstab-decode
105rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/fstab-decode.8
106
107# /bin/mountpoint is part of util-linux >= 2.20
108rm -f $RPM_BUILD_ROOT/bin/mountpoint
109rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/mountpoint.*
110
111%post
112[ -x /sbin/telinit -a -p /dev/initctl -a -f /proc/1/exe -a -d /proc/1/root ] && /sbin/telinit u
113exit 0
114
115%clean
116rm -rf $RPM_BUILD_ROOT
117
118%files tools
119%defattr(-,root,root)
120%doc doc/Changelog COPYRIGHT
121%{_bindir}/last
122%{_bindir}/lastb
123%{_bindir}/mesg
124%{_bindir}/utmpdump
125%attr(2555,root,tty)  %{_bindir}/wall
126/sbin/pidof
127/sbin/killall5
128/sbin/sulogin
129%{_mandir}/man1/*
130%{_mandir}/man8/killall5*
131%{_mandir}/man8/pidof*
132%{_mandir}/man8/sulogin*
133
134
135%changelog
136* Tue Feb 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.88dsf-2
137- remove mountpoint which is part of util-linux >= 2.20
138
139* Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.88dsf-1
140- update to 2.88dsf
141- only build -tools subpackage
142
143* Fri Apr 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.87dsf-1
144- new upstream release (2.87dsf)
145- remove upstreamed or obsoleted patches
146- split off a -tools subpackage to avoid upstart conflicts
147
148* Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.86-1
149- new upstream release
150
151* Thu Jul 06 2006 Shu KONNO <owa@bg.wakwak.com> 2.85-5vl3
152- add script to create $RPM_BUILD_ROOT/bin in %%install section
153
154* Wed Dec 10 2003 <tkoba@vinelinux.org> 2.85-5vl2
155- install initreq.h
156
157* Fri Nov 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.85-5vl1
158- new upstream release
159- merged with fedora package.
160  * Tue Jul 17 2001 <sagami@vinelinux.org>
161  - 2.78-10vl3: fix orphan symlink in %%doc
162  * Tue Jan 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
163  - 2.78-10vl1
164  - rebuilt under new %%{_mandir} definition
165  - added Japanese summary and description
166  * Sat Nov 18 2000 Satoshi MACHINO <machino@vinelinux.org> 2.78-10vl1
167  - build with gcc-2.95.3
168  - partially used rpmmacros
169
170* Mon Sep 22 2003 Bill Nottingham <notting@redhat.com> 2.85-5
171- add change_console, for changing console used by init
172
173* Wed Jun 25 2003 Bill Nottingham <notting@redhat.com> 2.85-4
174- block signals when calling syslog() (#97534, <joden@lee.k12.nc.us>)
175
176* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
177- rebuilt
178
179* Fri May 23 2003 Bill Nottingham <notting@redhat.com> 2.85-2
180- clean up killall5 some
181
182* Thu May 22 2003 Florian La Roche <Florian.LaRoche@redhat.de>
183- update to 2.85, remove already applied patches
184
185* Mon Feb 10 2003 Bill Nottingham <notting@redhat.com> 2.84-13
186- fix s390x build
187- fix silly warning (#83943)
188
189* Mon Feb 10 2003 Arjan van de Ven <arjanv@redhat.com>
190- fix wait() handling wrt setting SIGCHLD to SIG_IGN in shutdown
191- fix segfault in spawn() function in shutdown
192
193* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
194- rebuilt
195
196* Thu Dec 05 2002 Elliot Lee <sopwith@redhat.com> 2.84-7
197- Pass __cc macro to build, to facilitate cross-compiling
198- _smp_mflags
199
200* Mon Dec  2 2002 Bill Nottingham <notting@redhat.com> 2.84-6
201- rebuild on all arches
202- change sulogin message to be slightly more correct (#65828)
203
204* Thu Jul 18 2002 Bill Nottingham <notting@redhat.com>
205- don't strip binaries
206- have wall not write to non-ttys (#65412)
207- update usage for halt/reboot (#57753)
208- allow '-t' argument to last for checking state at certain times (#56863)
209- make 'pidof /foo/bar' not match /baz/bar (#53918)
210
211* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
212- automated rebuild
213
214* Thu May 23 2002 Tim Powers <timp@redhat.com>
215- automated rebuild
216
217* Thu Mar 12 2002 Bill Nottingham <notting@redhat.com> 2.84-2
218- add patch to log messages on shutdown/reboot
219
220* Fri Feb 22 2002 Bill Nottingham <notting@redhat.com> 2.84-1
221- update to 2.84
222
223* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
224- automated rebuild
225
226* Fri Nov  9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.79-2
227- Fix pidof -o (#55954)
228- Handle RPM_OPT_FLAGS
229- s/Copyright/License/
230
231* Mon Sep 17 2001 Bill Nottingham <notting@redhat.com>
232- update to 2.79
233
234* Tue Aug 28 2001 Bill Nottingham <notting@redhat.com>
235- unlink /.autofsck on shutdown -f
236
237* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
238- Bump release + rebuild.
239
240* Thu Jun 21 2001 Bill Nottingham <notting@redhat.com>
241- update 'no logout' patch
242- fix setting of CREAD to work with 2.4.3+ kernels (#45284)
243
244* Tue Jun 12 2001 Bill Nottingham <notting@redhat.com>
245- show users with no login pid but no logout record as gone (#42550,
246  <cwolf@starclass.com>)
247- fix sulogin to *always* work without a tty (#40934)
248
249* Tue Apr  3 2001 Bill Nottingham <notting@redhat.com>
250- set umask 022 on startup
251- manpage tweaks (#21628, #27173)
252
253* Mon Apr  2 2001 Bill Nottingham <notting@redhat.com>
254- fix dangling symlink in %%doc (#34383)
255
256* Thu Mar 15 2001 Bill Nottingham <notting@redhat.com>
257- don't run telinit u if we don't appear to be on the root fs
258
259* Fri Feb 16 2001 Bill Nottingham <notting@redhat.com>
260- run telinit u on upgrade
261
262* Wed Jan 31 2001 Bill Nottingham <notting@redhat.com>
263- document '-n' option to wall, make it root-only (#18672)
264- don't open files in sulogin unless they're really ttys (#21862)
265
266* Tue Aug  8 2000 Bill Nottingham <notting@redhat.com>
267- set SHLVL in sulogin so /etc/profile.d stuff isn't run by default
268
269* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
270- automatic rebuild
271
272* Thu Jun  8 2000 Bill Nottingham <notting@redhat.com>
273- fix the md5 code (#11534)
274- rebuild for FHS & the like
275
276* Wed Apr 19 2000 Bill Nottingham <notting@redhat.com>
277- ignore sigint in sulogin (#9803)
278- touch file in root directory if powering off (#7318)
279
280* Tue Mar  7 2000 Jeff Johnson <jbj@redhat.com>
281- rebuild for sparc baud rates > 38400.
282
283* Thu Feb 24 2000 Bill Nottingham <notting@redhat.com>
284- update to 2.78-final
285
286* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
287- handle compressed manpages
288
289* Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
290- build to fix dependency problem
291
292* Tue Jan 10 2000 Bill Nottingham <notting@redhat.com>
293- update to 2.78
294
295* Mon Sep 06 1999 Jakub Jelinek <jj@ultra.linux.cz>
296- on big endian machines use a kludge for broken pam md5 passwords
297
298* Fri Aug 27 1999 Bill Nottingham <notting@redhat.com>
299- update to 2.77
300
301* Tue Jul 06 1999 Bill Nottingham <notting@redhat.com>
302- move pam_console stuff to usermode package
303
304* Fri Jul 02 1999 Cristian Gafton <gafton@redhat.com>
305- requires usermode to express the dependency on /usr/bin/consolehelper
306(#2813)
307
308* Wed Jun 23 1999 Bill Nottingham <notting@redhat.com>
309- make man page references to single-user mode consistent with RH usage
310
311* Sat Apr 17 1999 Jeff Johnson <jbj@redhat.com>
312- remove /etc/initlvl compatibility symlink from file list (#2236).
313
314* Fri Mar 26 1999 Michael Johnson <johnsonm@redhat.com>
315- pam.d files marked noreplace
316- added poweroff as a console application
317
318* Mon Mar 22 1999 Michael Johnson <johnsonm@redhat.com>
319- marked config files as such in consolehelper part of filelist
320
321* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
322- auto rebuild in the new build environment (release 8)
323
324* Fri Mar 19 1999 Michael Johnson <johnsonm@redhat.com>
325- consolehelper support
326
327* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
328- glibc 2.1
329
330* Sun Aug 23 1998 Jeff Johnson <jbj@redhat.com>
331- poweroff symlink not included (problem #762)
332
333* Thu Jul 09 1998 Chris Evans <chris@ferret.lmh.ox.ac.uk>
334- Fix a securelevel releated security hole. Go on, try and break append
335  only files + securelevel now ;-)
336
337* Wed Jul  8 1998 Jeff Johnson <jbj@redhat.com>
338- remove /etc/nologin at end of shutdown.
339- compile around missing SIGPWR on sparc
340
341* Thu May 07 1998 Prospector System <bugs@redhat.com>
342- translations modified for de, fr, tr
343
344* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
345- upgraded to 2.74
346- fixed the package source url... (yeah, it was wrong !)
347
348* Wed Oct 1 1997 Cristian Gafton <gafton@redhat.com>
349- fixed the MD5 check in sulogin (128 hash bits encoded with base64 gives
350  22 bytes, not 24...). Fix in -md5.patch
351
352* Thu Sep 11 1997 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
353- /etc/initrunlvl gets linked to /tmp/init-root/var/run/initrunlvl which is
354  just plain wrong..
355- /usr/bin/utmpdump was missing in the files section, although it was
356  explicitly patched into PROGS.
357- added attr's to the files section.
358- various small fixes.
359
360* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
361- updated to 2.71
362- built against glibc 2.0.4
363
364* Fri Feb 07 1997 Michael K. Johnson <johnsonm@redhat.com>
365- Added sulogin.8 man page to file list.
Note: See TracBrowser for help on using the repository browser.