]> git.pld-linux.org Git - packages/bash.git/commitdiff
- umask in scripts, other fixes/cosmetics where needed
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Dec 2002 01:44:29 +0000 (01:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash.spec -> 1.115

bash.spec

index 3cc4e177b1d3b901ddb1064a483aba4fb24f9883..188c6f9789429dd533c10acf77f1e59a2aa51ae7 100644 (file)
--- a/bash.spec
+++ b/bash.spec
@@ -51,6 +51,7 @@ BuildRequires:        ncurses-static >= 5.2
 BuildRequires: readline-static >= 4.3
 %endif
 Requires(post,preun):  grep
+Requires(preun):       fileutils
 Requires:      readline >= 4.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     bash-doc
@@ -155,6 +156,7 @@ Summary(pl):        Statycznie zlinkowany GNU Bourne Again Shell (bash)
 Group:         Applications/Shells
 Requires:      %{name}
 Requires(post,preun):  grep
+Requires(preun):       fileutils
 
 %description static
 Bash is a GNU project sh-compatible shell or command language
@@ -251,8 +253,8 @@ install %{SOURCE4} $RPM_BUILD_ROOT/etc/skel/.bashrc
 rm -rf $RPM_BUILD_ROOT
 
 %post
+umask 022
 if [ ! -f /etc/shells ]; then
-       umask 022
        echo "/bin/bash" > /etc/shells
        echo "/bin/rbash" >> /etc/shells
 else
@@ -266,9 +268,16 @@ fi
 
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
+%preun
+if [ "$1" = "0" ]; then
+       umask 022
+       grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
+       mv -f /etc/shells.new /etc/shells
+fi
+
 %post static
+umask 022
 if [ ! -f /etc/shells ]; then
-       umask 022
        echo "/bin/bash.static" > /etc/shells
 else
        if ! grep -q '^/bin/bash.static$' /etc/shells; then
@@ -276,13 +285,6 @@ else
        fi
 fi
 
-%preun
-if [ "$1" = "0" ]; then
-       umask 022
-       grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
-       mv -f /etc/shells.new /etc/shells
-fi
-
 %preun static
 if [ "$1" = "0" ]; then
        umask 022
@@ -317,7 +319,6 @@ fi
 %lang(nl) %{_mandir}/nl/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
 
-
 %{?_without_static:#}%files static
 %{?_without_static:#}%defattr(644,root,root,755)
 %{?_without_static:#}%attr(755,root,root) /bin/bash.static
This page took 0.094948 seconds and 4 git commands to generate.