]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - nfs-utils/nfs-utils.nm
nfs-utils: Update to 2.6.2
[people/stevee/ipfire-3.x.git] / nfs-utils / nfs-utils.nm
CommitLineData
38a7b64b 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
38a7b64b
BS
4###############################################################################
5
802ea3af 6name = nfs-utils
f6a0ff40 7version = 2.6.2
efb5f792 8release = 1
802ea3af
MT
9
10groups = Networking/Tools
11url = http://nfs.sourceforge.net/
12license = MIT and GPLv2 and GPLv2+
13summary = NFS utilities and supporting clients and daemons for the NFS server.
14
15description
16 The nfs-utils package provides a daemon for the kernel NFS server
17 and related tools, which provides a much higher level of performance
18 than the traditional Linux NFS server used by most users. This
19 package also contains the showmount program. Showmount queries the
20 mount daemon on a remote host for information about the NFS server
21 on the remote host. For example, showmount can display the clients
38a7b64b 22 which are mounted on that host.
802ea3af
MT
23end
24
61166a61
MT
25source_dl = http://www.kernel.org/pub/linux/utils/nfs-utils/%{version}/
26sources = %{thisapp}.tar.xz
802ea3af
MT
27
28build
29 requires
61166a61
MT
30 autoconf
31 automake
b4725ddd
SS
32 e2fsprogs-devel
33 krb5-devel
802ea3af 34 libblkid-devel
61166a61 35 libdevmapper-devel
802ea3af
MT
36 libcap-devel
37 libevent-devel
b4725ddd 38 libgssglue-devel >= 0.3
f6a0ff40 39 libkeyutils-devel
61166a61 40 libmount-devel
61166a61
MT
41 libtirpc-devel
42 libtool
f6a0ff40 43 rpcsvc-proto
61166a61
MT
44 shadow-utils
45 sqlite-devel
f6a0ff40 46 systemd-devel
802ea3af
MT
47 end
48
49 configure_options += \
802ea3af 50 --without-tcp-wrappers \
61166a61
MT
51 --enable-libmount-mount \
52 --enable-mountconfig \
53 --enable-ipv6 \
f6a0ff40
SS
54 --enable-gss \
55 --with-statedir=/var/lib/nfs \
56 --with-statdpath=/var/lib/nfs/statd \
57 --with-start-statd=/usr/bin/start-statd \
58 --with-systemd
61166a61
MT
59
60 prepare_cmds
f6a0ff40
SS
61 # Install utils into correct place.
62 sed -i "s|sbindir = /sbin|sbindir = /usr/bin|g" utils/*/Makefile.am
63
61166a61
MT
64 sh autogen.sh
65
66 %{create_user}
67 end
68
69 install_cmds
70 mkdir -pv %{BUILDROOT}%{sysconfdir}
71 mkdir -pv %{BUILDROOT}/var/lib/nfs/v4recovery
72 mkdir -pv %{BUILDROOT}/etc/exports.d
73
74 install -s -m 755 tools/rpcdebug/rpcdebug %{BUILDROOT}%{sbindir}
75 install -m 644 utils/mount/nfsmount.conf %{BUILDROOT}%{sysconfdir}
76
77 mkdir -pv %{BUILDROOT}/var/lib/nfs/rpc_pipefs
78 touch %{BUILDROOT}/var/lib/nfs/rmtab
79
80 mkdir -pv %{BUILDROOT}/usr/lib/nfs-utils/scripts
81 install -m 755 %{DIR_SOURCE}/nfs-lock.preconfig \
82 %{BUILDROOT}/usr/lib/nfs-utils/scripts/
83
84 mkdir -pv %{BUILDROOT}/var/lib/nfs/statd/sm{,.bak}
85 chown rpcuser:rpcuser -Rv %{BUILDROOT}/var/lib/nfs/statd
86 end
87end
88
89create_user
90 getent passwd rpcuser >/dev/null || useradd -l -c "RPC Service User" -r \
91 -s /sbin/nologin -u 29 -d /var/lib/nfs rpcuser
92 getent group rpcuser >/dev/null || groupadd -g 29 rpcuser 2>/dev/null
802ea3af
MT
93end
94
95packages
96 package %{name}
61166a61
MT
97 provides
98 rpc.idmapd = %{thisver}
99 rpc.mountd = %{thisver}
100 rpc.nfsd = %{thisver}
101 rpc.statd = %{thisver}
102 rpc.gssd = %{thisver}
103 rpc.svggssd = %{thisver}
104 end
105
802ea3af 106 requires
61166a61
MT
107 quota
108 rpcbind
802ea3af
MT
109 util-linux
110 end
61166a61
MT
111
112 nfsnobody_uid = 65534
113
114 script prein
115 %{create_user}
116
117 getent group nfsnobody >/dev/null || groupadd -g %{nfsnobody_uid} nfsnobody
118 getent passwd nfsnobody >/dev/null || useradd -l -c "Anonymous NFS User" -r \
119 -s /sbin/nologin -u %{nfsnobody_uid} -g %{nfsnobody_uid} \
120 -d /var/lib/nfs nfsnobody
121 end
122
123 script postin
124 systemctl daemon-reload >/dev/null 2>&1 || :
125 end
126
127 script postup
128 systemctl daemon-reload >/dev/null 2>&1 || :
129 end
130
131 script postun
132 systemctl daemon-reload >/dev/null 2>&1 || :
133 end
802ea3af 134 end
1f9bc2f0 135
f6a0ff40
SS
136 package libnfsidmap
137 template LIBS
138 end
139
140 package libnfsidmap-devel
141 template DEVEL
142 end
143
1f9bc2f0
MT
144 package %{name}-debuginfo
145 template DEBUGINFO
146 end
802ea3af 147end