blob: 78b3c37750ed2b8604916c20ae268e30246e0f75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Wes Jackson <icebal dot 7 at gmail dot com>
pkgname=nfs-ganesha-git
pkgver=5.5.3.r0.g2a57b6d53
pkgrel=1
pkgdesc="NFS and 9P protocols in user mode."
arch=(x86_64 i686 armv7h aarch64)
url="http://nfs-ganesha.github.io/"
license=(GPL3)
depends=(glibc nfsidmap libcap krb5 util-linux-libs e2fsprogs xfsprogs dbus libwbclient jemalloc liburcu acl btrfs-progs)
makedepends=(cmake git lsb-release doxygen python-sphinx graphviz)
provides=(nfs-ganesha)
conflicts=(nfs-ganesha)
source=("git+https://github.com/nfs-ganesha/nfs-ganesha.git"
"git+https://github.com/nfs-ganesha/ntirpc.git"
"nfs-ganesha-libntirpc-assert.h-fix.patch::https://github.com/nfs-ganesha/ntirpc/pull/279/commits/1f9bb775d02b8b894f12d8408e35275e329b2da6.patch")
sha256sums=('SKIP'
'SKIP'
'309bd1726a8e9545896d8bc766311fa87e6348d369b1a9fb75fd014e344166e5')
backup=(etc/ganesha/ganesha.conf) #etc/sysconfig/ganesha
pkgver() {
cd nfs-ganesha
git describe --long --tags | sed 's/^V//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd nfs-ganesha
git submodule init
git config submodule.src/libntirpc.url "${srcdir}/ntirpc"
git -c protocol.file.allow=always submodule update
cd src/libntirpc
patch -Np1 -i ${srcdir}/nfs-ganesha-libntirpc-assert.h-fix.patch
}
build() {
cmake -B build -S "nfs-ganesha/src" -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_MAN_PAGE=OFF \
-DUSE_RADOS_RECOV=OFF \
-DRADOS_URLS=OFF \
-DUSE_FSAL_LUSTRE=OFF \
-DUSE_FSAL_LIZARDFS=OFF \
-DUSE_FSAL_CEPH=OFF \
-DUSE_FSAL_GLUSTER=OFF \
-DUSE_FSAL_RGW=OFF
cmake --build build
#don't use /usr/libexec/
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|