SPECS: utempter.spec - create utmpx in %post, so no reboot is need...
glen
glen at pld-linux.org
Tue Jul 12 19:16:35 CEST 2005
Author: glen Date: Tue Jul 12 17:16:35 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- create utmpx in %post, so no reboot is needed for file to be created
(consider cases when admin boots from livecd and starts installing pld over ssh)
---- Files affected:
SPECS:
utempter.spec (1.52 -> 1.53)
---- Diffs:
================================================================
Index: SPECS/utempter.spec
diff -u SPECS/utempter.spec:1.52 SPECS/utempter.spec:1.53
--- SPECS/utempter.spec:1.52 Fri May 13 18:53:11 2005
+++ SPECS/utempter.spec Tue Jul 12 19:16:30 2005
@@ -7,7 +7,7 @@
Summary(uk): đŇÉ׌ĚĹĘĎ×ÁÎÁ ĐŇĎÇŇÁÍÁ ÄĚŃ ×ÎĹÓĹÎÎŃ ÚÍŚÎ ÄĎ utmp/wtmp
Name: utempter
Version: 0.5.5
-Release: 5
+Release: 5.1
License: MIT or LGPL
Group: Base
Source0: %{name}-%{version}.tar.gz
@@ -85,7 +85,15 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+if [ ! -f /var/run/utmpx ]; then
+ umask 2
+ touch /var/run/utmpx
+ chown root.utmp /var/run/utmpx
+ chmod 0664 /var/run/utmpx
+fi
+
%postun -p /sbin/ldconfig
%files
@@ -107,12 +115,16 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.53 2005/07/12 17:16:30 glen
+- create utmpx in %post, so no reboot is needed for file to be created
+ (consider cases when admin boots from livecd and starts installing pld over ssh)
+
Revision 1.52 2005/05/13 16:53:11 baggins
- release 5
- prereq group(utmp) instead of SysVinit
Revision 1.51 2004/09/29 17:34:16 undefine
--fix user, utmp is not needed..
+- fix user, utmp is not needed..
Revision 1.50 2004/09/29 17:33:40 undefine
- release 4 for AC
@@ -172,7 +184,7 @@
- removed Prereq: /sbin/ldconfig (glibc content).
Revision 1.33 2002/01/18 02:15:16 kloczek
-perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
+- perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
Revision 1.32 2001/11/29 23:53:35 gotar
- %description changes/adds.
@@ -190,10 +202,10 @@
- release 5.
Revision 1.27 2001/05/03 01:14:04 qboosh
-- adapterized and made spec %%debug ready or added using %%rpm*flags macros
+- adapterized and made spec %debug ready or added using %rpm*flags macros
Revision 1.26 2000/06/09 07:24:01 kloczek
-- added using %%{__make} macro.
+- added using %{__make} macro.
Revision 1.25 2000/06/07 04:41:53 kloczek
- spec adapterized.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/utempter.spec?r1=1.52&r2=1.53&f=u
More information about the pld-cvs-commit
mailing list