]> git.pld-linux.org Git - packages/SysVinit.git/blobdiff - SysVinit.spec
- use macros in %{pre,post}{,un}
[packages/SysVinit.git] / SysVinit.spec
index 9f700f3801a6145eabc406db12fe79bfdfd93ebb..9d63d99d0fa2bc47a338a5f20acfcc89c8c04cfa 100644 (file)
 Summary:       System V initialization program
 Summary(de):   System V-Intialisierungsprogramm
-Summary(fr):   Programme d'initialisation Sys V.
+Summary(fr):   Programme d'initialisation Sys V
 Summary(pl):   Program inicjalizuj±cy w Systemie V 
 Summary(tr):   System V baþlatma programý
 Name:          SysVinit
-Version:       2.76
-Release:       10
-Copyright:     GPL
+Version:       2.78
+Release:       24
+License:       GPL
 Group:         Base
+Group(de):     Gründsätzlich
 Group(pl):     Podstawowe
 Source0:       ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-%{version}.tar.gz
-Source1:       sysvinit-initscript
-Source2:       sysvinit.syslog
-Patch0:                sysvinit-misc.patch
-Patch1:                sysvinit-man.patch
-Requires:      /dev/initctl
-Buildroot:     /tmp/%{name}-%{version}-root
+Source1:       sysvinit.logrotate
+Patch0:                sysvinit-paths.patch
+Patch1:                sysvinit-bequiet.patch
+Patch2:                sysvinit-md5-bigendian.patch
+Patch3:                sysvinit-wtmp.patch
+Patch4:                sysvinit-man.patch
+Patch5:                sysvinit-sigint.patch
+Patch6:                sysvinit-ai64.patch
+Patch7:                sysvinit-halt.patch
+Patch8:                sysvinit-blowfish.patch
+Patch9:                sysvinit-notty.patch
+Patch10:       sysvinit-wall-n.patch
+Patch11:       sysvinit-owl-bound-format.patch
+Patch12:       sysvinit-cread.patch
+Patch13:       sysvinit-umask.patch
+BuildRequires: glibc-devel
+Prereq:                shadow
+Prereq:                make
+Prereq:                /bin/awk
+Requires:      logrotate
+Requires:      mingetty
+Requires:      login
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-SysVinit is the first program started by the Linux kernel when the system
-boots, controlling the startup, running, and shutdown of all other
-programs.
-
-%description -l pl
-SysVinit jest pierwszym programem uruchamianym przez j±dro, podczas 
-startu systemu. Kontroluje start, pracê oraz zamykanie wszystkich
-innych programów.
+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
-SysVinit ist das erste Programm, das beim Systemstart vom Linux-Kernel 
+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 fr
-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.
+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
+SysVinit jest pierwszym programem uruchamianym przez j±dro, podczas
+startu systemu. Kontroluje start, pracê oraz zamykanie wszystkich
+innych programów.
 
 %description -l tr
 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.
+programdýr. Diðer programlarýn baþlamalarýný, çalýþmalarýný ve
+sonlanmalarýný saðlar/denetler.
 
 %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
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
 
 %build
-make -C src OPTIMIZE="$RPM_OPT_FLAGS"
+%{__make} -C src LCRYPT="-lcrypt" \
+       OPTIMIZE="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_mandir}/man{1,5,8}} \
+       $RPM_BUILD_ROOT/{etc/{logrotate.d,sysconfig},var/log}
 
-install -d $RPM_BUILD_ROOT%{_prefix}/{bin,share/man/man{1,5,8}}
-install -d $RPM_BUILD_ROOT/{sbin,etc/{log.d,rc.d},var/{run,log}}
-
-make install -C src \
+%{__make} install -C src \
        ROOT=$RPM_BUILD_ROOT \
        BIN_OWNER=`id -u` \
        BIN_GROUP=`id -g`
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/initscript
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/log.d/lastlog
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sysvinit
 
-ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT/etc
+ln -sf ../var/run/initrunlvl $RPM_BUILD_ROOT%{_sysconfdir}
 ln -sf killall5 $RPM_BUILD_ROOT/sbin/pidof
 
-:> $RPM_BUILD_ROOT/var/log/lastlog
-:> $RPM_BUILD_ROOT/var/run/utmpx
+touch $RPM_BUILD_ROOT/var/log/{lastlog,wtmpx,btmpx}
 
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
 
 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/reboot.8
-echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
+echo .so init.8 > $RPM_BUILD_ROOT%{_mandir}/man8/telinit.8
 echo .so halt.8 > $RPM_BUILD_ROOT%{_mandir}/man8/poweroff.8
+echo .so last.1 > $RPM_BUILD_ROOT%{_mandir}/man1/lastb.1
+
+gzip -9nf doc/Propaganda debian/changelog doc/sysvinit-%{version}.lsm  
+
+%pre
+GROUP=utmp; GID=22; %groupadd
+
+%post
+/sbin/telinit u || :
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       doc/Propaganda debian/changelog doc/sysvinit-%{version}.lsm  
+%postun
+GROUP=utmp; %groupdel
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz  
+%doc doc/Propaganda.gz debian/changelog.gz doc/sysvinit-%{version}.lsm.gz
 
 %attr(755,root,root) /sbin/*
-%attr(755,root,root) %{_bindir}/*
-
-%attr(755,root,root) %config /etc/rc.d/initscript
-%attr(640,root,root) /etc/log.d/*
-%ghost /etc/initrunlvl
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /var/log/*
-%config(noreplace) %verify(not size mtime md5) /var/run/*
-
-%{_mandir}/man[158]/*
-
-%changelog
-* Sat May 22 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [2.76-10]
-- (u,w)tmp changed to (w,u)tmpx -- Unix98 comliant (patch),
-- removed unused `lastb',
-- utpmdump changed to utmpx-dump, (patch)
-- changed prefix for initscript to /etc/rc.d instead /etc (patch)
-- added /etc/log.d/last (for logrotate) & /var/log/lastlog,
-- removed sgid bit from `wall' -- following Debian developers advise ;) 
-- %ghost /etc/initrunlvl,
-- added /var/run/utmpx,
-- fixed all patches.
-
-* Tue May 11 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.74-9]
-- now package is FHS 2.0 compliant.
-
-* Tue Apr 27 1999 Wojciech "Sas" Cieciwa <cieciwa@alpha.zarz.agh.edu.pl>
-- removed /dev/initctl, now this is part of dev package.
-
-* Tue Apr 20 1999 Artur Frysiak <wiget@pld.org.pl>
-  [2.74-8]
-- compiled on rpm 3
-
-* Tue Feb  9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
-  [2.74-6d]
-- gzipping instead bzipping
-- cosmetic changes
-
-* Fri Jun 12 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [2.74-5d]
-- build against glibc-2.1,
-- added pl translation,
-- changed prmissions of binaries to 711,
-- removed a suid bit from wall,
-- moved %changelog at the end of spec.
-- added a Chris Evans's <chris@ferret.lmh.ox.ac.uk> patches,
-- start at RH spec file.
+%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(2555,root,tty) %{_bindir}/wall
+
+%attr(640,root,root) /etc/logrotate.d/*
+%ghost %{_sysconfdir}/initrunlvl
+%attr(660,root,utmp) %ghost /var/log/lastlog
+%attr(660,root,utmp) %ghost /var/log/wtmpx
+%attr(640,root,root) %ghost /var/log/btmpx
+
+%{_mandir}/man*/*
This page took 0.037711 seconds and 4 git commands to generate.