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
10 Group: Applications/Shells
11 Group(de): Applikationen/Shells
12 Group(pl): Aplikacje/Pow³oki
13 Source0: ftp://sunsite.unc.edu/pub/Linux/system/shells/%{name}-linux-%{version}.tar.gz
14 Patch0: %{name}-make.patch
15 Patch1: %{name}-mknodes.patch
16 Patch2: %{name}-fd.patch
17 Patch3: %{name}-exit.patch
18 Patch4: %{name}-echo.patch
19 Patch5: %{name}-mksyntax.patch
20 Patch6: %{name}-linux-sighup.patch
21 Patch7: %{name}-linux-mkinit.patch
24 BuildRequires: glibc-static
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Conflicts: mkinitrd <= 1.7
31 ash is a bourne shell clone from Berkeley. It supports all of the
32 standard Bourne shell commands and has the advantage of supporting
33 them while remaining considerably smaller than bash.
36 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
37 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
38 weniger Platz beansprucht als bash.
41 ash est un clone Berkeley du shell Bourne. Il gère toutes les
42 commandes standard du shell Bourne et a l'avantage de les gérer tout
43 en restant considérablement plus petit que bash.
46 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
47 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
50 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
51 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
55 Summary: Small bourne shell from Berkeley
56 Summary(de): Kleine Bourne-Shell von Berkeley
57 Summary(fr): Shell Bourne réduit de Berkeley
58 Summary(pl): Ma³y shell bourne'a
59 Summary(tr): Ufak bir bourne kabuðu
60 Group: Applications/Shells
61 Group(de): Applikationen/Shells
62 Group(pl): Aplikacje/Pow³oki
65 Conflicts: mkinitrd <= 1.7
68 ash is a bourne shell clone from Berkeley. It supports all of the
69 standard Bourne shell commands and has the advantage of supporting
70 them while remaining considerably smaller than bash.
72 %description static -l de
73 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
74 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
75 weniger Platz beansprucht als bash.
77 %description static -l fr
78 ash est un clone Berkeley du shell Bourne. Il gère toutes les
79 commandes standard du shell Bourne et a l'avantage de les gérer tout
80 en restant considérablement plus petit que bash.
82 %description static -l pl
83 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
84 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
86 %description static -l tr
87 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
88 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
92 %setup -q -n ash-linux-%{version}
103 %{__make} OPT_FLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" STATIC=-static
105 %{__make} OPT_FLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
108 rm -rf $RPM_BUILD_ROOT
109 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
111 install sh $RPM_BUILD_ROOT%{_bindir}/ash
112 install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static
113 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
114 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
115 ln -sf ash $RPM_BUILD_ROOT/%{_bindir}/bsh
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