archrelease: copy trunk to extra-x86_64
[arch-packages.git] / cifs-utils / repos / extra-x86_64 / PKGBUILD
blobf6d4648c5c224674d4e1f918ae22eb08b4f151ad
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 pkgname=cifs-utils
3 pkgver=7.0
4 pkgrel=3
5 pkgdesc="CIFS filesystem user-space tools"
6 arch=(x86_64)
7 url="https://wiki.samba.org/index.php/LinuxCIFS_utils"
8 license=('GPL')
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'
16             'SKIP')
18 prepare() {
19   # Fix install to honor DESTDIR
20   sed -e 's|cd \$(ROOTSBINDIR)|cd $(DESTDIR)$(ROOTSBINDIR)|g' -i $pkgname-$pkgver/Makefile.am
23 build() {
24   cd "$srcdir/$pkgname-$pkgver"
25   # systemd support is broken in mount.cifs
26   # https://bugs.archlinux.org/task/30958
27   autoreconf -i
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 
31   make
34 package() {
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