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' 'keyutils' 'krb5' 'talloc' 'libwbclient' 'pam')
10 makedepends=('python-docutils')
11 source=("https://download.samba.org/pub/linux-cifs/$pkgname/$pkgname-$pkgver.tar.bz2"{,.asc})
13 validpgpkeys=('C699981A31F338706C817650DF5BA9D30642D5A0') #cifs-utils Distribution Verification Key <cifs-utils@samba.org>
14 sha256sums=('6609e8074b5421295ff012a31f02ccd9a058415c619c81362ebb788dbf0756b8'
18 # Fix install to honor DESTDIR
19 sed -e 's|cd \$(ROOTSBINDIR)|cd $(DESTDIR)$(ROOTSBINDIR)|g' -i $pkgname-$pkgver/Makefile.am
23 cd "$srcdir/$pkgname-$pkgver"
24 # systemd support is broken in mount.cifs
25 # https://bugs.archlinux.org/task/30958
27 # https://www.spinics.net/lists/linux-cifs/msg21550.html
28 # change back to libcap-ng depend when upstream is fixed
29 ./configure --prefix=/usr --with-libcap=yes --sbindir=/usr/bin --disable-systemd
34 cd "$srcdir/$pkgname-$pkgver"
35 make DESTDIR="$pkgdir" ROOTSBINDIR=/usr/bin install
36 mkdir -p "$pkgdir"/etc/request-key.d
37 install -m 644 contrib/request-key.d/cifs.idmap.conf "$pkgdir"/etc/request-key.d
38 install -m 644 contrib/request-key.d/cifs.spnego.conf "$pkgdir"/etc/request-key.d
39 # set mount.cifs uid, to enable none root mounting form fstab
40 chmod +s "$pkgdir"/usr/bin/mount.cifs
41 # fix idmap-plugin #42052
42 mkdir -p "$pkgdir"/etc/cifs-utils
43 ln -s /usr/lib/cifs-utils/idmapwb.so "${pkgdir}"/etc/cifs-utils/idmap-plugin