APKBUILD 1.46 KB
Newer Older
1 2
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
3
pkgname=cifs-utils
4 5
pkgver=6.13
pkgrel=0
6
pkgdesc="CIFS filesystem user-space tools"
7
url="https://wiki.samba.org/index.php/LinuxCIFS_utils"
8
arch="all"
9
license="GPL-2.0-or-later"
10
makedepends="libcap-dev keyutils-dev krb5-dev talloc-dev
Leo's avatar
Leo committed
11
	autoconf automake samba-dev py3-docutils"
12
subpackages="$pkgname-doc $pkgname-dev"
Leo's avatar
Leo committed
13
source="https://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-$pkgver.tar.bz2
14 15
	musl-fix-includes.patch
	xattr_size_max.patch"
Leo's avatar
Leo committed
16
options="suid"
17

18 19 20 21 22
# secfixes:
#   6.13-r0:
#     - CVE-2021-20208
#     - CVE-2020-14342 (not actually applicable)

Leo's avatar
Leo committed
23 24 25 26
prepare() {
	default_prepare
	autoreconf -i
}
27 28

build() {
29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
32 33 34 35 36 37
		--prefix=/usr
	make AM_CFLAGS=""
}

check() {
	make check
38 39 40
}

package() {
41
	make DESTDIR="$pkgdir" install
42 43 44 45 46
	rm -r $pkgdir/usr/bin
	# set mount.cifs uid, to enable none root mounting form fstab
	chmod +s $pkgdir/sbin/mount.cifs
}

47 48
sha512sums="
1337ac4b69f0c3e8d0241eb608207ba81dfa35f84c661649d25da78637882c4d73467b0f632be0bd120362e0b786e40eb340bffcf21c8a09629c441100fd10de  cifs-utils-6.13.tar.bz2
49
99a2fab05bc2f14a600f89526ae0ed2c183cfa179fe386cb327075f710aee3aed5ae823f7c2f51913d1217c2371990d6d4609fdb8d80288bd3a6139df3c8aebe  musl-fix-includes.patch
50 51
2a9366ec1ddb0389c535d2fa889f63287cb8374535a47232de102c7e50b6874f67a3d5ef3318df23733300fd8459c7ec4b11f3211508aca7800b756119308e98  xattr_size_max.patch
"