4 Summary: Small bourne shell from Berkeley
5 Summary(de): Kleine Bourne-Shell von Berkeley
6 Summary(fr): Shell Bourne réduit de Berkeley
7 Summary(pl): Ma³y shell bourne'a
8 Summary(tr): Ufak bir bourne kabuðu
13 Group: Applications/Shells
14 Source0: %{name}-%{version}.tar.gz
15 Patch0: %{name}-builtin.patch
16 Patch1: %{name}-echo.patch
17 Patch2: %{name}-getcwd.patch
18 Patch3: %{name}-getopt.patch
19 Patch4: %{name}-glob.patch
20 Patch5: %{name}-jobs.patch
21 Patch6: %{name}-kill.patch
22 Patch7: %{name}-makefile.patch
23 Patch8: %{name}-manpage.patch
24 Patch9: %{name}-hetio.patch
25 Patch10: %{name}-memout.patch
26 Patch11: %{name}-misc.patch
27 Patch12: %{name}-redir.patch
28 Patch13: %{name}-setmode.patch
29 Patch14: %{name}-syntax.patch
30 Patch15: %{name}-test.patch
31 Patch16: %{name}-times.patch
32 Patch17: %{name}-debian.patch
33 Patch18: %{name}-ppid.patch
34 Patch19: %{name}-freebsd.patch
35 Patch20: %{name}-sighup.patch
38 %{!?_without_static:BuildRequires: glibc-static}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Conflicts: mkinitrd <= 1.7
47 ash is a bourne shell clone from Berkeley. It supports all of the
48 standard Bourne shell commands and has the advantage of supporting
49 them while remaining considerably smaller than bash.
52 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
53 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
54 weniger Platz beansprucht als bash.
57 ash est un clone Berkeley du shell Bourne. Il gère toutes les
58 commandes standard du shell Bourne et a l'avantage de les gérer tout
59 en restant considérablement plus petit que bash.
62 Ash jest klonem shella Bourne'a z Berkeley. Obs³uguje standardowe
63 komendy shella Bourne'a i jest mniejszy ni¿ bash.
66 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
67 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
71 Summary: Small bourne shell from Berkeley
72 Summary(de): Kleine Bourne-Shell von Berkeley
73 Summary(fr): Shell Bourne réduit de Berkeley
74 Summary(pl): Ma³y shell bourne'a
75 Summary(tr): Ufak bir bourne kabuðu
76 Group: Applications/Shells
79 Conflicts: mkinitrd <= 1.7
82 ash is a bourne shell clone from Berkeley. It supports all of the
83 standard Bourne shell commands and has the advantage of supporting
84 them while remaining considerably smaller than bash.
86 %description static -l de
87 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
88 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
89 weniger Platz beansprucht als bash.
91 %description static -l fr
92 ash est un clone Berkeley du shell Bourne. Il gère toutes les
93 commandes standard du shell Bourne et a l'avantage de les gérer tout
94 en restant considérablement plus petit que bash.
96 %description static -l pl
97 Ash jest klonem shella Bourne'a z Berkeley. Obs³uguje standardowe
98 komendy shella Bourne'a i jest mniejszy ni¿ bash.
100 %description static -l tr
101 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
102 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
124 # this is mainly for information, maybe add changelog to %doc?
132 %{!?_without_static:%{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="-static %{rpmldflags}"}
133 %{!?_without_static:mv -f sh ash.static}
134 %{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}"
137 rm -rf $RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
140 install sh $RPM_BUILD_ROOT%{_bindir}/ash
141 %{!?_without_static:install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static}
142 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
143 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
144 ln -sf ash $RPM_BUILD_ROOT/%{_bindir}/bsh
147 if [ ! -f /etc/shells ]; then
148 echo "%{_bindir}/ash" > /etc/shells
149 echo "%{_bindir}/bsh" >> /etc/shells
151 if ! grep -q '^%{_bindir}/ash$' /etc/shells ; then
152 echo "%{_bindir}/ash" >> /etc/shells
154 if ! grep -q '^%{_bindir}/bsh$' /etc/shells ; then
155 echo "%{_bindir}/bsh" >> /etc/shells
160 if [ ! -f /etc/shells ]; then
161 echo "%{_bindir}/ash.static" >> /etc/shells
163 if ! grep -q '^%{_bindir}/ash.static$' /etc/shells ; then
164 echo "%{_bindir}/ash.static" >> /etc/shells
169 if [ "$1" = 0 ]; then
170 grep -v '^%{_bindir}/ash$' /etc/shells | grep -v '^%{_bindir}/bsh$' > /etc/shells.new
171 mv -f /etc/shells.new /etc/shells
175 if [ "$1" = 0 ]; then
176 grep -v '^%{_bindir}/ash\.static$' /etc/shells > /etc/shells.new
177 mv -f /etc/shells.new /etc/shells
181 for n in ash bsh ; do
182 echo -n "Looking for $n in /etc/shells... "
183 if ! grep -q "^%{_bindir}/${n}\$" /etc/shells ; then
185 echo "${n} missing from /etc/shells" >&2
192 echo -n "Looking for ash.static in /etc/shells... "
193 if ! grep -q '^%{_bindir}/ash\.static$' /etc/shells ; then
195 echo "ash.static missing from /etc/shells" >&2
201 rm -rf $RPM_BUILD_ROOT
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_bindir}/ash
206 %attr(755,root,root) %{_bindir}/bsh
209 %{!?_without_static:%files static}
210 %{!?_without_static:%defattr(644,root,root,755)}
211 %{!?_without_static:%attr(755,root,root) %{_bindir}/ash.static}