1 Summary: Small bourne shell from Berkeley
2 Summary(de): Kleine Bourne-Shell von Berkeley
3 Summary(fr): Shell Bourne réduit de Berkeley
4 Summary(pl): Ma³y shell bourne'a
5 Summary(tr): Ufak bir bourne kabuðu
12 Source: ftp://sunsite.unc.edu/pub/Linux/system/shells/ash-linux-%{version}.tar.gz
13 Patch0: ash-make.patch
14 Patch1: ash-mknodes.patch
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Conflicts: mkinitrd <= 1.7
21 ash is a bourne shell clone from Berkeley. It supports all of the standard
22 Bourne shell commands and has the advantage of supporting them while
23 remaining considerably smaller than bash.
26 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle Standard-Bourne-Shell-
27 Befehle unterstützt und dennoch erheblich weniger Platz beansprucht als bash.
30 ash est un clone Berkeley du shell Bourne. Il gère toutes les commandes
31 standard du shell Bourne et a l'avantage de les gérer tout en restant
32 considérablement plus petit que bash.
35 Ash jest klonem shell'a Bourne'a z Berkely. Obs³uguje standardowe komendy
36 shell'a Bourne'a i jest mniejszy ni¿ bash.
39 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
40 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
44 Summary: Small bourne shell from Berkeley
45 Summary(de): Kleine Bourne-Shell von Berkeley
46 Summary(fr): Shell Bourne réduit de Berkeley
47 Summary(pl): Ma³y shell bourne'a
48 Summary(tr): Ufak bir bourne kabuðu
53 Conflicts: mkinitrd <= 1.7
56 ash is a bourne shell clone from Berkeley. It supports all of the standard
57 Bourne shell commands and has the advantage of supporting them while
58 remaining considerably smaller than bash.
60 %description static -l de
61 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle Standard-Bourne-Shell-
62 Befehle unterstützt und dennoch erheblich weniger Platz beansprucht als bash.
64 %description static -l fr
65 ash est un clone Berkeley du shell Bourne. Il gère toutes les commandes
66 standard du shell Bourne et a l'avantage de les gérer tout en restant
67 considérablement plus petit que bash.
69 %description static -l pl
70 Ash jest klonem shell'a Bourne'a z Berkely. Obs³uguje standardowe komendy
71 shell'a Bourne'a i jest mniejszy ni¿ bash.
73 %description static -l tr
74 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
75 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
79 %setup -q -n ash-linux-%{version}
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT/{bin,%{_mandir}/man1}
90 install sh $RPM_BUILD_ROOT/bin/ash
91 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
92 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
93 ln -sf ash $RPM_BUILD_ROOT/bin/bsh
98 install sh $RPM_BUILD_ROOT/bin/ash.static
100 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
103 if [ ! -f /etc/shells ]; then
104 echo "/bin/ash" > /etc/shells
105 echo "/bin/bsh" >> /etc/shells
107 if ! grep '^/bin/ash$' /etc/shells > /dev/null; then
108 echo "/bin/ash" >> /etc/shells
110 if ! grep '^/bin/bsh$' /etc/shells > /dev/null; then
111 echo "/bin/bsh" >> /etc/shells
116 if [ ! -f /etc/shells ]; then
117 echo "/bin/ash.static" >> /etc/shells
119 if ! grep '^/bin/ash.static$' /etc/shells > /dev/null; then
120 echo "/bin/ash.static" >> /etc/shells
125 if [ "$0" = 0 ]; then
126 grep -v /bin/ash /etc/shells | grep -v /bin/bsh | grep -v /bin/ash.static > /etc/shells.new
127 mv /etc/shells.new /etc/shells
131 if [ "$0" = 0 ]; then
132 grep -v /bin/ash /etc/shells | grep -v /bin/bsh > /etc/shells.new
133 mv /etc/shells.new /etc/shells
137 for n in ash bsh ash.static; do
138 echo -n "Looking for $n in /etc/shells... "
139 if ! grep "^/bin/${n}\$" /etc/shells > /dev/null; then
141 echo "${n} missing from /etc/shells" >&2
148 rm -rf $RPM_BUILD_ROOT
151 %defattr(644,root,root,755)
152 %attr(755,root,root) /bin/ash
157 %defattr(644,root,root,755)
158 %attr(755,root,root) /bin/ash.static