Author: glen                         Date: Wed Feb  2 23:31:11 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.9.1, edit /etc/shells with LUA

---- Files affected:
packages/posh:
   posh.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: packages/posh/posh.spec
diff -u packages/posh/posh.spec:1.10 packages/posh/posh.spec:1.11
--- packages/posh/posh.spec:1.10        Sun Mar 15 22:09:52 2009
+++ packages/posh/posh.spec     Thu Feb  3 00:31:05 2011
@@ -2,15 +2,14 @@
 Summary:       Policy-compliant Ordinary SHell
 Summary(pl.UTF-8):     Policy-compliant Ordinary SHell - zwykła powłoka zgodna 
z polityką Debiana
 Name:          posh
-Version:       0.6.17
-Release:       0.1
+Version:       0.9.1
+Release:       1
 License:       GPL v2+
 Group:         Applications/Shells
 Source0:       
http://ftp.debian.org/debian/pool/main/p/posh/%{name}_%{version}.tar.gz
-# Source0-md5: 7c72c2fb1a2a77131133f7b22737b878
+# Source0-md5: d31d8f7570691bb3ec104d34be503b4b
 URL:           http://packages.debian.org/unstable/source/posh
-Requires(post):        grep
-Requires(preun):       sed >= 4.0
+BuildRequires: rpmbuild(macros) >= 1.462
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _bindir                 /bin
@@ -38,25 +37,19 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-if [ ! -f /etc/shells ]; then
-       umask 022
-       echo '%{_shell}' > /etc/shells
-else
-       grep -q '^%{_shell}$' /etc/shells || echo '%{_shell}' >> /etc/shells
-fi
-
-%preun
-if [ "$1" = "0" ]; then
-       %{__sed} -i -e '/^%(echo %{_shell} | sed -e 's,/,\\/,g')$/d' /etc/shells
-fi
+%post  -p <lua>
+%lua_add_etc_shells %{_shell}
+
+%preun -p <lua>
+if arg[2] == 0 then
+       %lua_remove_etc_shells %{_shell}
+end
 
 %files
 %defattr(644,root,root,755)
@@ -69,6 +62,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2011/02/02 23:31:05  glen
+- up to 0.9.1, edit /etc/shells with LUA
+
 Revision 1.10  2009/03/15 21:09:52  duddits
 - up to 0.6.17
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/posh/posh.spec?r1=1.10&r2=1.11&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to