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: %{name}-make.patch
14 Patch1: %{name}-mknodes.patch
16 Patch3: ash-exit.patch
17 Patch4: ash-echo.patch
18 Patch5: ash-mksyntax.patch
19 Patch6: ash-linux-sighup.patch
20 Patch7: ash-linux-mkinit.patch
23 BuildRequires: glibc-static
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Conflicts: mkinitrd <= 1.7
30 ash is a bourne shell clone from Berkeley. It supports all of the
31 standard Bourne shell commands and has the advantage of supporting
32 them while remaining considerably smaller than bash.
35 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
36 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
37 weniger Platz beansprucht als bash.
40 ash est un clone Berkeley du shell Bourne. Il gère toutes les
41 commandes standard du shell Bourne et a l'avantage de les gérer tout
42 en restant considérablement plus petit que bash.
45 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
46 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
49 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
50 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
54 Summary: Small bourne shell from Berkeley
55 Summary(de): Kleine Bourne-Shell von Berkeley
56 Summary(fr): Shell Bourne réduit de Berkeley
57 Summary(pl): Ma³y shell bourne'a
58 Summary(tr): Ufak bir bourne kabuðu
63 Conflicts: mkinitrd <= 1.7
66 ash is a bourne shell clone from Berkeley. It supports all of the
67 standard Bourne shell commands and has the advantage of supporting
68 them while remaining considerably smaller than bash.
70 %description static -l de
71 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
72 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
73 weniger Platz beansprucht als bash.
75 %description static -l fr
76 ash est un clone Berkeley du shell Bourne. Il gère toutes les
77 commandes standard du shell Bourne et a l'avantage de les gérer tout
78 en restant considérablement plus petit que bash.
80 %description static -l pl
81 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
82 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
84 %description static -l tr
85 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
86 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
90 %setup -q -n ash-linux-%{version}
101 %{__make} OPT_FLAGS="$RPM_OPT_FLAGS" STATIC=-static
103 %{__make} OPT_FLAGS="$RPM_OPT_FLAGS"
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
109 install sh $RPM_BUILD_ROOT%{_bindir}/ash
110 install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static
111 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
112 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
113 ln -sf ash $RPM_BUILD_ROOT/%{_bindir}/bsh
115 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
118 if [ ! -f /etc/shells ]; then
119 echo "%{_bindir}/ash" > /etc/shells
120 echo "%{_bindir}/bsh" >> /etc/shells
122 if ! grep '^%{_bindir}/ash$' /etc/shells > /dev/null; then
123 echo "%{_bindir}/ash" >> /etc/shells
125 if ! grep '^%{_bindir}/bsh$' /etc/shells > /dev/null; then
126 echo "%{_bindir}/bsh" >> /etc/shells
131 if [ ! -f /etc/shells ]; then
132 echo "%{_bindir}/ash.static" >> /etc/shells
134 if ! grep '^%{_bindir}/ash.static$' /etc/shells > /dev/null; then
135 echo "%{_bindir}/ash.static" >> /etc/shells
140 if [ "$0" = 0 ]; then
141 grep -v %{_bindir}/ash /etc/shells | grep -v %{_bindir}/bsh | grep -v %{_bindir}/ash.static > /etc/shells.new
142 mv -f /etc/shells.new /etc/shells
146 if [ "$0" = 0 ]; then
147 grep -v %{_bindir}/ash /etc/shells | grep -v %{_bindir}/bsh > /etc/shells.new
148 mv -f /etc/shells.new /etc/shells
152 for n in ash bsh ash.static; do
153 echo -n "Looking for $n in /etc/shells... "
154 if ! grep "^%{_bindir}/${n}\$" /etc/shells > /dev/null; then
156 echo "${n} missing from /etc/shells" >&2
163 rm -rf $RPM_BUILD_ROOT
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_bindir}/ash
168 %attr(755,root,root) %{_bindir}/bsh
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_bindir}/ash.static