packages: neatx/neatx.spec - fix perms

arekm arekm at pld-linux.org
Wed Jul 15 10:46:53 CEST 2009


Author: arekm                        Date: Wed Jul 15 08:46:53 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix perms

---- Files affected:
packages/neatx:
   neatx.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/neatx/neatx.spec
diff -u packages/neatx/neatx.spec:1.6 packages/neatx/neatx.spec:1.7
--- packages/neatx/neatx.spec:1.6	Wed Jul 15 10:25:49 2009
+++ packages/neatx/neatx.spec	Wed Jul 15 10:46:48 2009
@@ -52,7 +52,7 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_sysconfdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var/lib/neatx/{home,sessions}}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -67,7 +67,12 @@
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-%useradd -u 160 -d %{_libdir}/neatx/home -s %{_libdir}/neatx/nxserver-login-wrapper -g users -c "Neatx User" nx
+%useradd -u 160 -d /var/lib/neatx/home -s %{_libdir}/neatx/nxserver-login-wrapper -g users -G wheel -c "Neatx User" nx
+
+%postun
+if [ "$1" = "0" ]; then
+	%userremove nx
+fi
 
 %post   -p <lua>
 %lua_add_etc_shells %{_libdir}/neatx/nxserver-login-wrapper
@@ -82,6 +87,9 @@
 
 %doc doc/*
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/neatx.conf
+%dir /var/lib/neatx
+%attr(750,nx,root) /var/lib/neatx/home
+%attr(1777,root,root) /var/lib/neatx/sessions
 %dir %{_libdir}/neatx
 %attr(755,root,root) %{_libdir}/neatx/*
 %{_datadir}/neatx
@@ -96,6 +104,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2009/07/15 08:46:48  arekm
+- fix perms
+
 Revision 1.6  2009/07/15 08:25:49  arekm
 - more R
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/neatx/neatx.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list