packages: neatx/neatx.spec - neatx user added; shell added

arekm arekm at pld-linux.org
Wed Jul 15 09:57:09 CEST 2009


Author: arekm                        Date: Wed Jul 15 07:57:09 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- neatx user added; shell added

---- Files affected:
packages/neatx:
   neatx.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/neatx/neatx.spec
diff -u packages/neatx/neatx.spec:1.1 packages/neatx/neatx.spec:1.2
--- packages/neatx/neatx.spec:1.1	Wed Jul 15 09:50:41 2009
+++ packages/neatx/neatx.spec	Wed Jul 15 09:57:04 2009
@@ -1,7 +1,4 @@
 # $Revision$, $Date$
-# TODO:
-# - init script
-# - user/group
 %define	snap	13
 Summary:	Open Source NX server, similar to the commercial NX server from NoMachine
 Name:		neatx
@@ -64,8 +61,20 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%useradd -u 221 -d %{_libdir}/neatx/home -s %{_libdir}/neatx/nxserver-login-wrapper -g users -c "Neatx User" neatx
+
+%post   -p <lua>
+%lua_add_etc_shells %{_libdir}/neatx/nxserver-login-wrapper
+
+%preun  -p <lua>
+if arg[2] == 0 then
+	%lua_remove_etc_shells %{_libdir}/neatx/nxserver-login-wrapper
+end
+
 %files
 %defattr(644,root,root,755)
+
 %doc doc/*
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/neatx.conf
 %dir %{_libdir}/neatx
@@ -82,6 +91,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/07/15 07:57:04  arekm
+- neatx user added; shell added
+
 Revision 1.1  2009/07/15 07:50:41  arekm
 - initial, Google NX server
 
================================================================

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



More information about the pld-cvs-commit mailing list