[packages/mksh/mksh-44] do pdksh migration via trigger

glen glen at pld-linux.org
Tue Aug 6 15:42:17 CEST 2013


commit da683b372c38bfa1ab0b76b5223edc0d3a8c114e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Aug 6 16:42:10 2013 +0300

    do pdksh migration via trigger

 mksh.spec | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/mksh.spec b/mksh.spec
index c8cddd9..ae370fc 100644
--- a/mksh.spec
+++ b/mksh.spec
@@ -7,7 +7,7 @@ Summary:	MirBSD Korn Shell
 Summary(pl.UTF-8):	Powłoka Korna z MirBSD
 Name:		mksh
 Version:	44
-Release:	7
+Release:	8
 License:	BSD
 Group:		Applications/Shells
 Source0:	http://www.mirbsd.org/MirOS/dist/mir/mksh/%{name}-R%{version}.tgz
@@ -197,11 +197,14 @@ rm -rf $RPM_BUILD_ROOT
 %post   -p %add_etc_shells -p /bin/sh /bin/ksh /bin/mksh
 %preun  -p %remove_etc_shells -p /bin/sh /bin/ksh /bin/mksh
 
-%posttrans -p %add_etc_shells -p /bin/sh /bin/ksh /bin/mksh
-
 %post	static -p %add_etc_shells -p /bin/mksh.static
 %preun	static -p %remove_etc_shells -p /bin/mksh.static
 
+%triggerpostun -p <lua> -- pdksh
+if arg[2] ~= 0 then
+%add_etc_shells /bin/sh /bin/ksh /bin/mksh
+end
+
 %files
 %defattr(644,root,root,755)
 %doc dot.mkshrc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mksh.git/commitdiff/da683b372c38bfa1ab0b76b5223edc0d3a8c114e



More information about the pld-cvs-commit mailing list