mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
extra/gzip: recompile without text relocation
We also move gzip/gunzip to /bin and symlink to /usr/bin. Then we are sure that user will use gnu gzip and not busybox gzip.
This commit is contained in:
parent
6cbc32e579
commit
193e8b4a22
@ -2,14 +2,13 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=gzip
|
||||
pkgver=1.3.12
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A popular data compression program"
|
||||
subpackages="$pkgname-doc"
|
||||
arch=""
|
||||
url="http://www.gnu.org/software/gzip/"
|
||||
license="GPL2"
|
||||
depends="uclibc"
|
||||
makedepends=""
|
||||
depends=
|
||||
makedepends=
|
||||
install="$pkgname.post-deinstall"
|
||||
source="http://ftp.gnu.org/gnu/gzip/gzip-1.3.12.tar.gz
|
||||
$install"
|
||||
@ -17,11 +16,19 @@ source="http://ftp.gnu.org/gnu/gzip/gzip-1.3.12.tar.gz
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
# avoid text relocation
|
||||
export DEFS="NO_ASM"
|
||||
./configure --prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--disable-nls \
|
||||
--infodir=/usr/share/info
|
||||
make || return 1
|
||||
make DESTDIR=$pkgdir install
|
||||
|
||||
mkdir -p "$pkgdir"/bin
|
||||
mv "$pkgdir"/usr/bin/gzip "$pkgdir"/usr/bin/gunzip "$pkgdir"/bin/
|
||||
ln -s /bin/gzip "$pkgdir"/usr/bin/gzip
|
||||
ln -s /bin/gunzip "$pkgdir"/usr/bin/gunzip
|
||||
}
|
||||
md5sums="b5bac2d21840ae077e0217bc5e4845b1 gzip-1.3.12.tar.gz
|
||||
b84506d253e04db3c5af9016fead45a3 gzip.post-deinstall"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user