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
17 BuildRequires: glibc-static
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Conflicts: mkinitrd <= 1.7
24 ash is a bourne shell clone from Berkeley. It supports all of the
25 standard Bourne shell commands and has the advantage of supporting
26 them while remaining considerably smaller than bash.
29 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
30 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
31 weniger Platz beansprucht als bash.
34 ash est un clone Berkeley du shell Bourne. Il gère toutes les
35 commandes standard du shell Bourne et a l'avantage de les gérer tout
36 en restant considérablement plus petit que bash.
39 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
40 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
43 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
44 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
48 Summary: Small bourne shell from Berkeley
49 Summary(de): Kleine Bourne-Shell von Berkeley
50 Summary(fr): Shell Bourne réduit de Berkeley
51 Summary(pl): Ma³y shell bourne'a
52 Summary(tr): Ufak bir bourne kabuðu
57 Conflicts: mkinitrd <= 1.7
60 ash is a bourne shell clone from Berkeley. It supports all of the
61 standard Bourne shell commands and has the advantage of supporting
62 them while remaining considerably smaller than bash.
64 %description static -l de
65 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
66 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
67 weniger Platz beansprucht als bash.
69 %description static -l fr
70 ash est un clone Berkeley du shell Bourne. Il gère toutes les
71 commandes standard du shell Bourne et a l'avantage de les gérer tout
72 en restant considérablement plus petit que bash.
74 %description static -l pl
75 Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
76 komendy shell'a Bourne'a i jest mniejszy ni¿ bash.
78 %description static -l tr
79 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
80 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
84 %setup -q -n ash-linux-%{version}
89 %{__make} OPT_FLAGS="$RPM_OPT_FLAGS" STATIC=-static
91 %{__make} OPT_FLAGS="$RPM_OPT_FLAGS"
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
97 install sh $RPM_BUILD_ROOT%{_bindir}/ash
98 install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static
99 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
100 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
101 ln -sf ash $RPM_BUILD_ROOT/%{_bindir}/bsh
103 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
106 if [ ! -f /etc/shells ]; then
107 echo "%{_bindir}/ash" > /etc/shells
108 echo "%{_bindir}/bsh" >> /etc/shells
110 if ! grep '^%{_bindir}/ash$' /etc/shells > /dev/null; then
111 echo "%{_bindir}/ash" >> /etc/shells
113 if ! grep '^%{_bindir}/bsh$' /etc/shells > /dev/null; then
114 echo "%{_bindir}/bsh" >> /etc/shells
119 if [ ! -f /etc/shells ]; then
120 echo "%{_bindir}/ash.static" >> /etc/shells
122 if ! grep '^%{_bindir}/ash.static$' /etc/shells > /dev/null; then
123 echo "%{_bindir}/ash.static" >> /etc/shells
128 if [ "$0" = 0 ]; then
129 grep -v %{_bindir}/ash /etc/shells | grep -v %{_bindir}/bsh | grep -v %{_bindir}/ash.static > /etc/shells.new
130 mv -f /etc/shells.new /etc/shells
134 if [ "$0" = 0 ]; then
135 grep -v %{_bindir}/ash /etc/shells | grep -v %{_bindir}/bsh > /etc/shells.new
136 mv -f /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 "^%{_bindir}/${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) %{_bindir}/ash
156 %attr(755,root,root) %{_bindir}/bsh
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/ash.static