1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
5 pkgdesc="CIFS filesystem user-space tools"
7 url="https://wiki.samba.org/index.php/LinuxCIFS_utils"
9 depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'pam' 'libwbclient')
10 makedepends=('python-docutils')
11 optdepends=('python: for smb2-quota and smbinfo script')
12 source=("https://download.samba.org/pub/linux-cifs/$pkgname/$pkgname-$pkgver.tar.bz2"{,.asc})
14 validpgpkeys=('C699981A31F338706C817650DF5BA9D30642D5A0') #cifs-utils Distribution Verification Key <cifs-utils@samba.org>
15 sha256sums=('0defaab85bd3ea46ffc45ab41fb0d0ad54d05ae2cfaa7e503de86d4f12bc8161'
19 # Fix install to honor DESTDIR
20 sed -e 's|cd \$(ROOTSBINDIR)|cd $(DESTDIR)$(ROOTSBINDIR)|g' -i $pkgname-$pkgver/Makefile.am
24 cd "$srcdir/$pkgname-$pkgver"
25 # systemd support is broken in mount.cifs
26 # https://bugs.archlinux.org/task/30958
28 # https://www.spinics.net/lists/linux-cifs/msg21550.html
29 # change back to libcap-ng depend when upstream is fixed
30 ./configure --prefix=/usr --sbindir=/usr/bin --disable-systemd
35 cd "$srcdir/$pkgname-$pkgver"
36 make DESTDIR="$pkgdir" ROOTSBINDIR=/usr/bin install
37 mkdir -p "$pkgdir"/etc/request-key.d
38 install -m 644 contrib/request-key.d/cifs.idmap.conf "$pkgdir"/etc/request-key.d
39 install -m 644 contrib/request-key.d/cifs.spnego.conf "$pkgdir"/etc/request-key.d
40 # set mount.cifs uid, to enable none root mounting form fstab
41 chmod +s "$pkgdir"/usr/bin/mount.cifs
42 # fix idmap-plugin #42052
43 mkdir -p "$pkgdir"/etc/cifs-utils
44 ln -s /usr/lib/cifs-utils/idmapwb.so "${pkgdir}"/etc/cifs-utils/idmap-plugin