Summary: Small bourne shell from Berkeley
Summary(de): Kleine Bourne-Shell von Berkeley
Summary(fr): Shell Bourne réduit de Berkeley
-Summary(pl): Ma³y shell bourne'a
+Summary(pl): Ma³y shell bourne'a
Summary(tr): Ufak bir bourne kabuðu
Name: ash
Version: 0.4.0
Group: Applications/Shells
Group(de): Applikationen/Shells
Group(pl): Aplikacje/Pow³oki
-Source: %{name}-%{version}.tar.gz
+Source: %{name}-%{version}.tar.gz
Patch0: %{name}-builtin.patch
Patch1: %{name}-echo.patch
Patch2: %{name}-getcwd.patch
Patch18: %{name}-ppid.patch
Patch19: %{name}-freebsd.patch
Patch20: %{name}-sighup.patch
-Prereq: fileutils
-Prereq: grep
+PreReq: fileutils
+PreReq: grep
BuildRequires: glibc-static
BuildRequires: flex
BuildRequires: byacc
Summary: Small bourne shell from Berkeley
Summary(de): Kleine Bourne-Shell von Berkeley
Summary(fr): Shell Bourne réduit de Berkeley
-Summary(pl): Ma³y shell bourne'a
+Summary(pl): Ma³y shell bourne'a
Summary(tr): Ufak bir bourne kabuðu
Group: Applications/Shells
Group(de): Applikationen/Shells
Group(pl): Aplikacje/Pow³oki
-Prereq: fileutils
-Prereq: grep
+PreReq: fileutils
+PreReq: grep
Conflicts: mkinitrd <= 1.7
%description static
Summary: Small bourne shell from Berkeley
Summary(de): Kleine Bourne-Shell von Berkeley
Summary(fr): Shell Bourne réduit de Berkeley
-Summary(pl): Ma³y shell bourne'a
+Summary(pl): Ma³y shell bourne'a
Summary(tr): Ufak bir bourne kabuðu
Group: Applications/Shells
Group(de): Applikationen/Shells
them while remaining considerably smaller than bash.
Version for embedded systems.
+%description embed -l pl
+Ash jest klonem shell'a Bourne'a z Berkeley. Obs³uguje standardowe
+komendy shell'a Bourne'a i jest mniejszy ni¿ bash. Wersja dla systemów
+osadzonych.
+
%prep
%setup -q
%patch0 -p1
%post
if [ ! -f /etc/shells ]; then
- echo "%{_bindir}/ash" > /etc/shells
- echo "%{_bindir}/bsh" >> /etc/shells
+ echo "%{_bindir}/ash" > /etc/shells
+ echo "%{_bindir}/bsh" >> /etc/shells
else
- if ! grep -q '^%{_bindir}/ash$' /etc/shells ; then
- echo "%{_bindir}/ash" >> /etc/shells
- fi
- if ! grep -q '^%{_bindir}/bsh$' /etc/shells ; then
- echo "%{_bindir}/bsh" >> /etc/shells
- fi
+ if ! grep -q '^%{_bindir}/ash$' /etc/shells ; then
+ echo "%{_bindir}/ash" >> /etc/shells
+ fi
+ if ! grep -q '^%{_bindir}/bsh$' /etc/shells ; then
+ echo "%{_bindir}/bsh" >> /etc/shells
+ fi
fi
%post static
if [ ! -f /etc/shells ]; then
- echo "%{_bindir}/ash.static" >> /etc/shells
+ echo "%{_bindir}/ash.static" >> /etc/shells
else
- if ! grep -q '^%{_bindir}/ash.static$' /etc/shells ; then
- echo "%{_bindir}/ash.static" >> /etc/shells
- fi
+ if ! grep -q '^%{_bindir}/ash.static$' /etc/shells ; then
+ echo "%{_bindir}/ash.static" >> /etc/shells
+ fi
fi
%preun
if [ "$1" = 0 ]; then
- grep -v '^%{_bindir}/ash$' /etc/shells | grep -v '^%{_bindir}/bsh$' > /etc/shells.new
- mv -f /etc/shells.new /etc/shells
+ grep -v '^%{_bindir}/ash$' /etc/shells | grep -v '^%{_bindir}/bsh$' > /etc/shells.new
+ mv -f /etc/shells.new /etc/shells
fi
%preun static
if [ "$1" = 0 ]; then
- grep -v '^%{_bindir}/ash\.static$' /etc/shells > /etc/shells.new
- mv -f /etc/shells.new /etc/shells
+ grep -v '^%{_bindir}/ash\.static$' /etc/shells > /etc/shells.new
+ mv -f /etc/shells.new /etc/shells
fi
%verifyscript
for n in ash bsh ; do
- echo -n "Looking for $n in /etc/shells... "
- if ! grep -q "^%{_bindir}/${n}\$" /etc/shells ; then
- echo "missing"
- echo "${n} missing from /etc/shells" >&2
- else
- echo "found"
- fi
+ echo -n "Looking for $n in /etc/shells... "
+ if ! grep -q "^%{_bindir}/${n}\$" /etc/shells ; then
+ echo "missing"
+ echo "${n} missing from /etc/shells" >&2
+ else
+ echo "found"
+ fi
done
%verifyscript static