Author: arekm Date: Mon Dec 8 18:45:08 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - revert removal
---- Files affected: SPECS: SysVinit.spec (1.145 -> 1.146) ---- Diffs: ================================================================ Index: SPECS/SysVinit.spec diff -u /dev/null SPECS/SysVinit.spec:1.146 --- /dev/null Mon Dec 8 19:45:08 2008 +++ SPECS/SysVinit.spec Mon Dec 8 19:45:03 2008 @@ -0,0 +1,680 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_with preconfigured +%bcond_without selinux # build without SELinux support +# +Summary: System V initialization program +Summary(de.UTF-8): System V-Intialisierungsprogramm +Summary(es.UTF-8): Programa de inicialización System V +Summary(fr.UTF-8): Programme d'initialisation Sys V +Summary(pl.UTF-8): Program inicjalizujący w Systemie V +Summary(pt_BR.UTF-8): Programa de inicialização System V +Summary(ru.UTF-8): Программы, управляющие базовыми системными процессами +Summary(tr.UTF-8): System V başlatma programı +Summary(uk.UTF-8): Програми, що керують базовими системними процесами +Name: SysVinit +Version: 2.86 +Release: 17 +License: GPL +Group: Base +Source0: ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-%{version}.tar.gz +# Source0-md5: 7d5d61c026122ab791ac04c8a84db967 +Source1: sysvinit.logrotate +Source2: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/sysvinit-non-english-man-pages.tar.bz2 +# Source2-md5: 9ae8a63a4685368fae19707f95475cca +Patch0: sysvinit-paths.patch +Patch1: sysvinit-bequiet.patch +Patch2: sysvinit-md5-bigendian.patch +Patch3: sysvinit-wtmp.patch +Patch4: sysvinit-man.patch +Patch5: sysvinit-halt.patch +Patch6: sysvinit-blowfish.patch +Patch7: sysvinit-autofsck.patch +Patch8: sysvinit-pidof.patch +Patch9: sysvinit-killall5.patch +Patch10: sysvinit-selinux.patch +Patch11: sysvinit-nopowerstates-single.patch +Patch12: sysvinit-lastlog.patch +Patch13: sysvinit-alt-fixes.patch +Patch14: sysvinit-chroot.patch +Patch15: sysvinit-console-open.patch +Patch16: sysvinit-godot.patch +Patch17: sysvinit-haltname.patch +Patch18: sysvinit-ipv6.patch +Patch19: sysvinit-maxproclen.patch +Patch20: sysvinit-quiet.patch +Patch21: sysvinit-timeval.patch +Patch22: sysvinit-no-abort.patch +Patch23: sysvinit-rebootconfirmation.patch +%if %{with selinux} +BuildRequires: libselinux-devel >= 1.28 +BuildRequires: libsepol-devel +%endif +BuildRequires: rpmbuild(macros) >= 1.202 +Requires(post): fileutils +Requires(postun): /usr/sbin/groupdel +Requires(pre): /usr/bin/getgid +Requires(pre): /usr/sbin/groupadd +Requires: /bin/awk +%{?with_selinux:Requires: libselinux >= 1.18} +Requires: login +Requires: logrotate +Requires: mingetty +Provides: group(utmp) +Provides: virtual(init-daemon) +Obsoletes: virtual(init-daemon) +Obsoletes: vserver-SysVinit +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _sbindir /sbin +# as in original flags +%define specflags -fomit-frame-pointer + +%description +The SysVinit package contains a group of processes that control the +very basic functions of your system. SysVinit includes the init +program, the first program started by the Linux kernel when the system +boots. Init then controls the startup, running and shutdown of all +other programs. + +%description -l de.UTF-8 +SysVinit ist das erste Programm, das beim Systemstart vom Linux-Kernel +gestartet wird. Es steuert das Starten, Ausführen und Beenden aller +anderen Programme. + +%description -l es.UTF-8 +SysVinit es el primer programa ejecutado por el kernel Linux cuando se +inicia el sistema. Controla arranque, funcionamiento y cierre de todos +los otros programas. + +%description -l fr.UTF-8 +SysVinit est le premier programme exécuté par le noyau de Linux +lorsque le système démarre, il contrôle le lancement, l'exécution et +l'arrêt de tous les autres programmes. + +%description -l pl.UTF-8 +SysVinit jest pierwszym programem uruchamianym przez jądro podczas +startu systemu. Kontroluje start, pracę oraz zamykanie wszystkich +innych programów. + +%description -l pt_BR.UTF-8 +SysVinit é o primeiro programa executado pelo kernel Linux quando o +sistema é inicializado. Controla inicialização, funcionamento e +finalização de todos os outros programas. + +%description -l ru.UTF-8 +Пакет SysVinit содержит группу процессов, которые управляют самыми +базовыми функциями вашей системы. SysVinit включает программу init, +самую первую программу, которая запускается ядром Linux при загрузке +системы. После этого init управляет запуском, исполнением и остановом +всех остальных программ. + +%description -l tr.UTF-8 +SysVinit, sistem açılırken Linux çekirdeği tarafından çalıştırılan ilk +programdır. Diğer programların başlamalarını, çalışmalarını ve +sonlanmalarını sağlar/denetler. + +%description -l uk.UTF-8 +Пакет SysVinit містить групу процесів, котрі керують самими базовими +функціями вашої системи. SysVinit містить програму init, першу +програму, яку запускає ядро Linux під час загрузки системи. Після +цього init керує запуском, виконанням та зупинкою всіх інших програм. + +%prep +%setup -q -n sysvinit-%{version} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%{?with_selinux:%patch10 -p1} +%patch11 -p1 +%patch12 -p1 +%patch13 -p1 +%patch14 -p1 +%patch15 -p1 +%patch16 -p1 +%patch17 -p1 +%patch18 -p1 +%patch19 -p1 +%patch20 -p1 +%patch21 -p1 +%patch22 -p1 +%patch23 -p0 + +%build +%{__make} -C src \ + CC="%{__cc}" \ + LCRYPT="-lcrypt" \ + OPTIMIZE="%{rpmcflags}" \ + LDFLAGS="%{rpmldflags}" + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{/bin,%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8}} \ + $RPM_BUILD_ROOT{%{_includedir},%{_sysconfdir},/etc/logrotate.d,/var/{log,run}} + +%{__make} install -C src \ + ROOT=$RPM_BUILD_ROOT \ + BIN_OWNER=`id -u` \ + BIN_GROUP=`id -g` + +install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit + +ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT%{_sysconfdir} +ln -sf killall5 $RPM_BUILD_ROOT%{_sbindir}/pidof + +> $RPM_BUILD_ROOT/var/run/initrunlvl +> $RPM_BUILD_ROOT%{_sysconfdir}/ioctl.save +> $RPM_BUILD_ROOT/var/log/faillog +> $RPM_BUILD_ROOT/var/log/lastlog +> $RPM_BUILD_ROOT/var/log/wtmpx +> $RPM_BUILD_ROOT/var/log/btmpx + +echo .so last.1 > $RPM_BUILD_ROOT%{_mandir}/man1/lastb.1 +echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8 +echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8 +echo .so init.8 > $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8 +bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} +rm -f $RPM_BUILD_ROOT%{_includedir}/initreq.h +rm -f $RPM_BUILD_ROOT%{_mandir}/README.sysvinit-non-english-man-pages + +cp -a man/intl/* $RPM_BUILD_ROOT%{_mandir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre +%groupadd -g 22 utmp + +%post +touch %{_sysconfdir}/ioctl.save /var/log/{{fail,last}log,btmpx} +chmod 000 %{_sysconfdir}/ioctl.save /var/log/{fail,last}log +chown root:root %{_sysconfdir}/ioctl.save /var/log/faillog +chown root:utmp /var/log/lastlog +chmod 600 %{_sysconfdir}/ioctl.save +chmod 640 /var/log/faillog +chmod 660 /var/log/lastlog +chmod 640 /var/log/btmpx +if [ -p /dev/initctl ]; then + %{_sbindir}/telinit u || : +fi + +%triggerpostun -- glibc +if [ -p /dev/initctl ]; then + %{_sbindir}/telinit u || : +fi + +%postun +if [ "$1" = "0" ]; then + %groupremove utmp +fi + +%files +%defattr(644,root,root,755) +%doc doc/{Propaganda,Changelog,*.lsm} + +%attr(755,root,root) /bin/mountpoint +%attr(755,root,root) %{_sbindir}/* +%attr(755,root,root) %{_bindir}/last +%attr(755,root,root) %{_bindir}/lastb +%attr(755,root,root) %{_bindir}/mesg +%attr(755,root,root) %{_bindir}/utmpx-dump +%attr(2755,root,tty) %{_bindir}/wall + +%attr(640,root,root) /etc/logrotate.d/sysvinit +%ghost %{_sysconfdir}/initrunlvl +%ghost /var/run/initrunlvl +%attr(600,root,root) %ghost %{_sysconfdir}/ioctl.save +%attr(640,root,root) %ghost /var/log/faillog +%attr(660,root,utmp) %ghost /var/log/lastlog +%attr(664,root,utmp) %ghost /var/log/wtmpx +%attr(640,root,root) %ghost /var/log/btmpx + +%{_mandir}/man[158]/* +%lang(cs) %{_mandir}/cs/man[158]/* +%lang(de) %{_mandir}/de/man[158]/* +%lang(es) %{_mandir}/es/man[158]/* +%lang(fi) %{_mandir}/fi/man[158]/* +%lang(fr) %{_mandir}/fr/man[158]/* +%lang(hu) %{_mandir}/hu/man[158]/* +%lang(id) %{_mandir}/id/man[158]/* +%lang(it) %{_mandir}/it/man[158]/* +%lang(ja) %{_mandir}/ja/man[158]/* +%lang(ko) %{_mandir}/ko/man[158]/* +%lang(pl) %{_mandir}/pl/man[158]/* +%lang(ru) %{_mandir}/ru/man[158]/* +%lang(sv) %{_mandir}/sv/man[158]/* + +# devel? +#%{_includedir}/initreq.h + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.146 2008/12/08 18:45:03 arekm +- revert removal + +Revision 1.144 2008/08/20 13:12:33 shadzik +- rel 17 + +Revision 1.143 2008/08/20 12:52:46 shadzik +- add patch23 +- BR: libsepol-devel on SELinux bcond +- rel 16 + +Revision 1.142 2008/06/26 14:55:29 arekm +- rel 15; update patches from fc + +Revision 1.141 2008-04-07 08:56:32 glen +- release 14 + +Revision 1.140 2008-04-07 08:44:29 glen +- R: logrotate due logrotate.d packaging; rel 13 + +Revision 1.139 2008-03-20 20:33:57 qboosh +- P+O: virtual(init-daemon) + +Revision 1.138 2007-12-31 15:58:05 glen +- rel 12 + +Revision 1.137 2007-11-13 21:17:40 glen +- send hup to init if /dev/initctl pipe present; rel 11 + +Revision 1.136 2007-11-13 10:19:17 glen +- add ENOIOCTLCMD fix from altlinux +- `/sbin/telinit u` after glibc upgrade in this spec, not glibc + +Revision 1.135 2007-08-22 15:06:32 baggins +- release 10 +- shamelessly ripped lastlog program from shadow and added it here + +Revision 1.134 2007/07/25 11:34:28 glen +- check-files cleanup + +Revision 1.133 2007/02/12 21:23:45 glen +- tabs in preamble + +Revision 1.132 2007/02/12 00:48:34 baggins +- converted to UTF-8 + +Revision 1.131 2007/02/03 23:56:56 arekm +- rel 9; package /var/run/initrunlvl as ghost + +Revision 1.130 2006/09/08 18:04:14 glen +- rel 8 (rebuild with fixed %useradd/%groupadd macros) + +Revision 1.129 2006/06/20 18:43:19 glen +- rel 7 + +Revision 1.128 2005/12/24 22:26:32 arekm +- selinux patch replaced with less invasive one + +Revision 1.127 2005/10/17 19:41:44 baggins +- rel 6 +- obsoletes vserver-SysVinit + +Revision 1.126 2005/09/04 21:50:49 arekm +- rel 5; fix single mode (note that in sysvinit 2.86 default is sulogin not shell) + +Revision 1.125 2005/07/25 12:10:10 havner +- rel 4, rebuild for selinux + +Revision 1.124 2005/07/18 13:27:20 havner +- grr, create it first +- rel 3 + +Revision 1.123 2005/07/18 13:22:01 havner +- create btmpx in %post since pwdutils requires this file to be created + to use it (wont create it itself) + +Revision 1.122 2005/05/01 18:49:15 glen +- new spec syntax is so cool + +Revision 1.121 2005/05/01 17:31:30 glen +- use %useradd/%groupadd macros + +Revision 1.120 2005/04/18 23:43:50 mmazur +- rel 1 for th + +Revision 1.119 2005/01/19 22:07:49 adamg +- when building --without selinux, don't BR: libsepol-devel + +Revision 1.118 2004/12/26 23:24:47 qboosh +- updated for 2.86 +- updated paths,autofsck,pidof,killall5,selinux patches +- removed obsolete initctl,log-signals patches +- selinux patch updated from FC devel - R: libselinux >= 1.18, libsepol +- test release 0.1 + +Revision 1.117 2004/11/17 21:17:02 glen +- added selinux bcond; rel 9; STBR + +Revision 1.116 2004/11/01 11:19:03 marcus +- rel. 8. + +Revision 1.115 2004/10/17 06:39:55 ankry +- %groupremove support, some unification + +Revision 1.114 2004/10/08 11:19:20 qboosh +- logrotate is optional, but mingetty is required by provided inittab to access machine + +Revision 1.113 2004/10/08 08:33:15 undefine +- add bcond to build with stupid default R: values + +Revision 1.112 2004/08/23 07:54:01 qboosh +- quote CC + +Revision 1.111 2004/08/21 18:08:42 areq +- use %{__cc} + +Revision 1.110 2004/08/16 14:57:32 mmazur +- rel 7; Req libselinux >= 1.14 +- current SysVinit requires functions from libselinux that are not present + in old version of libselinux (although libselinux hasn't changed it's + soversion, the abi *has* changed, which I've learned the hard way, when + one of my servers stopped booting after I've upgraded SysVinit, but not + libselinux) +- sending to builders + +Revision 1.109 2004/07/15 22:08:59 qboosh +- updated selinux patch for libselinux 1.14; release 6 + +Revision 1.108 2004/02/25 12:59:06 qboosh +- removed old pre, there is already new one + +Revision 1.107 2004/02/25 12:54:23 qboosh +- updated selinux patch, fixed pre script, release 5 + +Revision 1.106 2003/12/26 18:28:24 arekm +- new patches (selinux support, block signals when talking with syslog, clean killall) + +Revision 1.105 2003/12/11 15:48:21 undefine +- release 3 to allow upgrade from RA + +Revision 1.104 2003/08/30 12:23:07 mmazur +- rel 2 for ac + +Revision 1.103 2003/08/04 11:35:58 qboosh +- use SUSv2-compliant chown syntax (user:group) instead of deprecated + +Revision 1.102 2003/06/29 11:24:25 areq +- add sysvinit-initctl.patch (remove create /dev/initctl) + +Revision 1.101 2003/05/25 11:00:50 malekith +- massive attack, adding Source-md5 + +Revision 1.100 2003/05/25 05:45:21 misi3k +- massive attack s/pld.org.pl/pld-linux.org/ + +Revision 1.99 2003/04/24 10:16:24 trojan +- updated to 2.85 + +Revision 1.98 2002/06/19 09:03:01 kloczek +- merge translations from KSI and Conectiva. + +Revision 1.97 2002/06/19 07:22:31 gotar +- u+w %{_bindir}/wall, +- new %doc, +- release 4. + +Revision 1.96 2002/02/22 23:28:38 kloczek +- removed all Group fields translations (our rpm now can handle translating + Group field using gettext). + +Revision 1.95 2002/01/24 00:13:00 ankry +- added man-pages tar URL + +Revision 1.94 2002/01/18 02:12:13 kloczek +- perl -pi -e "s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/" + +Revision 1.93 2002/01/13 14:02:37 kloczek +- release 3. + +Revision 1.92 2002/01/03 23:01:55 gotar +- PreReq -> Requires: /bin/awk. + +Revision 1.91 2001/12/18 20:04:53 gotar +- release 2. + +Revision 1.90 2001/12/13 22:29:22 gotar +- well, in fact not everything... + +Revision 1.89 2001/12/13 07:53:23 gotar +- ooops, everything what shall be done would be after logrotate, reverted. + +Revision 1.88 2001/12/13 07:48:12 gotar +- touch, chown and chmod on %ghost files in %post, +- Requires(post): fileutils. + +Revision 1.87 2001/12/01 17:14:27 kloczek +- updated to 2.84. + +Revision 1.86 2001/11/30 20:35:34 gotar +- fixed broken logs. + +Revision 1.85 2001/11/30 20:23:10 gotar +- added /var/log/faillog log, +- release 6. + +Revision 1.84 2001/11/12 07:10:43 ankry +- removed bogus da man pages +- release 5 + +Revision 1.83 2001/11/11 15:33:50 ankry +- added da,de,es,fi,fr,hu,id,it,ja,ko.pl man pages +- release 4 + +Revision 1.82 2001/10/30 17:24:00 gotar +- changed /var/log/wtmpx perms to 664, +- adapterized sysvinit.logrotate, +- release 3. + +Revision 1.81 2001/10/30 08:00:34 gotar +- fixed build process (/etc/sysconfig -> %{_sysconfdir} in install -d...). + +Revision 1.80 2001/10/30 07:41:54 gotar +- adapterized sysvinit.logrotate, +- release 2. + +Revision 1.79 2001/10/06 08:41:35 kloczek +- updated to 2.83. + +Revision 1.78 2001/09/20 16:19:06 saq +- don't require make (what for?) + +Revision 1.77 2001/08/28 10:53:06 kloczek +- updated to 2.82. + +Revision 1.76 2001/08/13 13:24:41 kloczek +- release 2. + +Revision 1.75 2001/08/12 19:22:24 qboosh +- added /etc/ioctl.save file (as %ghost) + +Revision 1.74 2001/08/11 11:07:35 kloczek +- updated to 2.81 and removed outdated patches. + +Revision 1.73 2001/07/26 05:42:02 saq +- reverting last change: removing new macros from %p{re,ost}{,un} + +Revision 1.71 2001/06/16 12:53:16 kloczek +- merge umask rawhide patch. + +Revision 1.70 2001/06/13 12:22:50 malekith +- added cread patch (can anybody check if it works?) +- rel 24 + +Revision 1.69 2001/04/30 16:05:13 kloczek +- added using %{rpmcflags} macro. + +Revision 1.68 2001/03/11 15:41:15 kloczek +- relase 23, +- run "/sbin/telinit u || :" in %post, +- merged OpenWall owl-bound-format patch. + +Revision 1.67 2001/02/16 05:02:59 kloczek +- release 22, +- merge wall-n, notty patches from rawhide. + +Revision 1.66 2001/02/10 08:34:53 kloczek +- release 21. + +Revision 1.65 2001/01/25 20:03:20 misiek +- Massive attack. We use -O0 instead -O flags while debug enabled. + +Revision 1.64 2000/12/28 14:52:46 baggins +- it does not need static glibc just the correct CFLAGS ;) + +Revision 1.63 2000/12/04 18:25:49 kloczek +- release 20. + +Revision 1.62 2000/12/04 12:51:55 qboosh +- fix manual: telinit(8) is in init(8), not halt(8) + +Revision 1.61 2000/10/10 21:10:56 kloczek +- release 19: use new rpm automation suit. + +Revision 1.60 2000/09/02 01:47:21 baggins +- release 18 +- fixed wtmpx for good + +Revision 1.59 2000/09/01 13:42:32 baggins +- release 17 +- DONT ROTATE lastlog, IT DOES NOT GROW + +Revision 1.58 2000/08/29 14:01:10 baggins +- release 16 +- better wtmpx patch + +Revision 1.57 2000/07/15 05:04:02 kloczek +- release 15, +- added login to Requires list. + +Revision 1.56 2000/07/13 11:54:38 mkochano +- Fixed 'postun' section. + +Revision 1.55 2000/07/11 13:27:43 baggins +- release 13 +- added patch to sulogin to recognize blowfish passwords + +Revision 1.54 2000/07/04 02:41:17 kloczek +- merge rawhide patches. + +Revision 1.53 2000/07/03 21:21:19 zagrodzki +- /bin/awk + +Revision 1.52 2000/07/03 21:21:04 zagrodzki +- prereq: awk + +Revision 1.51 2000/06/09 07:22:45 kloczek +- added using %{__make} macro. + +Revision 1.50 2000/05/26 06:29:25 mkochano +- Changed (60 -> 22) gid of group utmp created in %post to match value from + PLD-doc/uid_gid.db.txt. + +Revision 1.49 2000/05/24 14:16:12 zagrodzki +- removed update-db from %pre/%post +- release++ + +Revision 1.48 2000/05/17 00:36:13 kloczek +- spec adapterized. <<Diff was trimmed, longer than 597 lines>> ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/SysVinit.spec?r1=1.145&r2=1.146&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
