blob: 6a6d0cc10113b7cd52f011a3959841413dc97ed0 (
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
|
# 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=6.1.r0.ge13bc5dae
pkgrel=1
pkgdesc="NFS and 9P protocols in user mode."
arch=(x86_64 i686 armv7h aarch64)
url="http://nfs-ganesha.github.io/"
license=(LGPL-3.0-only)
depends=(glibc gcc-libs nfsidmap libcap krb5 util-linux-libs e2fsprogs 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
}
build() {
cmake -B build -S "nfs-ganesha/src" -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_MAN_PAGE=ON \
-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
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|