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 Source0: ftp://sunsite.unc.edu/pub/Linux/system/shells/%{name}-linux-%{version}.tar.gz
13 Patch0: ash-make.patch
14 Patch1: ash-mknodes.patch
17 BuildRequires: glibc-static
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Conflicts: mkinitrd <= 1.7
22 ash is a bourne shell clone from Berkeley. It supports all of the
23 standard Bourne shell commands and has the advantage of supporting
24 them while remaining considerably smaller than bash.
27 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
28 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
29 weniger Platz beansprucht als bash.
32 ash est un clone Berkeley du shell Bourne. Il gère toutes les
33 commandes standard du shell Bourne et a l'avantage de les gérer tout
34 en restant considérablement plus petit que bash.
37 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
38 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
41 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
42 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
46 Summary: Small bourne shell from Berkeley
47 Summary(de): Kleine Bourne-Shell von Berkeley
48 Summary(fr): Shell Bourne réduit de Berkeley
49 Summary(pl): Ma³y shell bourne'a
50 Summary(tr): Ufak bir bourne kabuðu
55 Conflicts: mkinitrd <= 1.7
58 ash is a bourne shell clone from Berkeley. It supports all of the
59 standard Bourne shell commands and has the advantage of supporting
60 them while remaining considerably smaller than bash.
62 %description static -l de
63 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
64 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
65 weniger Platz beansprucht als bash.
67 %description static -l fr
68 ash est un clone Berkeley du shell Bourne. Il gère toutes les
69 commandes standard du shell Bourne et a l'avantage de les gérer tout
70 en restant considérablement plus petit que bash.
72 %description static -l pl
73 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
74 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
76 %description static -l tr
77 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
78 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
82 %setup -q -n ash-linux-%{version}
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT/{bin,%{_mandir}/man1}
93 install sh $RPM_BUILD_ROOT/bin/ash
94 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
95 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
96 ln -sf ash $RPM_BUILD_ROOT/bin/bsh
99 %{__make} STATIC=-static
101 install sh $RPM_BUILD_ROOT/bin/ash.static
103 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
106 if [ ! -f /etc/shells ]; then
107 echo "/bin/ash" > /etc/shells
108 echo "/bin/bsh" >> /etc/shells
110 if ! grep '^/bin/ash$' /etc/shells > /dev/null; then
111 echo "/bin/ash" >> /etc/shells
113 if ! grep '^/bin/bsh$' /etc/shells > /dev/null; then
114 echo "/bin/bsh" >> /etc/shells
119 if [ ! -f /etc/shells ]; then
120 echo "/bin/ash.static" >> /etc/shells
122 if ! grep '^/bin/ash.static$' /etc/shells > /dev/null; then
123 echo "/bin/ash.static" >> /etc/shells
128 if [ "$0" = 0 ]; then
129 grep -v /bin/ash /etc/shells | grep -v /bin/bsh | grep -v /bin/ash.static > /etc/shells.new
130 mv /etc/shells.new /etc/shells
134 if [ "$0" = 0 ]; then
135 grep -v /bin/ash /etc/shells | grep -v /bin/bsh > /etc/shells.new
136 mv /etc/shells.new /etc/shells
140 for n in ash bsh ash.static; do
141 echo -n "Looking for $n in /etc/shells... "
142 if ! grep "^/bin/${n}\$" /etc/shells > /dev/null; then
144 echo "${n} missing from /etc/shells" >&2
151 rm -rf $RPM_BUILD_ROOT
154 %defattr(644,root,root,755)
155 %attr(755,root,root) /bin/ash
160 %defattr(644,root,root,755)
161 %attr(755,root,root) /bin/ash.static