blob: cc2495ccb1a1568c7def0f11063e2cbdb2cff77a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cifs-utils
pkgver=7.0
pkgrel=4
pkgdesc="CIFS filesystem user-space tools"
url="https://wiki.samba.org/index.php/LinuxCIFS_utils"
arch="all"
license="GPL-3.0-or-later"
makedepends="libcap-dev keyutils-dev krb5-dev talloc-dev
autoconf automake samba-dev py3-docutils"
subpackages="$pkgname-doc $pkgname-dev"
source="https://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-$pkgver.tar.bz2
musl-fix-includes.patch
xattr_size_max.patch
fix-implicit-basename.patch
cifs.upcall.request-key.conf
"
options="suid"
# secfixes:
# 6.15-r0:
# - CVE-2022-27239
# - CVE-2022-29869
# 6.13-r0:
# - CVE-2021-20208
# 0:
# - CVE-2020-14342 # requires --with-systemd
prepare() {
default_prepare
update_config_sub
autoreconf -i
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make AM_CFLAGS=""
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/usr/bin
# set mount.cifs uid, to enable non-root mounting from fstab
chmod +s $pkgdir/sbin/mount.cifs
mkdir -p "$pkgdir"/etc/request-key.d
install -Dm644 "$srcdir"/cifs.upcall.request-key.conf "$pkgdir"/etc/request-key.d/
}
sha512sums="
4c57741af0c4567a78f352c73caca998881666a5ed36536275cfa775efd66ff1a44ebe539a8ed96c409c5b08a1378266964ce667a27e9fc7f2d43999c63dd0eb cifs-utils-7.0.tar.bz2
99a2fab05bc2f14a600f89526ae0ed2c183cfa179fe386cb327075f710aee3aed5ae823f7c2f51913d1217c2371990d6d4609fdb8d80288bd3a6139df3c8aebe musl-fix-includes.patch
2a9366ec1ddb0389c535d2fa889f63287cb8374535a47232de102c7e50b6874f67a3d5ef3318df23733300fd8459c7ec4b11f3211508aca7800b756119308e98 xattr_size_max.patch
8f93c8c7ae35bec6e67f26d0aa3a0edc4c427ef91b1e279a01abbd2eadaadbae21d46d2a7b53c6c7392c3cfa8f58ba43ed337026409fcd3a93192abff7267375 fix-implicit-basename.patch
4b5f32e6b80858858713ffa918bf592e39deeebe03e2d05cff965e13fde8ca8c20a7b5283bce89c0a0cb0d9447044f71807698274ed9d5fd8c71f450fdc29512 cifs.upcall.request-key.conf
"
|