Changeset 293
- Timestamp:
- Feb 4, 2012, 12:53:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified spec/trunk/SPECS/bash.spec ¶
r236 r293 19 19 #Buildroot: %{_tmppath}/%{name}-%{version}-root 20 20 #Conflicts: mkinitrd <= 1.7 21 22 Provides: /@unixroot/bin/bash 21 23 22 24 %description … … 56 58 %install 57 59 rm -rf %{buildroot} 58 mkdir -p %{buildroot}/@unixroot/bin59 60 mkdir -p %{buildroot}%{_bindir} 60 61 61 62 cp -p usr/bin/bash.exe %{buildroot}%{_bindir}/bash.exe 62 ln -s %{_bindir}bash.exe %{buildroot}/@unixroot/bin/bash63 64 #%post65 #if [ ! -f /etc/shells ]; then66 # echo "/bin/ash" > /etc/shells67 # echo "/bin/bsh" >> /etc/shells68 #else69 # if ! grep '^/bin/ash$' /etc/shells > /dev/null; then70 # echo "/bin/ash" >> /etc/shells71 # fi72 # if ! grep '^/bin/bsh$' /etc/shells > /dev/null; then73 # echo "/bin/bsh" >> /etc/shells74 # fi75 #fi76 77 #%postun78 #if [ "$1" = "0" ]; then79 # grep -v '^/bin/ash' < /etc/shells | grep -v '^/bin/bsh' > /etc/shells.new80 # mv /etc/shells.new /etc/shells81 #fi82 83 %verifyscript84 #85 #for n in ash bsh; do86 # echo -n "Looking for $n in /etc/shells... "87 # if ! grep "^/bin/${n}\$" /etc/shells > /dev/null; then88 # echo "missing"89 # echo "${n} missing from /etc/shells" >&290 # else91 # echo "found"92 # fi93 #done94 63 95 64 %clean … … 98 67 %files 99 68 %defattr(-,root,root) 100 /@unixroot/bin/bash101 69 %{_bindir}/bash.exe 102 #/bin/bsh103 70 #%{_mandir}/man1/* 104 71 105 72 %changelog 73 * Sat Feb 04 2012 yd 74 - added Provides for virtual /@unixroot/bin/bash file. 75 - Remove symlinks from /bin. 76 106 77 * Wed Nov 16 2011 yd 107 78 - keep all executables to /usr/bin and place symlinks in /bin
Note:
See TracChangeset
for help on using the changeset viewer.