mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-31 05:22:24 +01:00
111 lines
4.2 KiB
Plaintext
111 lines
4.2 KiB
Plaintext
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
|
|
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=bash
|
|
pkgver=5.0.11
|
|
_patchlevel=${pkgver##*.}
|
|
_myver=${pkgver%.*}
|
|
_patchbase=${_myver/./}
|
|
pkgrel=0
|
|
pkgdesc="The GNU Bourne Again shell"
|
|
url="https://www.gnu.org/software/bash/bash.html"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
makedepends_build="bison flex"
|
|
makedepends_host="readline-dev>8 ncurses-dev"
|
|
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
|
|
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc"
|
|
options="!checkroot"
|
|
source="https://ftp.gnu.org/gnu/bash/bash-$_myver.tar.gz
|
|
bash-noinfo.patch
|
|
fix-jobs.patch
|
|
"
|
|
# generate url's to patches. note: no forks allowed!
|
|
_i=1
|
|
_pad=00
|
|
while [ $_i -le $_patchlevel ]; do
|
|
[ $_i -ge 10 ] && _pad="0"
|
|
[ $_i -ge 100 ] && _pad=
|
|
source="$source https://ftp.gnu.org/gnu/bash/bash-$_myver-patches/bash$_patchbase-$_pad$_i"
|
|
_i=$(( $_i + 1))
|
|
done
|
|
|
|
# secfixes:
|
|
# 4.4.12-r1:
|
|
# - CVE-2016-0634
|
|
|
|
builddir="$srcdir/$pkgname-$_myver"
|
|
|
|
prepare() {
|
|
cd "$builddir"
|
|
|
|
# NOTE: This section is for applying the vendor patches, which are required to fix
|
|
# security holes. `default_prepare` does *not* apply vendor patches in the format
|
|
# shipped with bash. We also need to make sure vendor patches are applied before
|
|
# our own.
|
|
# If you disagree, please request an experimental rebuild with bash as /bin/sh,
|
|
# before removing this section.
|
|
for p in $source; do
|
|
case $p in
|
|
*/bash[0-9][0-9]-[0-9]*)
|
|
msg "$p (vendor)"
|
|
patch -p0 -i "$srcdir"/${p##*/}
|
|
;;
|
|
esac
|
|
done
|
|
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--bindir=/bin \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--with-curses \
|
|
--disable-nls \
|
|
--enable-readline \
|
|
--without-bash-malloc \
|
|
--with-installed-readline
|
|
# parallel build workarounds
|
|
make y.tab.c && make builtins/libbuiltins.a && make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -rf "$pkgdir"/usr/share/locale
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
mkdir -p "$subpkgdir"/bin "$subpkgdir"/usr/lib/$pkgname
|
|
mv "$pkgdir"/bin/${pkgname}bug "$subpkgdir"/bin
|
|
mv "$pkgdir"/usr/lib/$pkgname/Makefile* "$subpkgdir"/usr/lib/$pkgname
|
|
}
|
|
|
|
sha512sums="bb4519f06e278f271d08722b531e49d2e842cc3e0b02a6b3eee422e2efcb5b6226111af43f5e5eae56beb85ac8bfebcd6a4aacbabb8f609e529aa4d571890864 bash-5.0.tar.gz
|
|
9d8845491d0fe335bdd8e9a2bd98bda54bfed2ae3c35b2196c6d5a38bdf96c4d97572ba7d6b19ab605ef4e8f001f64cf3312f87dedebb9e37a95ad2c44e33cdb bash-noinfo.patch
|
|
79473c41e620d78d25139b56c37d18adac5c03dc28939f218729dfcd3558d8cbac5e83db814ffd27aa833cd3e55f81aad26aaf62af3688c927d8ac2a4172eaa4 fix-jobs.patch
|
|
e3bf036287d3be1f3e91755678c04c9a8e1b4a98e34e181871dfaeb13987dda18c31a44db3f3829d91a185ba4414b9c0229f2a15f6e8a951cbc6c1054252bfdd bash50-001
|
|
59b1cfa1be1029ada53c63fe651d51451ead5523c50c115e0eada07e34e641c693ed728366986acb431f96fdc61818efd3f8cd168ce416001edc62602e5f28dd bash50-002
|
|
520b5cc0b7aeea6cd8b7471b553d8979996f3627a3e5c8889023562dadc82475be243aca2ec608217b78400a1dceb134b877d3ded926e581445234f1b69409e6 bash50-003
|
|
cbf51bb242edf36289bd483b47c9451132c12f341f494212c0e5d969cd06a3c1c4d121295f3bacb1d7d5e56f789258ba9f54c4cfb5760ed3c70ec1f49f25c719 bash50-004
|
|
4d3e6f337a76b9ff1887c4c6e4e4352885779504f3c975b8d6fa587962f01e8adbd843b5341c1fc1d11152cf465f2982eebd9dc6e1384f319157d29740d510da bash50-005
|
|
71df829a3a3927a363ad961de8af8db898ea8b0ccf604c5f1326fe4646d0d50b3c7038ee473c225fc10d26c2dc1f711d66b74d003bb0445d36a8a70c49e056e0 bash50-006
|
|
467d377836c53d188cda39de550ce1e00b58895a6646c4da3535e74e599978558a92d8e7bf7c59c988159468fbce04f3a0dbf62cbded28472272f1b9811786e8 bash50-007
|
|
110fef44c1a26819ad8926ce00bd5378e99275763db4b0e9cfd125ba1ab7eb9f93abf912efb9841fa2ac59c380995e477683afc8cf6bf00367a9af7ae371e7f4 bash50-008
|
|
6b770dbd4ca1175f9b958931b1e725d96626a24fb270bac5414d1679dde05276c87654815e9957d6932c515e8792caf8a5f0e9f2dc108bdd041d8024cf75a833 bash50-009
|
|
8ca2cea0264bc0401414207fd8752d4d6eda64be3bb10fdc22529fa2bcedb84e6ab257ba2badc7078ece7f2ae1e2964635926f227eea7aed58166e82871322c2 bash50-010
|
|
05833d6c85f3795a9c100246335f39155c1b5d190e073bf382269c2bbceb13a2de3f85dbe1dd5d4c7824fcca481febe3bdbb4c555e1f2de86bec05fcf6f5871e bash50-011"
|