Репозитории ALT
S: | 0.5.11.18.g6f6d1f2-alt1 |
5.1: | 0.5.5.1-alt5 |
4.1: | 0.5.4-alt3 |
4.0: | 0.5.3-alt6 |
3.0: | 0.5.2-alt1 |
Группа :: Интерпретаторы команд
Пакет: ash
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: ash
Version: 0.5.5.1
Release: alt5
%define real_name dash
Summary: A smaller version of the Bourne shell
License: BSD
Group: Shells
Packager: Alexey Gladkov <legion at altlinux.ru>
Url: http://gondor.apana.org.au/~herbert/dash/
Source: %name-%version.tar
Patch0: dash-0.5.4-alt-losetup.patch
Patch2: dash-0.5.3-alt-cleanup-warnings.patch
Patch6: dash-0.5.3-makefile-cflags.patch
Patch7: dash-0.5.5.1-string_literal.patch
Patch8: 0001-Revert-BUILTIN-Honor-tab-as-IFS-whitespace-when-spli.patch
PreReq: coreutils, grep
Conflicts: mkinitrd <= 1.7
Provides: dash
# Automatically added by buildreq on Mon Jun 19 2006
BuildRequires: glibc-devel-static klibc-devel
%description
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
%package static
Summary: A smaller version of the Bourne shell statically linked
License: BSD
Group: Shells
%description static
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
This version is statically compiled.
%package klibc
Summary: ash built with klibc for use in initramfs
License: BSD
Group: Shells
Requires: make-initrd-klibc
%description klibc
This package contains a version of ash which is built with klibc,
intended for use in initramfs images.
%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
sed -i -e 's,\$(tempfile),`mktemp -t ash.XXXXXX`,' src/mkbuiltins
%build
BUILD_FLAGS="%optflags_warnings -Wunused-function -Wunused-label -Wunused-variable -Wunused-value"
%autoreconf
%define _configure_script ../configure
rm -rf build-dynamic build-static
mkdir -p build-dynamic build-static build-klibc
cd build-dynamic
export CFLAGS="$BUILD_FLAGS -Werror"
%configure --disable-dependency-tracking
%make_build
mv src/%real_name sh.dynamic
cd -
cd build-static
export CFLAGS="$BUILD_FLAGS -Werror"
%configure --disable-dependency-tracking --enable-static
%make_build
mv src/%real_name sh.static
cd -
# Build with klibc (for initramfs)
cd build-klibc
export CC='klcc -shared'
export CFLAGS="$BUILD_FLAGS -DJOBS=0"
%configure --disable-dependency-tracking
%make_build
mv src/%real_name sh.klibc
cd -
%install
mkdir -p %buildroot/lib/mkinitrd/initramfs/bin
install -m755 -pD build-dynamic/sh.dynamic %buildroot/bin/%name
install -m755 -pD build-static/sh.static %buildroot/bin/%name.static
install -m755 -pD build-klibc/sh.klibc %buildroot/lib/mkinitrd/initramfs/bin/sh
ln -s %name %buildroot/bin/bsh
ln -s %name %buildroot/bin/dash
install -m644 -pD src/%real_name.1 %buildroot/%_man1dir/%name.1
ln -s %name.1 %buildroot/%_man1dir/bsh.1
ln -s %name.1 %buildroot/%_man1dir/dash.1
%files
/bin/%name
/bin/bsh
/bin/dash
%_man1dir/*
%files static
/bin/%name.static
%files klibc
/lib/mkinitrd/initramfs/bin/sh
%changelog
…
Полный changelog можно просмотреть здесь
Version: 0.5.5.1
Release: alt5
%define real_name dash
Summary: A smaller version of the Bourne shell
License: BSD
Group: Shells
Packager: Alexey Gladkov <legion at altlinux.ru>
Url: http://gondor.apana.org.au/~herbert/dash/
Source: %name-%version.tar
Patch0: dash-0.5.4-alt-losetup.patch
Patch2: dash-0.5.3-alt-cleanup-warnings.patch
Patch6: dash-0.5.3-makefile-cflags.patch
Patch7: dash-0.5.5.1-string_literal.patch
Patch8: 0001-Revert-BUILTIN-Honor-tab-as-IFS-whitespace-when-spli.patch
PreReq: coreutils, grep
Conflicts: mkinitrd <= 1.7
Provides: dash
# Automatically added by buildreq on Mon Jun 19 2006
BuildRequires: glibc-devel-static klibc-devel
%description
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
%package static
Summary: A smaller version of the Bourne shell statically linked
License: BSD
Group: Shells
%description static
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
This version is statically compiled.
%package klibc
Summary: ash built with klibc for use in initramfs
License: BSD
Group: Shells
Requires: make-initrd-klibc
%description klibc
This package contains a version of ash which is built with klibc,
intended for use in initramfs images.
%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
sed -i -e 's,\$(tempfile),`mktemp -t ash.XXXXXX`,' src/mkbuiltins
%build
BUILD_FLAGS="%optflags_warnings -Wunused-function -Wunused-label -Wunused-variable -Wunused-value"
%autoreconf
%define _configure_script ../configure
rm -rf build-dynamic build-static
mkdir -p build-dynamic build-static build-klibc
cd build-dynamic
export CFLAGS="$BUILD_FLAGS -Werror"
%configure --disable-dependency-tracking
%make_build
mv src/%real_name sh.dynamic
cd -
cd build-static
export CFLAGS="$BUILD_FLAGS -Werror"
%configure --disable-dependency-tracking --enable-static
%make_build
mv src/%real_name sh.static
cd -
# Build with klibc (for initramfs)
cd build-klibc
export CC='klcc -shared'
export CFLAGS="$BUILD_FLAGS -DJOBS=0"
%configure --disable-dependency-tracking
%make_build
mv src/%real_name sh.klibc
cd -
%install
mkdir -p %buildroot/lib/mkinitrd/initramfs/bin
install -m755 -pD build-dynamic/sh.dynamic %buildroot/bin/%name
install -m755 -pD build-static/sh.static %buildroot/bin/%name.static
install -m755 -pD build-klibc/sh.klibc %buildroot/lib/mkinitrd/initramfs/bin/sh
ln -s %name %buildroot/bin/bsh
ln -s %name %buildroot/bin/dash
install -m644 -pD src/%real_name.1 %buildroot/%_man1dir/%name.1
ln -s %name.1 %buildroot/%_man1dir/bsh.1
ln -s %name.1 %buildroot/%_man1dir/dash.1
%files
/bin/%name
/bin/bsh
/bin/dash
%_man1dir/*
%files static
/bin/%name.static
%files klibc
/lib/mkinitrd/initramfs/bin/sh
%changelog
…
Полный changelog можно просмотреть здесь