archrelease: copy trunk to extra-x86_64
[arch-packages.git] / cifs-utils / trunk / PKGBUILD
blob752e9d699a4c79b637deb99cffa81d61ae8f4d4c
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 pkgname=cifs-utils
3 pkgver=6.14
4 pkgrel=1
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' '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'
15             'SKIP')
17 prepare() {
18   # Fix install to honor DESTDIR
19   sed -e 's|cd \$(ROOTSBINDIR)|cd $(DESTDIR)$(ROOTSBINDIR)|g' -i $pkgname-$pkgver/Makefile.am
22 build() {
23   cd "$srcdir/$pkgname-$pkgver"
24   # systemd support is broken in mount.cifs
25   # https://bugs.archlinux.org/task/30958
26   autoreconf -i
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 
30   make
33 package() {
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