2 Summary: Small bourne shell from Berkeley
3 Summary(de): Kleine Bourne-Shell von Berkeley
4 Summary(fr): Shell Bourne réduit de Berkeley
5 Summary(pl): Ma³y shell bourne'a
6 Summary(tr): Ufak bir bourne kabuðu
11 Group: Applications/Shells
12 Source0: %{name}-%{version}.tar.gz
13 Patch0: %{name}-builtin.patch
14 Patch1: %{name}-echo.patch
15 Patch2: %{name}-getcwd.patch
16 Patch3: %{name}-getopt.patch
17 Patch4: %{name}-glob.patch
18 Patch5: %{name}-jobs.patch
19 Patch6: %{name}-kill.patch
20 Patch7: %{name}-makefile.patch
21 Patch8: %{name}-manpage.patch
22 Patch9: %{name}-hetio.patch
23 Patch10: %{name}-memout.patch
24 Patch11: %{name}-misc.patch
25 Patch12: %{name}-redir.patch
26 Patch13: %{name}-setmode.patch
27 Patch14: %{name}-syntax.patch
28 Patch15: %{name}-test.patch
29 Patch16: %{name}-times.patch
30 Patch17: %{name}-debian.patch
31 Patch18: %{name}-ppid.patch
32 Patch19: %{name}-freebsd.patch
33 Patch20: %{name}-sighup.patch
36 BuildRequires: glibc-static
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Conflicts: mkinitrd <= 1.7
45 ash is a bourne shell clone from Berkeley. It supports all of the
46 standard Bourne shell commands and has the advantage of supporting
47 them while remaining considerably smaller than bash.
50 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
51 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
52 weniger Platz beansprucht als bash.
55 ash est un clone Berkeley du shell Bourne. Il gère toutes les
56 commandes standard du shell Bourne et a l'avantage de les gérer tout
57 en restant considérablement plus petit que bash.
60 Ash jest klonem shella Bourne'a z Berkeley. Obs³uguje standardowe
61 komendy shella Bourne'a i jest mniejszy ni¿ bash.
64 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
65 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
69 Summary: Small bourne shell from Berkeley
70 Summary(de): Kleine Bourne-Shell von Berkeley
71 Summary(fr): Shell Bourne réduit de Berkeley
72 Summary(pl): Ma³y shell bourne'a
73 Summary(tr): Ufak bir bourne kabuðu
74 Group: Applications/Shells
77 Conflicts: mkinitrd <= 1.7
80 ash is a bourne shell clone from Berkeley. It supports all of the
81 standard Bourne shell commands and has the advantage of supporting
82 them while remaining considerably smaller than bash.
84 %description static -l de
85 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
86 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
87 weniger Platz beansprucht als bash.
89 %description static -l fr
90 ash est un clone Berkeley du shell Bourne. Il gère toutes les
91 commandes standard du shell Bourne et a l'avantage de les gérer tout
92 en restant considérablement plus petit que bash.
94 %description static -l pl
95 Ash jest klonem shella Bourne'a z Berkeley. Obs³uguje standardowe
96 komendy shella Bourne'a i jest mniejszy ni¿ bash.
98 %description static -l tr
99 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
100 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
122 # this is mainly for information, maybe add changelog to %doc?
130 %{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="-static %{rpmldflags}"
132 %{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}"
135 rm -rf $RPM_BUILD_ROOT
137 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
138 install sh $RPM_BUILD_ROOT%{_bindir}/ash
139 install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static
140 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
141 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
142 ln -sf ash $RPM_BUILD_ROOT/%{_bindir}/bsh
145 if [ ! -f /etc/shells ]; then
146 echo "%{_bindir}/ash" > /etc/shells
147 echo "%{_bindir}/bsh" >> /etc/shells
149 if ! grep -q '^%{_bindir}/ash$' /etc/shells ; then
150 echo "%{_bindir}/ash" >> /etc/shells
152 if ! grep -q '^%{_bindir}/bsh$' /etc/shells ; then
153 echo "%{_bindir}/bsh" >> /etc/shells
158 if [ ! -f /etc/shells ]; then
159 echo "%{_bindir}/ash.static" >> /etc/shells
161 if ! grep -q '^%{_bindir}/ash.static$' /etc/shells ; then
162 echo "%{_bindir}/ash.static" >> /etc/shells
167 if [ "$1" = 0 ]; then
168 grep -v '^%{_bindir}/ash$' /etc/shells | grep -v '^%{_bindir}/bsh$' > /etc/shells.new
169 mv -f /etc/shells.new /etc/shells
173 if [ "$1" = 0 ]; then
174 grep -v '^%{_bindir}/ash\.static$' /etc/shells > /etc/shells.new
175 mv -f /etc/shells.new /etc/shells
179 for n in ash bsh ; do
180 echo -n "Looking for $n in /etc/shells... "
181 if ! grep -q "^%{_bindir}/${n}\$" /etc/shells ; then
183 echo "${n} missing from /etc/shells" >&2
190 echo -n "Looking for ash.static in /etc/shells... "
191 if ! grep -q '^%{_bindir}/ash\.static$' /etc/shells ; then
193 echo "ash.static missing from /etc/shells" >&2
199 rm -rf $RPM_BUILD_ROOT
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_bindir}/ash
204 %attr(755,root,root) %{_bindir}/bsh
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_bindir}/ash.static