[packages/mksh] do pdksh migration via trigger
glen
glen at pld-linux.org
Tue Aug 6 21:46:20 CEST 2013
commit 1c7e5b2c1d292665d65648f32f4e04d5eeabe496
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Aug 6 16:42:10 2013 +0300
do pdksh migration via trigger
remove todo, https://bugs.launchpad.net/mksh/+bug/1179287 is fixed
according to baggins, http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2013-August/023615.html
mksh.spec | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/mksh.spec b/mksh.spec
index 16bad2a..6b155d8 100644
--- a/mksh.spec
+++ b/mksh.spec
@@ -1,16 +1,13 @@
#
-# TODO: https://bugs.launchpad.net/mksh/+bug/1179287
-#
# Conditional build:
%bcond_without static # static version of mksh
%bcond_without tests # rtchecks and test.sh checks
-#
-#
+
Summary: MirBSD Korn Shell
Summary(pl.UTF-8): Powłoka Korna z MirBSD
Name: mksh
Version: 47
-Release: 1
+Release: 2
License: BSD
Group: Applications/Shells
Source0: http://www.mirbsd.org/MirOS/dist/mir/mksh/%{name}-R%{version}.tgz
@@ -200,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/1c7e5b2c1d292665d65648f32f4e04d5eeabe496
More information about the pld-cvs-commit
mailing list