| Name |
file |
| Description |
File type identification utility |
| Version |
5.46-r2 |
| Package Base |
file |
| Homepage |
https://www.darwinsys.com/file/ |
| Maintainers |
['Natanael Copa <ncopa@alpinelinux.org>'] |
| Contributors |
['Valery Kartel <valery.kartel@gmail.com>'] |
| Distro-repo |
https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/main/file |
| Sources |
['file-5.46-r2-pr-579-net147-fix-stack-overrun.patch\n', 'https://astron.com/pub/file/file-5.46-r2.tar.gz'] |
| Dependencies |
['libc.musl-x86_64.so.1', 'libmagic.so.1'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
[] |
| Provides |
['cmd:file=5.46-r2'] |
| Builddate |
19-03-2025 08:42:07 |
| Architecture |
x86_64 |
| Distro-Version |
v3.22 |
| Licenses |
['BSD-2-Clause'] |
| Hash |
Q1zw/0opukgjCRYa/fYHPBRDoVcSo= |
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.46
pkgrel=2
pkgdesc="File type identification utility"
url="https://www.darwinsys.com/file/"
arch="all"
license="BSD-2-Clause"
subpackages="libmagic-static $pkgname-dev $pkgname-doc libmagic"
source="https://astron.com/pub/file/file-$pkgver.tar.gz
file-$pkgver-pr-579-net147-fix-stack-overrun.patch
"
# secfixes:
# 5.37-r1:
# - CVE-2019-18218
# 5.36-r0:
# - CVE-2019-1543
# - CVE-2019-8904
# - CVE-2019-8905
# - CVE-2019-8906
# - CVE-2019-8907
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--datadir=/usr/share \
--enable-static
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
libmagic() {
pkgdesc="File type identification library"
amove \
usr/lib/libmagic.so.* \
usr/share/misc/magic.mgc
}
sha512sums="
a6cb7325c49fd4af159b7555bdd38149e48a5097207acbe5e36deb5b7493ad6ea94d703da6e0edece5bb32959581741f4213707e5cb0528cd46d75a97a5242dc file-5.46.tar.gz
bebada4d58c4b937f3c8a55e842402f3af334c2767652c8d1e1b1c2cc73f0b3125bdb4cf97265a4ec1f00d51a13d66b534ce2faa2103e463e6461e55736daf4d file-5.46-pr-579-net147-fix-stack-overrun.patch
"