also install required files for HAVE_INCLUDES
[buildroot.git] / package / nfs-utils / nfs-utils-1.0.10-debian.patch
blob4037dbbebe283f33b0908132c8015a08b346fda3
1 --- nfs-utils-1.0.10.orig/utils/exportfs/exports.man
2 +++ nfs-utils-1.0.10/utils/exportfs/exports.man
3 @@ -29,6 +29,9 @@
4 the export name using a backslash followed by the character code as three
5 octal digits.
6 .PP
7 +To apply changes to this file, run exportfs \-ra or /etc/init.d/nfs-kernel-server
8 +reload (the latter being a distribution-specific extension).
9 +.PP
10 .SS Machine Name Formats
11 NFS clients may be specified in a number of ways:
12 .IP "single host
13 @@ -402,8 +405,11 @@
14 .TP
15 .IR root_squash
16 Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does
17 -not apply to any other uids that might be equally sensitive, such as user
18 -.IR bin .
19 +not apply to any other uids or gids that might be equally sensitive, such as
20 +user
21 +.IR bin
22 +or group
23 +.IR staff .
24 .TP
25 .IR no_root_squash
26 Turn off root squashing. This option is mainly useful for diskless clients.
27 --- nfs-utils-1.0.10.orig/utils/mountd/mountd.c
28 +++ nfs-utils-1.0.10/utils/mountd/mountd.c
29 @@ -558,7 +558,7 @@
31 /* Parse the command line options and arguments. */
32 opterr = 0;
33 - while ((c = getopt_long(argc, argv, "o:n:Fd:f:p:P:hH:N:V:vs:t:", longopts, NULL)) != EOF)
34 + while ((c = getopt_long(argc, argv, "o:nFd:f:p:P:hH:N:V:vs:t:", longopts, NULL)) != EOF)
35 switch (c) {
36 case 'o':
37 descriptors = atoi(optarg);
38 --- nfs-utils-1.0.10.orig/utils/nfsstat/nfsstat.man
39 +++ nfs-utils-1.0.10/utils/nfsstat/nfsstat.man
40 @@ -14,36 +14,36 @@
41 displays statistics kept about NFS client and server activity.
42 .SH OPTIONS
43 .TP
44 -.B -s, --server
45 +.B \-s, \-\-server
46 Print only server-side statistics. The default is to print both server and
47 client statistics.
48 .TP
49 -.B -c, --client
50 +.B \-c, \-\-client
51 Print only client-side statistics.
52 .TP
53 -.B -n, --nfs
54 +.B \-n, \-\-nfs
55 Print only NFS statistics. The default is to print both NFS and RPC
56 information.
57 .TP
58 -.B -2
59 +.B \-2
60 Print only NFS v2 statistics. The default is to only print information
61 about the versions of \fBNFS\fR that have non-zero counts.
62 .TP
63 -.B -3
64 +.B \-3
65 Print only NFS v3 statistics.
66 .TP
67 -.B -4
68 +.B \-4
69 Print only NFS v4 statistics.
70 .TP
71 -.B -m, --mounted
72 +.B \-m, \-\-mounted
73 Print information about each of the mounted \fBNFS\fR file systems.
75 If this option is used, all other options are ignored.
76 .TP
77 -.B -r, --rpc
78 +.B \-r, \-\-rpc
79 Print only RPC statistics.
80 .TP
81 -.BI -o " facility
82 +.BI \-o " facility
83 Display statistics for the specified facility, which must be one of:
84 .RS
85 .TP
86 @@ -69,27 +69,27 @@
87 Display all of the above facilities.
88 .RE
89 .TP
90 -.B -v, --verbose
91 -This is equivalent to \fB-o all\fR.
92 +.B \-v, \-\-verbose
93 +This is equivalent to \fB\-o all\fR.
94 .SH EXAMPLES
95 .TP
96 -.B nfsstat -o all -234
97 +.B nfsstat \-o all \-234
98 Show all information about all versions of \fBNFS\fR.
99 .TP
100 -.B nfsstat --verbose -234
101 +.B nfsstat \-\-verbose \-234
102 Same as above.
104 -.B nfsstat -o all
105 +.B nfsstat \-o all
106 Show all information about about active versions of \fBNFS\fR.
108 -.B nfsstat --nfs --server -3
109 +.B nfsstat \-\-nfs \-\-server \-3
110 Show statistics for \fBNFS\fR version 3 server.
112 -.B nfsstat -m
113 +.B nfsstat \-m
114 Show information about mounted \fBNFS\fR filesystems.
115 .\" --------------------- DISPLAY --------------------------------
116 .SH DISPLAY
117 -The \fBFlags\fR output from the \fB-m\fR option is the same as the
118 +The \fBFlags\fR output from the \fB\-m\fR option is the same as the
119 flags give to the \fBmount\fR command.
120 .\" --------------------- FILES ----------------------------------
121 .SH FILES
122 @@ -111,11 +111,11 @@
123 .BR nfs (5).
124 .\" ---------------------- BUGS ----------------------------------
125 .SH BUGS
126 -The default output has be changed. To get the old default output you must run \fBnfsstat --auto -2\fR.
127 +The default output has be changed. To get the old default output you must run \fBnfsstat \-\-auto \-2\fR.
129 -The function of the \fB-v\fR and \fB-a\fR options have changed. The \fB-a\fR option
130 -is now reserved for future use. The \fB-v\fR does what the \fB-a\fR option used to do,
131 -and the new \fB-[234]\fR options replace the \fB-v\fR option.
132 +The function of the \fB\-v\fR and \fB\-a\fR options have changed. The \fB\-a\fR option
133 +is now reserved for future use. The \fB\-v\fR does what the \fB\-a\fR option used to do,
134 +and the new \fB\-[234]\fR options replace the \fB\-v\fR option.
136 The \fBDisplay\fR section should be more complete.
138 --- nfs-utils-1.0.10.orig/utils/rquotad/rquota.h
139 +++ nfs-utils-1.0.10/utils/rquotad/rquota.h
140 @@ -0,0 +1,155 @@
142 + * Please do not edit this file.
143 + * It was generated using rpcgen.
144 + */
146 +#ifndef _RQUOTA_H_RPCGEN
147 +#define _RQUOTA_H_RPCGEN
149 +#include <rpc/rpc.h>
151 +#ifndef IXDR_GET_INT32
152 +#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
153 +#endif
154 +#ifndef IXDR_PUT_INT32
155 +#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
156 +#endif
157 +#ifndef IXDR_GET_U_INT32
158 +#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
159 +#endif
160 +#ifndef IXDR_PUT_U_INT32
161 +#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
162 +#endif
163 +#define RQ_PATHLEN 1024
165 +struct getquota_args {
166 + char *gqa_pathp;
167 + int gqa_uid;
169 +typedef struct getquota_args getquota_args;
170 +#ifdef __cplusplus
171 +extern "C" bool_t xdr_getquota_args(XDR *, getquota_args*);
172 +#elif __STDC__
173 +extern bool_t xdr_getquota_args(XDR *, getquota_args*);
174 +#else /* Old Style C */
175 +bool_t xdr_getquota_args();
176 +#endif /* Old Style C */
179 +struct ext_getquota_args {
180 + char *gqa_pathp;
181 + int gqa_type;
182 + int gqa_id;
184 +typedef struct ext_getquota_args ext_getquota_args;
185 +#ifdef __cplusplus
186 +extern "C" bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*);
187 +#elif __STDC__
188 +extern bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*);
189 +#else /* Old Style C */
190 +bool_t xdr_ext_getquota_args();
191 +#endif /* Old Style C */
194 +struct rquota {
195 + int rq_bsize;
196 + bool_t rq_active;
197 + u_int rq_bhardlimit;
198 + u_int rq_bsoftlimit;
199 + u_int rq_curblocks;
200 + u_int rq_fhardlimit;
201 + u_int rq_fsoftlimit;
202 + u_int rq_curfiles;
203 + u_int rq_btimeleft;
204 + u_int rq_ftimeleft;
206 +typedef struct rquota rquota;
207 +#ifdef __cplusplus
208 +extern "C" bool_t xdr_rquota(XDR *, rquota*);
209 +#elif __STDC__
210 +extern bool_t xdr_rquota(XDR *, rquota*);
211 +#else /* Old Style C */
212 +bool_t xdr_rquota();
213 +#endif /* Old Style C */
216 +enum gqr_status {
217 + Q_OK = 1,
218 + Q_NOQUOTA = 2,
219 + Q_EPERM = 3,
221 +typedef enum gqr_status gqr_status;
222 +#ifdef __cplusplus
223 +extern "C" bool_t xdr_gqr_status(XDR *, gqr_status*);
224 +#elif __STDC__
225 +extern bool_t xdr_gqr_status(XDR *, gqr_status*);
226 +#else /* Old Style C */
227 +bool_t xdr_gqr_status();
228 +#endif /* Old Style C */
231 +struct getquota_rslt {
232 + gqr_status status;
233 + union {
234 + rquota gqr_rquota;
235 + } getquota_rslt_u;
237 +typedef struct getquota_rslt getquota_rslt;
238 +#ifdef __cplusplus
239 +extern "C" bool_t xdr_getquota_rslt(XDR *, getquota_rslt*);
240 +#elif __STDC__
241 +extern bool_t xdr_getquota_rslt(XDR *, getquota_rslt*);
242 +#else /* Old Style C */
243 +bool_t xdr_getquota_rslt();
244 +#endif /* Old Style C */
247 +#define RQUOTAPROG ((u_int32_t)100011)
248 +#define RQUOTAVERS ((u_int32_t)1)
250 +#ifdef __cplusplus
251 +#define RQUOTAPROC_GETQUOTA ((u_int32_t)1)
252 +extern "C" getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
253 +extern "C" getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
254 +#define RQUOTAPROC_GETACTIVEQUOTA ((u_int32_t)2)
255 +extern "C" getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
256 +extern "C" getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
258 +#elif __STDC__
259 +#define RQUOTAPROC_GETQUOTA ((u_int32_t)1)
260 +extern getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
261 +extern getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
262 +#define RQUOTAPROC_GETACTIVEQUOTA ((u_int32_t)2)
263 +extern getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
264 +extern getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
266 +#else /* Old Style C */
267 +#define RQUOTAPROC_GETQUOTA ((u_int32_t)1)
268 +extern getquota_rslt * rquotaproc_getquota_1();
269 +extern getquota_rslt * rquotaproc_getquota_1_svc();
270 +#define RQUOTAPROC_GETACTIVEQUOTA ((u_int32_t)2)
271 +extern getquota_rslt * rquotaproc_getactivequota_1();
272 +extern getquota_rslt * rquotaproc_getactivequota_1_svc();
273 +#endif /* Old Style C */
274 +#define EXT_RQUOTAVERS ((u_int32_t)2)
276 +#ifdef __cplusplus
277 +extern "C" getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *);
278 +extern "C" getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *);
279 +extern "C" getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *);
280 +extern "C" getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *);
282 +#elif __STDC__
283 +extern getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *);
284 +extern getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *);
285 +extern getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *);
286 +extern getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *);
288 +#else /* Old Style C */
289 +extern getquota_rslt * rquotaproc_getquota_2();
290 +extern getquota_rslt * rquotaproc_getquota_2_svc();
291 +extern getquota_rslt * rquotaproc_getactivequota_2();
292 +extern getquota_rslt * rquotaproc_getactivequota_2_svc();
293 +#endif /* Old Style C */
295 +#endif /* !_RQUOTA_H_RPCGEN */
296 --- nfs-utils-1.0.10.orig/utils/rquotad/rquota_xdr.c
297 +++ nfs-utils-1.0.10/utils/rquotad/rquota_xdr.c
298 @@ -0,0 +1,215 @@
300 + * Please do not edit this file.
301 + * It was generated using rpcgen.
302 + */
304 +#include "rquota.h"
306 +bool_t
307 +xdr_getquota_args(xdrs, objp)
308 + XDR *xdrs;
309 + getquota_args *objp;
312 + if (!xdr_string(xdrs, &objp->gqa_pathp, RQ_PATHLEN)) {
313 + return (FALSE);
315 + if (!xdr_int(xdrs, &objp->gqa_uid)) {
316 + return (FALSE);
318 + return (TRUE);
321 +bool_t
322 +xdr_ext_getquota_args(xdrs, objp)
323 + XDR *xdrs;
324 + ext_getquota_args *objp;
327 + if (!xdr_string(xdrs, &objp->gqa_pathp, RQ_PATHLEN)) {
328 + return (FALSE);
330 + if (!xdr_int(xdrs, &objp->gqa_type)) {
331 + return (FALSE);
333 + if (!xdr_int(xdrs, &objp->gqa_id)) {
334 + return (FALSE);
336 + return (TRUE);
339 +bool_t
340 +xdr_rquota(xdrs, objp)
341 + XDR *xdrs;
342 + rquota *objp;
346 + if (xdrs->x_op == XDR_ENCODE) {
347 + int32_t *buf = XDR_INLINE(xdrs,10 * BYTES_PER_XDR_UNIT);
348 + if (buf == NULL) {
349 + if (!xdr_int(xdrs, &objp->rq_bsize)) {
350 + return (FALSE);
352 + if (!xdr_bool(xdrs, &objp->rq_active)) {
353 + return (FALSE);
355 + if (!xdr_u_int(xdrs, &objp->rq_bhardlimit)) {
356 + return (FALSE);
358 + if (!xdr_u_int(xdrs, &objp->rq_bsoftlimit)) {
359 + return (FALSE);
361 + if (!xdr_u_int(xdrs, &objp->rq_curblocks)) {
362 + return (FALSE);
364 + if (!xdr_u_int(xdrs, &objp->rq_fhardlimit)) {
365 + return (FALSE);
367 + if (!xdr_u_int(xdrs, &objp->rq_fsoftlimit)) {
368 + return (FALSE);
370 + if (!xdr_u_int(xdrs, &objp->rq_curfiles)) {
371 + return (FALSE);
373 + if (!xdr_u_int(xdrs, &objp->rq_btimeleft)) {
374 + return (FALSE);
376 + if (!xdr_u_int(xdrs, &objp->rq_ftimeleft)) {
377 + return (FALSE);
381 + else {
382 + (void) IXDR_PUT_INT32(buf,objp->rq_bsize);
383 + (void) IXDR_PUT_BOOL(buf,objp->rq_active);
384 + (void) IXDR_PUT_U_INT32(buf,objp->rq_bhardlimit);
385 + (void) IXDR_PUT_U_INT32(buf,objp->rq_bsoftlimit);
386 + (void) IXDR_PUT_U_INT32(buf,objp->rq_curblocks);
387 + (void) IXDR_PUT_U_INT32(buf,objp->rq_fhardlimit);
388 + (void) IXDR_PUT_U_INT32(buf,objp->rq_fsoftlimit);
389 + (void) IXDR_PUT_U_INT32(buf,objp->rq_curfiles);
390 + (void) IXDR_PUT_U_INT32(buf,objp->rq_btimeleft);
391 + (void) IXDR_PUT_U_INT32(buf,objp->rq_ftimeleft);
394 + return (TRUE);
395 + } else if (xdrs->x_op == XDR_DECODE) {
396 + int32_t *buf = XDR_INLINE(xdrs,10 * BYTES_PER_XDR_UNIT);
397 + if (buf == NULL) {
398 + if (!xdr_int(xdrs, &objp->rq_bsize)) {
399 + return (FALSE);
401 + if (!xdr_bool(xdrs, &objp->rq_active)) {
402 + return (FALSE);
404 + if (!xdr_u_int(xdrs, &objp->rq_bhardlimit)) {
405 + return (FALSE);
407 + if (!xdr_u_int(xdrs, &objp->rq_bsoftlimit)) {
408 + return (FALSE);
410 + if (!xdr_u_int(xdrs, &objp->rq_curblocks)) {
411 + return (FALSE);
413 + if (!xdr_u_int(xdrs, &objp->rq_fhardlimit)) {
414 + return (FALSE);
416 + if (!xdr_u_int(xdrs, &objp->rq_fsoftlimit)) {
417 + return (FALSE);
419 + if (!xdr_u_int(xdrs, &objp->rq_curfiles)) {
420 + return (FALSE);
422 + if (!xdr_u_int(xdrs, &objp->rq_btimeleft)) {
423 + return (FALSE);
425 + if (!xdr_u_int(xdrs, &objp->rq_ftimeleft)) {
426 + return (FALSE);
430 + else {
431 + objp->rq_bsize = IXDR_GET_INT32(buf);
432 + objp->rq_active = IXDR_GET_BOOL(buf);
433 + objp->rq_bhardlimit = IXDR_GET_U_INT32(buf);
434 + objp->rq_bsoftlimit = IXDR_GET_U_INT32(buf);
435 + objp->rq_curblocks = IXDR_GET_U_INT32(buf);
436 + objp->rq_fhardlimit = IXDR_GET_U_INT32(buf);
437 + objp->rq_fsoftlimit = IXDR_GET_U_INT32(buf);
438 + objp->rq_curfiles = IXDR_GET_U_INT32(buf);
439 + objp->rq_btimeleft = IXDR_GET_U_INT32(buf);
440 + objp->rq_ftimeleft = IXDR_GET_U_INT32(buf);
442 + return(TRUE);
445 + if (!xdr_int(xdrs, &objp->rq_bsize)) {
446 + return (FALSE);
448 + if (!xdr_bool(xdrs, &objp->rq_active)) {
449 + return (FALSE);
451 + if (!xdr_u_int(xdrs, &objp->rq_bhardlimit)) {
452 + return (FALSE);
454 + if (!xdr_u_int(xdrs, &objp->rq_bsoftlimit)) {
455 + return (FALSE);
457 + if (!xdr_u_int(xdrs, &objp->rq_curblocks)) {
458 + return (FALSE);
460 + if (!xdr_u_int(xdrs, &objp->rq_fhardlimit)) {
461 + return (FALSE);
463 + if (!xdr_u_int(xdrs, &objp->rq_fsoftlimit)) {
464 + return (FALSE);
466 + if (!xdr_u_int(xdrs, &objp->rq_curfiles)) {
467 + return (FALSE);
469 + if (!xdr_u_int(xdrs, &objp->rq_btimeleft)) {
470 + return (FALSE);
472 + if (!xdr_u_int(xdrs, &objp->rq_ftimeleft)) {
473 + return (FALSE);
475 + return (TRUE);
478 +bool_t
479 +xdr_gqr_status(xdrs, objp)
480 + XDR *xdrs;
481 + gqr_status *objp;
484 + if (!xdr_enum(xdrs, (enum_t *)objp)) {
485 + return (FALSE);
487 + return (TRUE);
490 +bool_t
491 +xdr_getquota_rslt(xdrs, objp)
492 + XDR *xdrs;
493 + getquota_rslt *objp;
496 + if (!xdr_gqr_status(xdrs, &objp->status)) {
497 + return (FALSE);
499 + switch (objp->status) {
500 + case Q_OK:
501 + if (!xdr_rquota(xdrs, &objp->getquota_rslt_u.gqr_rquota)) {
502 + return (FALSE);
504 + break;
505 + case Q_NOQUOTA:
506 + break;
507 + case Q_EPERM:
508 + break;
509 + default:
510 + return (FALSE);
512 + return (TRUE);
514 --- nfs-utils-1.0.10.orig/utils/showmount/showmount.man
515 +++ nfs-utils-1.0.10/utils/showmount/showmount.man
516 @@ -21,7 +21,7 @@
517 The output from
518 .B showmount
519 is designed to
520 -appear as though it were processed through ``sort -u''.
521 +appear as though it were processed through ``sort \-u''.
522 .SH OPTIONS
524 .BR \-a " or " \-\-all
525 --- nfs-utils-1.0.10.orig/debian/bzero.patch
526 +++ nfs-utils-1.0.10/debian/bzero.patch
527 @@ -0,0 +1,11 @@
528 +--- nfs-utils-1.0.9.orig/support/nfs/svc_socket.c
529 ++++ nfs-utils-1.0.9/support/nfs/svc_socket.c
530 +@@ -35,6 +35,8 @@
531 + # define __close(f) close ((f))
532 + #endif
534 ++#define __bzero(d,n) memset((d),'\0',(n))
536 + static int
537 + svc_socket (u_long number, int type, int protocol, int reuse)
539 --- nfs-utils-1.0.10.orig/debian/control
540 +++ nfs-utils-1.0.10/debian/control
541 @@ -0,0 +1,57 @@
542 +Source: nfs-utils
543 +Priority: standard
544 +Section: net
545 +Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
546 +Uploaders: Steinar H. Gunderson <sesse@debian.org>, Daniel Baumann <daniel@debian.org>
547 +Build-Depends: debhelper (>= 5), libwrap0-dev, libevent-dev, libnfsidmap-dev, libkrb5-dev, libgssapi-dev, librpcsecgss-dev, perl, pkg-config
548 +Build-Conflicts: librpcsecgss-dev (= 0.14-1)
549 +Standards-Version: 3.7.2
551 +Package: nfs-kernel-server
552 +Priority: optional
553 +Architecture: any
554 +Depends: nfs-common (>= 1:1.0.8-1), ucf, lsb-base (>= 1.3-9ubuntu3), ${shlibs:Depends}
555 +Provides: knfs, nfs-server
556 +Conflicts: knfs, nfs-server
557 +Replaces: knfs, nfs-server
558 +Description: Kernel NFS server support
559 + Use this package if you want to use the kernel-mode NFS server.
560 + The user-mode NFS server in the "nfs-user-server" package is slower
561 + and less featureful but easier to debug than the kernel-mode server.
563 + Upstream: SourceForge project "nfs", CVS module nfs-utils.
565 + Homepage: http://nfs.sourceforge.net/
567 +Package: nfs-common
568 +Architecture: any
569 +Depends: portmap, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), netbase (>= 4.24), ${shlibs:Depends}
570 +Provides: nfs-client
571 +Conflicts: nfs-client
572 +Replaces: nfs-client, nfs-kernel-server (<< 1:1.0.7-5)
573 +Description: NFS support files common to client and server
574 + Use this package on any machine that uses NFS, either as client or
575 + server. Programs included: lockd, statd, showmount, nfsstat, gssd
576 + and idmapd.
578 + Upstream: SourceForge project "nfs", CVS module nfs-utils.
580 + Homepage: http://nfs.sourceforge.net/
582 +Package: nhfsstone
583 +Priority: extra
584 +Architecture: any
585 +Depends: nfs-common, ${shlibs:Depends}
586 +Replaces: nfs-kernel-server
587 +Description: NFS benchmark program
588 + nhfsstone (pronounced n-f-s-stone, the "h" is silent) is used on a
589 + NFS client to generate an artificial load with a particular mix of
590 + NFS operations. It reports the average response time of the server
591 + in milliseconds per call and the load in calls per second. The
592 + program adjusts its calling patterns based on the client's kernel
593 + NFS statistics and the elapsed time. Load can be generated over a
594 + given time or number of NFS calls.
596 + Upstream: SourceForge project "nfs", CVS module nfs-utils.
598 + Homepage: http://nfs.sourceforge.net/
599 --- nfs-utils-1.0.10.orig/debian/rules
600 +++ nfs-utils-1.0.10/debian/rules
601 @@ -0,0 +1,65 @@
602 +#!/usr/bin/make -f
603 +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
605 +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
606 +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
607 +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
608 +DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
610 +# Temporary root
611 +DEBTMP := $(shell pwd)/debian/tmp
613 +build: build-stamp
614 +build-stamp:
615 + dh_testdir
616 +ifeq ($(DEB_HOST_ARCH),ia64)
617 + patch -p1 < debian/bzero.patch
618 +endif
619 + CFLAGS="-g -O2 -Wall" ./configure \
620 + --mandir='$${prefix}/share/man' \
621 + --enable-secure-statd
622 + $(MAKE)
623 + touch build-stamp
625 +clean:
626 + dh_testdir
627 + dh_testroot
628 + rm -f build-stamp
629 + rm -rf $(DEBTMP)
630 + -$(MAKE) distclean
631 + dh_clean
633 +binary-indep: build
634 +binary-arch: build
635 + dh_testdir
636 + dh_testroot
637 + dh_clean -k
638 + dh_installdirs
639 + mkdir $(DEBTMP)
640 + $(MAKE) DESTDIR='$(DEBTMP)' install
641 + dh_install
643 + # Fix up the manpages
644 + for f in lockd statd showmount; do \
645 + perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
646 + debian/tmp/usr/share/man/man8/$$f.8; \
647 + done;
649 + dh_installdocs -A
650 + dh_installdocs -pnfs-common debian/README.Debian.nfsv4
651 + install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
652 + install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
653 + dh_installman
654 + dh_link
655 + dh_installchangelogs ChangeLog
656 + dh_strip
657 + dh_compress
658 + dh_fixperms
659 + dh_installdeb
660 + dh_shlibdeps
661 + dh_gencontrol
662 + dh_md5sums
663 + dh_builddeb
665 +binary: binary-indep binary-arch
666 +.PHONY: build clean binary-indep binary-arch binary
667 --- nfs-utils-1.0.10.orig/debian/changelog
668 +++ nfs-utils-1.0.10/debian/changelog
669 @@ -0,0 +1,1055 @@
670 +nfs-utils (1:1.0.10-2) unstable; urgency=low
672 + * Remove leftover log file from the .diff.gz.
673 + * Build package with -O2; it got lost somewhere along the way.
674 + * Replace - by \- in man pages (exports, nfsstat, showmount) where
675 + appropriate.
676 + * Add Required-Stop to the nfs-common and nfs-kernel-server init script
677 + blocks to match the Required-Start directives.
678 + * Finally remove DH_VERBOSE=1 from debian/rules.
679 + * Add a reference to Trond Myklebust's client patch sets in
680 + README.Debian.nfsv4.
681 + * Handle issues with the nfs entries missing in /etc/services. (Closes:
682 + #392276).
683 + * Depend on netbase (>= 4.24), to make sure we have a version that has the
684 + entries in the first place.
685 + * Document that the entries might be missing still in README.Debian.nfsv4
686 + (in case the user refused to replace a modified version of
687 + /etc/services), and that they might need re-adding.
688 + * Make the init script check that the lines are there before starting
689 + rpc.gssd, and refer to the README otherwise.
691 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 11 Oct 2006 15:15:49 +0200
693 +nfs-utils (1:1.0.10-1) unstable; urgency=low
695 + * New upstream release.
696 + * Fixes issues with missing write_oid() function. (Closes: #386117)
697 + * Drop versioned dependency on libnfsidmap1, now that libnfsidmap-dev has
698 + fixed shlibs. This makes it possible to build against libnfsidmap2.
699 + (Closes: #386116)
700 + * Update README.Debian.nfsv4.
701 + * Remove the part about a patched mount; the NFSv4 patch has been enabled
702 + in mount for some time.
703 + * Note that the special export structure might go away in the future.
704 + * Note that you will need idmapd and possibly gssd/svcgssd enabled.
706 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 6 Sep 2006 00:30:32 +0200
708 +nfs-utils (1:1.0.9-12) unstable; urgency=low
710 + * Really remove dependency on sysvinit.
712 + -- Steinar H. Gunderson <sesse@debian.org> Tue, 5 Sep 2006 13:59:29 +0200
714 +nfs-utils (1:1.0.9-11) unstable; urgency=low
716 + * In the exports man page, document that there might be sensitive non-root
717 + gids as well as uids, for instance gid staff. (Closes: #385377)
718 + * Remove unnecessary dependency on sysvinit, in line with the Ubuntu
719 + packages.
720 + * Change the versioned build-dependency on librpcsecgss-dev (>= 0.14-2)
721 + to a build-conflict on 0.14-1, as that is the only version, and it's
722 + easier for backports and other distributions without the new version of
723 + librpcsecgss.
725 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 31 Aug 2006 01:53:45 +0200
727 +nfs-utils (1:1.0.9-10) unstable; urgency=low
729 + * The -n option (short option for --no-tcp) to rpc.mountd was set
730 + to take a parameter, even though --no-tcp doesn't take any, the
731 + parameter is never used and the help doesn't mention any. Remove
732 + the colon after 'n' in the getopt string to fix it.
733 + * Add a versioned dependency from nfs-common to libnfsidmap1 (>= 0.16-3)
734 + temporarily, to work around #384688.
736 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 26 Aug 2006 03:29:09 +0200
738 +nfs-utils (1:1.0.9-9) unstable; urgency=medium
740 + * Patched svc_socket.c to define __bzero only on ia64.
741 + Closes: #384552.
743 + -- Anibal Monsalve Salazar <anibal@debian.org> Fri, 25 Aug 2006 11:45:07 +1000
745 +nfs-utils (1:1.0.9-8) unstable; urgency=medium
747 + * In the init scripts, don't attempt to use pid files; the daemons don't
748 + leave them, and --make-pidfile gives wrong pid files since all the daemons
749 + fork by themselves. Thus, multiple invocations of "start" could leave
750 + multiple daemons lying around, which could cause all sorts of problems.
752 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 17 Aug 2006 17:24:11 +0200
754 +nfs-utils (1:1.0.9-7) unstable; urgency=low
756 + * New sourceful upload to force rebuild against librpcsecgss3, to get all
757 + architectures in sync and make sure rpc.gssd actually has a proper library
758 + to link against.
759 + * Build-depend against librpcsecgss-dev (>= 0.14-2), since that's when
760 + the package name bump happened.
762 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 12 Aug 2006 19:55:35 +0200
764 +nfs-utils (1:1.0.9-6) unstable; urgency=low
766 + * Enable idmapd by default if we find an /etc/exports file, as NFSv4 exports
767 + need idmapd. (See the init script for the complete reasoning). Also start
768 + nfs-common on initial installation of nfs-kernel-server, as we don't want
769 + to reboot or restart nfs-common manually just to get idmapd working the
770 + first time. (Closes: #381366)
772 + -- Steinar H. Gunderson <sesse@debian.org> Mon, 7 Aug 2006 21:27:37 +0200
774 +nfs-utils (1:1.0.9-5) unstable; urgency=low
776 + * Put rpc.svcgssd back into place; removing it was obviously not what
777 + upstream intended to do after all. (Closes: #378686)
778 + * Add rpc.svcgssd to nfs-kernel-server.install.
779 + * Add the svcgssd(8) man page, as well as the rpc.svcgssd(8) symlink.
780 + * Add NEED_SVCGSSD and RPCSECGSSDOPTS options to nfs-kernel-server.default.
781 + * Start and rpc.svcgssd in the nfs-kernel-server init script. Currently,
782 + no autodetection is done; you'll need to enable it manually. (We can't
783 + start it regardless, since it bombs out if there is no adequate nfs/*
784 + entry in the keytab.)
785 + * Remove obsolete RPCGSSDOPTS option from the nfs-kernel-server init script.
787 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 19 Jul 2006 14:06:33 +0200
789 +nfs-utils (1:1.0.9-4) unstable; urgency=low
791 + * Remove versioned dependency on coreutils, as we don't use it indirectly,
792 + only via ucf (so the dependency should be there). This makes the package
793 + somewhat easier to backport to sarge.
794 + * Remove the word "Debian" from our patch against the exports(5) man page,
795 + as Debian is not the only distribution using these packages.
797 + -- Steinar H. Gunderson <sesse@debian.org> Sun, 16 Jul 2006 01:59:13 +0200
799 +nfs-utils (1:1.0.9-3) unstable; urgency=low
801 + * Don't automatically assume that the kernel is modular if /sbin/modprobe
802 + is available, check for /proc/modules as well; patch from Nicolas
803 + Trecourt. (Closes: #377685)
805 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 13 Jul 2006 21:39:08 +0200
807 +nfs-utils (1:1.0.9-2) unstable; urgency=low
809 + * Merge changes from 1.0.9-1 and 1.0.9pre1-4:
810 + * Disable mount.nfs once again; it's not ready for regular use according
811 + to upstream.
812 + * Revert mount options patch to mount.nfs; it's irrelevant as long as we
813 + don't install the binary.
814 + * Install the new rpcdebug program.
815 + * Remove the {mount,umount}.nfs manpages.
817 + -- Steinar H. Gunderson <sesse@debian.org> Sun, 9 Jul 2006 00:16:54 +0200
819 +nfs-utils (1:1.0.9-1) unstable; urgency=high
821 + * Updated co-mantainer mail address.
822 + * New upstream release.
823 + - Added 'mount.nfs' utility which can be used as a mount helper
824 + to mount nfs filesystems. It does not yet support 'user' mounts.
825 + - Makefile/autoconf tidyups
826 + - No compiles with no warnings
827 + - deleted debian/* at request of debian maintainer
828 + - deleted assorted other unused files
829 + - mountd can be run multi-threaded for configurations with many hundreds
830 + of clients (mountd -t 20). Default is single-threaded
831 + - Support for selection NFS version to be exported, and protocol to
832 + use. This requires kernel patches that should be in linux 2.6.19.
833 + - Use 65534 rather than -2 for default anon. This makes no difference in many
834 + cases, but is important in some.
835 + - New utility 'rpcdebug' for controlled kernel 'debug' options for nfs and nfsd.
836 + - nfsstat reports NFSv4 operation statistics that should be available in
837 + linux 2.6.18.
838 + - assorted other fixes
840 + -- Anibal Monsalve Salazar <anibal@debian.org> Sat, 08 Jul 2006 14:26:40 +1000
842 +nfs-utils (1:1.0.8+1.0.9pre1-4) unstable; urgency=low
844 + * Back out having separate mount.nfs; this is in line with upstream, who
845 + wants to delay this to 1.0.10.
846 + * No longer install {mount,umount}.{nfs,nfs4} to /sbin.
847 + * Revert patch applied in -3.
849 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 8 Jul 2006 16:43:38 +0200
851 +nfs-utils (1:1.0.8+1.0.9pre1-3) unstable; urgency=high
853 + * Add patch from upstream to check for common mount options like "user"
854 + or "noauto". (Closes: #376839)
855 + * Remove obsolete copying of config.{sub,guess} in debian/rules.
857 + -- Steinar H. Gunderson <sesse@debian.org> Fri, 7 Jul 2006 21:12:06 +0200
859 +nfs-utils (1:1.0.8+1.0.9pre1-2) unstable; urgency=low
861 + * Provide LSB dependency information in the nfs-common and nfs-kernel-server
862 + init scripts; replaces the obsolete chkconfig info. (Closes: #376976)
863 + * Update the long descriptions.
865 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 6 Jul 2006 19:37:58 +0200
867 +nfs-utils (1:1.0.8+1.0.9pre1-1) unstable; urgency=low
869 + * New upstream release.
870 + * debian/ directory removed from upstream; no need to repack or do ugly
871 + hacks in debian/rules anymore.
872 + * Obsoletes most Debian-specific patches, as they are already included
873 + upstream. For reference, the patches that are still Debian-specific are:
874 + * Use 65534 instead of -2 for anonuid, update manpage accordingly.
875 + * Debian-specific information in exports man page.
876 + * Don't use -rpath for gssd.
877 + * Hardcode default mapping in svcgssd. Adjust patch to use uid/gid
878 + 65534 instead of -2, for consistency; also remove double error
879 + message.
880 + * Spelling fixes in nfsstat, showmount and statd man pages.
881 + * Supports options to bind to specific IPs. (Closes: #246939, #312720)
882 + * Include mount.nfs and friends, which will over time take over the job of
883 + doing NFS mounting from util-linux.
884 + * Complete sync with Ubuntu:
885 + * Pull in changes to use LSB display functions in init scripts; adapted
886 + to give output more like what was already in Debian, to fix a few bugs,
887 + and use plain echo in "status" targets, where using LSB functions makes
888 + no sense.
889 + * Depend on lsb-base from nfs-common and nfs-kernel-server.
890 + * Init script updates:
891 + * Document "status" option in the nfs-common init script's help message.
892 + * Drop "set -e"; it makes error checking wrt. the LSB functions harder.
893 + * Drop obsolete "cd /".
894 + * Fix syntax errors in "status" target.
895 + * In the "status" target, don't check that the output of pidof matches the
896 + pidfiles for gssd and idmapd, as they fork after start and thus get a
897 + different pid.
898 + * Include gss_clnt_send_err and gss_destroy_creds binaries.
900 + -- Steinar H. Gunderson <sesse@debian.org> Tue, 4 Jul 2006 18:55:51 +0200
902 +nfs-utils (1:1.0.8-10) unstable; urgency=high
904 + * Added nfs-common dependency on coreutils (>= 5.93-1). The readlink
905 + option -e was introduced since version 5.91 of coreutils. Closes:
906 + #376285.
908 + -- Anibal Monsalve Salazar <anibal@debian.org> Sun, 02 Jul 2006 09:53:16 +1000
910 +nfs-utils (1:1.0.8-9) unstable; urgency=high
912 + * svcgssd_proc.c: Temporary patch to do default mapping if we get an
913 + error while trying to map a gss principal to the appropriate uid/gid.
914 + This currently returns hardcoded values. Closes: #376258.
916 + -- Anibal Monsalve Salazar <anibal@debian.org> Sat, 01 Jul 2006 22:30:11 +1000
918 +nfs-utils (1:1.0.8-8) unstable; urgency=low
920 + * Include yet more ucf md5sums for /etc/default/nfs-common and
921 + /etc/default/nfs-kernel-server (/etc/exports was already OK); this time,
922 + I've gone through the entire 1.0.7 series programmatically, so hopefully
923 + there should finally be none left.
925 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 14 Jun 2006 10:47:23 +0200
927 +nfs-utils (1:1.0.8-7) unstable; urgency=low
929 + * For some odd reason (ie. human error) this package has branched into two
930 + different versions from 1:1.0.8-5 on. This package rejoins the two branches.
931 + The changelog from the other 1:1.0.8-5 (which was probably never accepted
932 + except as part of 1:1.0.8-6) is repeated for convenience and automated bug
933 + closing below:
934 + * Patch nfs-common and nfs-kernel-server init scripts to make them more LSB
935 + compatible, fixing issues with heartbeat2; based on patches by Kilian
936 + CAVALOTTI. (Closes: #371084, #371085)
937 + * Add --oknodo to start-stop-daemon in start targets, to make a second
938 + "start" invocation return exit status 0.
939 + * Add status targets to the two init scripts, with correct output and
940 + exit codes.
942 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 08 Jun 2006 17:31:28 +0200
944 +nfs-utils (1:1.0.8-5) unstable; urgency=low
946 + * Make nfs-kernel-server depend on at least version 1.0.8 of nfs-common;
947 + lots of stuff will break with an upstream version mismatch.
949 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 7 Jun 2006 01:13:28 +0200
951 +nfs-utils (1:1.0.8-4) unstable; urgency=low
953 + * Fix a few spelling errors in the man pages; patches from A Costa.
954 + (Closes: #370561, #370562, #370563)
956 + -- Steinar H. Gunderson <sesse@debian.org> Tue, 6 Jun 2006 11:59:28 +0200
958 +nfs-utils (1:1.0.8-3) unstable; urgency=low
960 + * The "what the heck, I uploaded an outdated 1:1.0.8-1 release without
961 + the pkg-config fix and some other changes" release.
962 + * Tweaks to debian/rules:
963 + * Drop --sourcedir=debian/tmp from dh_install so we can also install files
964 + directly from the debian/ directory.
965 + * Minimize direct uses of install; move all the ucf installation into the
966 + debhelper .install files.
967 + * Remove some obsolete comments.
968 + * Remove empty (modulo #DEBHELPER# tokens) nhfsstone.{postinst,prerm}
969 + scripts.
970 + * Clear out obsolete (pre-sarge) debconf and rc.d purging from postinst
971 + script. (Same as in 1:1.0.7-10, but for nfs-kernel-server too, not just
972 + nfs-common.) Minor style cleanup.
973 + * Include the md5sum for /etc/default/nfs-kernel-server from 1:1.0.7-13,
974 + to make ucf not complain when upgrading from that version.
976 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 3 Jun 2006 11:00:14 +0200
978 +nfs-utils (1:1.0.8-2) unstable; urgency=low
980 + * Added missing dependency on pkg-config.
982 + -- Anibal Monsalve Salazar <anibal@debian.org> Fri, 02 Jun 2006 19:08:11 +1000
984 +nfs-utils (1:1.0.8-1) unstable; urgency=low
986 + * New upstream version. (Closes: #364902)
987 + * Repack without the debian/ directory; remove ugly hacks in
988 + debian/rules that as a result are no longer needed. This also makes
989 + the permissions in debian/ right.
990 + * Forward-port all relevant patches from the old Debian diff.
991 + * rpc.svcgssd no longer exists (it's consolidated into rpc.gssd); remove
992 + all references to it in from the debian/ directory.
993 + * Build-depend on libgssapi-dev and librpcsecgss-dev, as both as now
994 + needed to build nfs-utils.
995 + * Give DESTDIR instead of install_prefix to "make install" (install_prefix
996 + no longer works).
997 + * No longer handle gssapi_mech.conf via ucf; it is now managed by the
998 + librpcsecgss package. Remove all references to it in debian/rules.
999 + * We no longer need to run autoconf as a part of debian/rules; its results
1000 + are parts of the diff instead, as per usual packaging practices.
1001 + * Drop the build-dependency on autoconf2.13 and autotools-dev.
1002 + * No longer rm various autotools-generated files in the clean target.
1004 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 1 Jun 2006 01:59:39 +0200
1006 +nfs-utils (1:1.0.7-19) unstable; urgency=low
1008 + * Include the md5sum for /etc/default/nfs-common from 1:1.0.7-15, to
1009 + make ucf not complain when upgrading from that version. (Closes: #368982)
1011 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 27 May 2006 12:54:50 +0200
1013 +nfs-utils (1:1.0.7-18) unstable; urgency=low
1015 + * Make /etc/exports, /etc/default/nfs-{common,kernel-server},
1016 + /etc/idmapd.conf and /etc/gssapi_mech.conf be managed by ucf
1017 + instead of being conffiles. (Closes: #353501)
1018 + * Make directories /usr/share/nfs-{common,kernel-server}/conffiles,
1019 + and install files in there at debian/rules time. At the same time,
1020 + install the files with install instead of cp.
1021 + * Call ucf at postinst time to get the files in.
1022 + * Correspondingly, call ucf at purge time to remove them as needed (code
1023 + snippets lifted from autofs).
1024 + * Make nfs-common and nfs-kernel-server depend on ucf.
1025 + * Remove the call to dh_installinit -- since it was already not modifying
1026 + postinst/postrm/prerm scripts due to being called with -n (I must admit
1027 + I don't know why, but I assume this has a good reason :-) ) and we now
1028 + install the init script ourself (because we don't want dh_installinit
1029 + to install our .default files to /etc), it doesn't do anything useful
1030 + for us.
1031 + * Include .md5sum files with MD5 checksums of previous defaults shipped,
1032 + to ease the transition into ucf; at the moment, only checksums from
1033 + 1:1.0.7-17 (the last non-ucf version) and 1:1.0.6-3.1 (the version
1034 + shipped in sarge) are included, but I think that should actually cover
1035 + all the defaults shipped in the period between as well.
1036 + * Install the .md5sum files in debian/rules.
1037 + * Remove call to dh_installexamples in debian/rules; we don't install any
1038 + examples.
1040 + -- Steinar H. Gunderson <sesse@debian.org> Mon, 22 May 2006 01:44:33 +0200
1042 +nfs-utils (1:1.0.7-17) unstable; urgency=low
1044 + * The umounting of rpc_pipefs is non-critical and will fail if there are
1045 + any active NFS mounts during, say, a restart. Thus, send its stderr to
1046 + /dev/null, and ignore its error status.
1047 + * Build-Depend on perl, as it's used in debian/rules.
1049 + -- Steinar H. Gunderson <sesse@debian.org> Sun, 14 May 2006 18:22:19 +0200
1051 +nfs-utils (1:1.0.7-16) unstable; urgency=high
1053 + * urgency=high; fixes an RC bug.
1054 + * If one upgraded from 1:1.0.7-13, /var/lib/nfs might never be set as owned
1055 + by statd. Bump the version check, so everything before this version gets
1056 + chowned properly. (Closes: #367009)
1057 + * Add more detailed explanations and links to the Debian wiki for
1058 + /etc/defaults/nfs-{common,kernel-server}. (Closes: #366989, #366990)
1060 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 13 May 2006 16:06:08 +0200
1062 +nfs-utils (1:1.0.7-15) unstable; urgency=low
1064 + * /var/lib/nfs/state is not a directory; it shouldn't really be mkdir-ed
1065 + or chowned (unless it already exists, in which case it should be
1066 + chowned). However, /var/lib/nfs should be owned by statd, so it can
1067 + create the file there. (Really Closes: #366654)
1068 + * umount /var/lib/nfs/rpc_pipefs on /etc/init.d/nfs-common stop; not doing
1069 + so could prevent purging of nfs-common.
1071 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 11 May 2006 12:42:13 +0200
1073 +nfs-utils (1:1.0.7-14) unstable; urgency=high
1075 + * urgency=high; fixes RC bugs (or at least, bugs that should have been RC).
1076 + * Add /var/lib/nfs/state to nfs-common.dirs, since we chown it in the
1077 + postinst. This would prevent nfs-common from configuring on initial
1078 + install. (Closes: #366654)
1079 + * Grep after "init_nf(sd|<tab>)" instead of "init_nfsd" in kallsyms, to work
1080 + around some odd symbol mangling problems on some alpha kernels.
1081 + (Closes: #363932)
1083 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 10 May 2006 22:00:59 +0200
1085 +nfs-utils (1:1.0.7-13) unstable; urgency=low
1087 + * Up the Standards-Version to 3.7.2; no changes needed.
1088 + * Tidy up after the /home/statd mess if there was a chance the user ever
1089 + had 1:1.0.7-10 installed; based on patch from Oskar Liljeblad.
1090 + (Closes: #366182)
1091 + * Fix the version check for the chown-ing of /var/lib/nfs/sm etc.; I
1092 + forgot to include the epoch, so only new installs ever got statd running
1093 + as non-root. (Due to this, the version number to test against is of course
1094 + also bumped.)
1096 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 6 May 2006 01:50:10 +0200
1098 +nfs-utils (1:1.0.7-12) unstable; urgency=low
1100 + * Move the home directory again (by request), this time to /var/lib/nfs.
1102 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 3 May 2006 21:27:18 +0200
1104 +nfs-utils (1:1.0.7-11) unstable; urgency=low
1106 + * When creating statd user, create it with a home directory of /nonexistant;
1107 + it doesn't really require a home directory. (Closes: #365514, #365721)
1108 + * Fix the signal number for USR1 (actually, use the name instead) in
1109 + nhfsrun. (Closes: #365657)
1111 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 3 May 2006 19:51:17 +0200
1113 +nfs-utils (1:1.0.7-10) unstable; urgency=low
1115 + * Intermediate 1.0.7 release, waiting for librpcsecgss to be uploaded into
1116 + Debian so we can upload 1.0.8.
1117 + * Clarify what the NEED_* options in /etc/default/nfs-common mean.
1118 + (Closes: #364625)
1119 + * Make /var/lib/nfs/{sm,sm.bak,state,rpc_pipefs} be owned by a new "statd"
1120 + user (created in postinst), causing rpc.statd to be run as that user
1121 + instead of root. (Closes: #240689)
1122 + * Make nfs-common depend on adduser.
1123 + * Clear out obsolete (pre-sarge) debconf and rc.d purging from postinst
1124 + script.
1125 + * Use invoke-rc.d in nfs-common and nfs-kernel-server prerms instead of
1126 + calling the /etc/init.d script directly; fixes two lintian warnings.
1128 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 27 Apr 2006 00:32:27 +0200
1130 +nfs-utils (1:1.0.7-9) unstable; urgency=low
1132 + * When checking for nfsd support in the kernel, check for init_nfsd
1133 + (which is a function) rather than nfsd_version (which is a variable);
1134 + kernels compiled without CONFIG_KALLSYMS_ALL=y have only the former.
1135 + (Closes: #361026)
1137 + -- Steinar H. Gunderson <sesse@debian.org> Thu, 6 Apr 2006 13:31:48 +0200
1139 +nfs-utils (1:1.0.7-8) unstable; urgency=low
1141 + * Don't complain about missing sync/async for a read-only export.
1142 + (Closes: #265409)
1143 + * Implement --state-directory-path for rpc.mountd; most code borrowed
1144 + from rpc.statd. (Closes: #352387)
1145 + * Update mountd.man accordingly.
1147 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 5 Apr 2006 22:54:09 +0200
1149 +nfs-utils (1:1.0.7-7) unstable; urgency=high
1151 + * urgency=high, fixes an RC bug.
1152 + * Let the init script test for kernel support before trying to start
1153 + nfs-kernel-server. (Closes: #360420)
1154 + * Include help on how to activate /etc/exports changes; text from
1155 + Martin Pool. (Closes: #239286)
1156 + * Document sync option in exports man page. (Closes: #297135)
1157 + * Give an example in /etc/exports. (Closes: #345460)
1158 + * Write a mini-HOWTO on how to get NFSv4 up and running. (Closes: #294468)
1159 + * Install it in debian/rules.
1161 + -- Steinar H. Gunderson <sesse@debian.org> Wed, 5 Apr 2006 18:15:20 +0200
1163 +nfs-utils (1:1.0.7-6) unstable; urgency=low
1165 + * Let the man-page fixup script in debian/rules look for the man pages in
1166 + the right place.
1167 + * Modprobe nfs4 along with nfs in the nfs-common init script. Also modprobe
1168 + rpcsec_gss_krb5 before we start gssd.
1169 + * Implement autodetection for NEED_IDMAPD and NEED_GSSD, based on /etc/fstab.
1170 + * Add a note to the top of /etc/defaults/nfs-common that the default is to
1171 + autodetect.
1172 + * Move /var/lib/nfs/rpc_pipefs from nfs-kernel-server.dirs to
1173 + nfs-common.dirs; it's needed by the client as well.
1174 + * Let dh_install install from debian/tmp/ instead of debian/tmp; it fixes
1175 + minor aesthetic issues in the build log.
1177 + -- Steinar H. Gunderson <sesse@debian.org> Sat, 1 Apr 2006 02:46:53 +0200
1179 +nfs-utils (1:1.0.7-5) unstable; urgency=low
1181 + * Non-non-maintainer-upload this time, it seems. :-)
1182 + * Don't let the init script fail if there wasn't any lockd threads to kill;
1183 + this could cause the package to fail configuration.
1184 + * Move to debhelper compatibility level 5.
1185 + * Use dh_install instead of dh_movefiles (actually a combination was used
1186 + earlier). Move stuff from *.files accordingly into *.install.
1187 + * mkdir debian/tmp manually before doing make install, and remove it
1188 + in the clean target.
1189 + * Use straight cp -a instead of dh_install for the files that _don't_
1190 + come from debian/tmp/ (the two /etc files).
1191 + * Fix the "fixups" part in debian/rules to reflect the behaviour of
1192 + dh_install compared to dh_movefiles (ie. don't rm lots of stuff in
1193 + debian/tmp, etc.).
1194 + * Make a debian/nfs-kernel-server.install listing explicitly the files
1195 + we want in that package; with dh_movefiles everything from make install
1196 + was implicitly put there. This has the side effect that the man pages
1197 + for rpc.gssd and idmap.conf are no longer put in nfs-kernel-server, but
1198 + in nfs-common, where they should be.
1199 + * Use dh_installman to install the manpages, to make sure they're in the
1200 + right place (and move the manpage lists from *.files to *.manpages
1201 + accordingly). List the rpc.* variants of the manpages in *.links,
1202 + instead of assuming dh_compress (!) will make them for us. Bonus points
1203 + for then not including the nonsensical rpc.* variants, such as
1204 + rpc.idmapd.conf(5).
1205 + * Don't mv lockd, statd and showmount manually from /usr/sbin to /sbin;
1206 + let the .install file do it for us.
1207 + * Remove *.conffiles; debhelper now sets everything in /etc as conffiles
1208 + automatically.
1209 + * Extend the debian/rules rm hack to the files we removed in this version
1210 + (ick).
1211 + * In debian/control, make nfs-common replace nfs-kernel-server
1212 + (<< 1:1.0.7-5), since the idmapd manpage switched packages.
1213 + * Remove old cruft in debian/rules file:
1214 + * Remove non-used dh_* programs.
1215 + * Remove obsolete source and diff targets.
1216 + * Remove SETGCC hack.
1217 + * Don't set rpath for rpc.gssd and rpc.svcgssd (fixes lintian warnings).
1219 + -- Steinar H. Gunderson <sesse@debian.org> Tue, 28 Mar 2006 02:57:23 +0200
1221 +nfs-utils (1:1.0.7-4) unstable; urgency=low
1223 + * Ack NMU. Thanks Steinar H. Gunderson.
1224 + Closes: #239230, #245449, #246904, #247473, #248300, #252081,
1225 + #287026, #294928, #303497, #310940, #323460, #326663, #332047,
1226 + #337836, #338292, #359024.
1227 + * Added Steinar H. Gunderson and Daniel Baumann as uploaders.
1228 + * Added homepage to package descriptions.
1229 + * Set Standards-Version to 3.6.2.
1230 + * Fixed outdated-autotools-helper-file.
1232 + -- Anibal Monsalve Salazar <anibal@debian.org> Mon, 27 Mar 2006 13:22:51 +1100
1234 +nfs-utils (1:1.0.7-3.1) unstable; urgency=low
1236 + * Non-maintainer upload.
1237 + * Set u+w on all files in debian/, so dch etc. actually works.
1238 + * Add /var/lib/nfs/v4recovery to nfs-kernel-server.dirs. (Closes: #337836).
1239 + * Add /var/lib/nfs/rpc_pipefs to nfs-kernel-server.dirs. (Closes: #310940).
1240 + * Fix problems with exportfs -o when there are multiple entries of the same
1241 + type for the same path that match a given client; patch from Fumihiko
1242 + Kakuma. (Closes: #245449)
1243 + * Start nfs-kernel-server even if /etc/exports is empty, as long as it
1244 + exists; patch from Alexis Huxley. (Closes: #246904) This patch also
1245 + happens to fix and thus Closes: #338292.
1246 + * When stopping daemons, do it even if they do not run as root; based on a
1247 + patch from Andreas Schmidt. (Closes: #247473)
1248 + * SIGKILL kernel lockd thread on stop, to make the kernel release all its
1249 + locks; patch from Jeffrey Layton. (Closes: #252081)
1250 + * Flush the kernel export table on stop; patch from Jeffrey Layton
1251 + (Closes: #248300).
1252 + * Change default root-squashed uid from -2 to 65534; the former changes
1253 + depending of the size of uid_t, and we want it to match the user "nobody"
1254 + (which has uid 65534). (Closes: #323460)
1255 + * Remove dependency on debconf, as it's no longer used. Also, don't run
1256 + dh_installdebconf anymore. (Closes: #332047)
1257 + * Check for /sbin/modprobe before using it, for non-modular kernels;
1258 + patch from Vincent Crvt. (Closes: #294928)
1259 + * Replaced the rather emtpy nhfsstone long description by the one from
1260 + its manpage. (Closes: #303497)
1261 + * Don't ship upstream README anymore, as it's not relevant for our users.
1262 + (Closes: #326663)
1263 + * Add the ability to start nfs-kernel-server niced; patch from Kimmo
1264 + Tervinen. (Closes: #287026)
1265 + * Escape '#' when writing export entries, so they are not mistakenly parsed
1266 + as comments when re-reading them. (Closes: #239230)
1267 + * Also Closes: #359024 automatically by recompiling package.
1269 + -- Steinar H. Gunderson <sesse@debian.org> Sun, 26 Mar 2006 14:57:50 +0200
1271 +nfs-utils (1:1.0.7-3) unstable; urgency=medium
1273 + * New maintainer, closes: #303559.
1275 + -- Anibal Monsalve Salazar <anibal@debian.org> Fri, 08 Apr 2005 11:25:17 +1000
1277 +nfs-utils (1:1.0.7-2) unstable; urgency=low
1279 + * Orphaning package.
1280 + * Upstream CVS sync:
1281 + > Support "no_acl" export option, for the few specially patched
1282 + kernels that understand it. (Closes: #253824)
1283 + > Fix FTBTS on amd64. (Closes: #297729)
1284 + > Update config.{guess,sub}. (Closes: #300552)
1286 + -- Chip Salzenberg <chip@debian.org> Thu, 7 Apr 2005 09:07:24 -0400
1288 +nfs-utils (1:1.0.7-1) unstable; urgency=medium
1290 + * Acknowledge NMU; thanks to joeyh. (closes: #287053)
1291 + * New upstream version:
1292 + > Add support for NFSv4.
1293 + > Ignore SIGPIPE, fixing a remote DOS. Note that the previous
1294 + NMU already fixed this bug. (CAN-2004-1014)
1295 + > At long last, fix "erroneous SM_UNMON" warnings. (closes: #165744)
1297 + -- Chip Salzenberg <chip@debian.org> Tue, 11 Jan 2005 23:31:05 -0500
1299 +nfs-utils (1:1.0.6-3) unstable; urgency=medium
1301 + * Remove obsolete debconf-related files in debian/rules, because source
1302 + diffs don't implement removals. (closes: #239331)
1304 + -- Chip Salzenberg <chip@debian.org> Wed, 24 Mar 2004 18:09:21 -0500
1306 +nfs-utils (1:1.0.6-2) unstable; urgency=medium
1308 + * Upstream CVS sync.
1309 + * Urgency "medium" to get debconf fix into testing.
1310 + * Remove debconf warning notes in favor of nfs-kernel-server.NEWS.
1311 + (closes: #228365)
1312 + * Make /etc/exports a conffile. (closes: #224557)
1313 + * Clean up /var/lib/nfs in postrm.
1314 + * Test kernel version in init script; all kernels from 2.4 forward
1315 + have a lockd thread, and don't need rpc.lockd. Probe older kernels
1316 + by checking for lockd-related symbols. When in doubt, go ahead and
1317 + run rpc.lockd; if it's not needed, it exits. (closes: #205867)
1318 + * Don't bother removing nfs-server's init links; it's long dead.
1320 + -- Chip Salzenberg <chip@debian.org> Thu, 18 Mar 2004 17:06:00 -0500
1322 +nfs-utils (1:1.0.6-1) unstable; urgency=low
1324 + * New upstream version:
1325 + > Workaround glibc bug with large fd rlimits.
1326 + * Japanese debconf translation from Kenshi Muto <kmuto@debian.org>.
1327 + (closes: #209370)
1329 + -- Chip Salzenberg <chip@debian.org> Fri, 12 Sep 2003 12:47:58 -0400
1331 +nfs-utils (1:1.0.5-3) unstable; urgency=high
1333 + * Upstream CVS sync:
1334 + > Fix crash on invalid reverse DNS. (closes: #209318)
1336 + -- Chip Salzenberg <chip@debian.org> Tue, 9 Sep 2003 14:02:46 -0400
1338 +nfs-utils (1:1.0.5-2) unstable; urgency=low
1340 + * Upstream CVS sync:
1341 + > Improve support for 2.6.0 /proc interface.
1342 + * Use po-debconf. Patch from Andre Luis Lopes <andrelop@ig.com.br>,
1343 + with improved French from Christian Perrier <bubulle@debian.org>.
1344 + (closes: #187866, #202196)
1346 + -- Chip Salzenberg <chip@debian.org> Wed, 20 Aug 2003 17:03:44 -0400
1348 +nfs-utils (1:1.0.5-1) unstable; urgency=high
1350 + * New upstream version:
1351 + > Don't use freed memory. (closes: #201311, #201598, #201873)
1352 + > Fix mountd -o arg. (closes: #197355)
1354 + -- Chip Salzenberg <chip@debian.org> Thu, 24 Jul 2003 15:40:12 -0400
1356 +nfs-utils (1:1.0.3-2) unstable; urgency=high
1358 + * Upstream CVS sync:
1359 + > Fix one-byte buffer overflow in logging code.
1361 + -- Chip Salzenberg <chip@debian.org> Tue, 10 Jun 2003 11:11:56 -0400
1363 +nfs-utils (1:1.0.3-1) unstable; urgency=low
1365 + * New upstream version:
1366 + > Support reading and writing export cache in /proc/rpc/*/channel,
1367 + as current syscall interface may not survive into 2.6 on all archs.
1369 + -- Chip Salzenberg <chip@debian.org> Wed, 26 Mar 2003 11:38:52 -0500
1371 +nfs-utils (1:1.0.2-2) unstable; urgency=medium
1373 + * Upstream CVS sync:
1374 + > Fix one-byte buffer overflow with no apparent security implications.
1375 + (It's a readlink on a path that should be writable only to root.)
1376 + * Make nfs-{common,kernel-server} depend on sysvinit 2.80-1 for invoke-rc.d.
1377 + * Make nfs-common depend on debconf (long overdue).
1378 + * Fix package description to name nfs-user-server as an alternative, rather
1379 + than "nfs-server" (which no longer exists).
1381 + -- Chip Salzenberg <chip@debian.org> Wed, 12 Feb 2003 21:27:24 -0500
1383 +nfs-utils (1:1.0.2-1) unstable; urgency=high
1385 + * New upstream version:
1386 + > Allow program stdin to be a non-INET socket. (closes: #142557)
1387 + * Start nfs-common after nfs-kernel-server so that the server is running
1388 + when statd restarts; without this change, a rebooting server may make
1389 + clients lose mounts. (This postinst removes bad rc.d links from old
1390 + packages.) From Philippe Troin <phil@fifi.org>. (closes: #160800)
1391 + * Make init scripts exit with non-zero status when daemons don't start.
1392 + * Add titles to templates where I forgot them. (closes: #158489)
1393 + * Add /etc/default/{nfs-common,nfs-kernel-server} so setting random
1394 + parameters doesn't require editing init scripts. (closes: #131539)
1395 + * Split templates into separate files, and add French templates.
1396 + (closes: #134630)
1397 + * Use invoke-rc.d to avoid premature daemon starts. (closes: 158574)
1398 + * Change priority of nfs-kernel-server to 'optional'.
1400 + -- Chip Salzenberg <chip@debian.org> Sun, 15 Sep 2002 22:00:27 -0400
1402 +nfs-utils (1:1.0.1-1) unstable; urgency=low
1404 + * New upstream version:
1405 + > BIG CHANGE: Exports default to "sync", that is, synchronous writes.
1406 + This is safer but MUCH SLOWER than the old default of "async".
1407 + All exports should be marked as either "sync" or "async" to avoid a
1408 + warning from exportfs.
1409 + * Patches from CVS through 2002-08-26.
1410 + * Let init script start statd on a specific port. (closes: #144344)
1411 + * Fix typo in debconf message about tcpwrappers. (closes: #128709)
1412 + * Fix typo in rpc.nfsd(8). (closes: #152556)
1413 + * Add Russian templates. (closes: #136599, #136932)
1415 + -- Chip Salzenberg <chip@debian.org> Mon, 26 Aug 2002 12:17:57 -0400
1417 +nfs-utils (1:1.0-2) unstable; urgency=low
1419 + * Fail an export if its mapping option is unsupported. (closes: #85678)
1421 + -- Chip Salzenberg <chip@debian.org> Wed, 2 Jan 2002 15:52:37 -0800
1423 +nfs-utils (1:1.0-1) unstable; urgency=medium
1425 + * New upstream version. (Version number is only change.)
1426 + * Urgency "medium" so woody users see the pretty new version number.
1427 + (Yeah, it's shallow... but, doggone it, this is mature code.)
1429 + -- Chip Salzenberg <chip@debian.org> Wed, 26 Dec 2001 20:21:15 -0800
1431 +nfs-utils (1:0.3.3-6) unstable; urgency=high
1433 + * Upstream fixes:
1434 + > Ignore case when comparing host names.
1435 + > Use all addresses of multi-homed hosts in export processing.
1436 + > When reading /proc/fs/nfs/exports, assume noasync and nowgather;
1437 + older kernels did so, while newer kernels report them explicitly.
1438 + > Remove man page refs to "hosts_allow(5)". (closes: #122540)
1439 + > In exports.5: Emphasize the need for options to immediately follow
1440 + client names. Explain that wildcards don't usually work on addresses,
1441 + but may work when reverse DNS fails. (closes: #118040, #116039)
1443 + -- Chip Salzenberg <chip@debian.org> Wed, 26 Dec 2001 18:54:35 -0800
1445 +nfs-utils (1:0.3.3-5) unstable; urgency=high
1447 + * Keep NFS fully operational during upgrade. (closes: #76544)
1448 + * When calling update-rc.d, send stdout to /dev/null, but not stderr.
1450 + -- Chip Salzenberg <chip@debian.org> Thu, 13 Dec 2001 18:50:47 -0800
1452 +nfs-utils (1:0.3.3-4) unstable; urgency=high
1454 + * High priority due to changes in previous version.
1455 + * Upstream fixes:
1456 + > Close filehandles in nfsd before spawing kernel threads. This is a
1457 + workaround for a kernel bug. (closes: #121213)
1458 + > Document that both host names *and* addresses are checked with tcpwrappers.
1459 + This is a doc update, not a change. (closes: #108493)
1460 + > Don't assume that strings starting with digits are IP addresses;
1461 + host names are allowed to start with digits. (closes: #68977)
1462 + * German template for nfs-common. (closes: #120939)
1464 + -- Chip Salzenberg <chip@debian.org> Mon, 26 Nov 2001 11:50:43 -0800
1466 +nfs-utils (1:0.3.3-3) unstable; urgency=low
1468 + * Upstream fixes:
1469 + > Accept obsolete mount option "crossmnt" for parsing old xtab files
1470 + after upgrade. (closes: #78801)
1471 + > Put filenames into more error messages.
1472 + * Stop debconf before starting nfsd to avoid a hang. Kernel threads
1473 + like nfsd aren't supposed to inherit open files from the programs that
1474 + start them, but nfsd does. See debconf tutorial. (closes: #115817)
1475 + * Rebuild with current glibc. (closes: #119545)
1476 + * Carefully account for ownership of /var/lib/nfs/*. (closes: #117258)
1477 + * Warn about statd using tcpwrappers. (closes: #92666)
1478 + * Only warn about mountd's tcpwrappers name change if the old name
1479 + appears in the tcpwrapper config files.
1480 + * German template for nfs-kernel-server. (closes: #117196)
1482 + -- Chip Salzenberg <chip@debian.org> Wed, 21 Nov 2001 18:30:36 -0800
1484 +nfs-utils (1:0.3.3-2) unstable; urgency=high
1486 + * The "Test It Before Release, Stupid" release.
1487 + * Repair total failure of rpc.mountd. (closes: #115095)
1489 + -- Chip Salzenberg <chip@debian.org> Thu, 11 Oct 2001 13:03:45 -0700
1491 +nfs-utils (1:0.3.3-1) unstable; urgency=medium
1493 + * The "Life Goes On" release.
1494 + * New upstream version. (closes: #113042)
1495 + > Avoid DNS when unexporting... important for shutdown.
1496 + > Recognize double-quote and \octal quoting in pathnames.
1497 + > Print pathnames with \octal quoting as necessary.
1498 + * Depend on a version of glibc that restores rpcinfo to its rightful
1499 + place. (closes: #102400)
1500 + * Fix pathname in mountd doc. (closes: #112088)
1501 + * debian/nfs-kernel-server.postinst: Remove rc.d symlinks to old
1502 + nfs-server init script, which doesn't realize when it's been removed.
1503 + (closes: #97099)
1504 + * Warn users about "rpc.mountd" -> "mountd" in /etc/hosts.{allow,deny}.
1505 + This marks my first use of debconf! W00T! (closes: #92671)
1507 + -- Chip Salzenberg <chip@debian.org> Mon, 8 Oct 2001 15:04:08 -0700
1509 +nfs-utils (1:0.3.2-2) unstable; urgency=low
1511 + * Rebuild with new libc. (closes: #97252, #97455, #99829, #100317)
1512 + * Fix typo in nfs-kernel-server init script. (closes: #100380)
1513 + * Start all daemons in root directory.
1515 + -- Chip Salzenberg <chip@debian.org> Fri, 15 Jun 2001 15:57:18 -0700
1517 +nfs-utils (1:0.3.2-1) unstable; urgency=low
1519 + * Upstream changes to statd:
1520 + > Recognize long options.
1521 + > On startup, close std{in,out,err}.
1522 + > Updated man page.
1523 + * Let debhelper handle doc symlinks. (closes: #74094)
1524 + * Rename upstream changelog, per policy.
1525 + * Get rid of suidregister call.
1527 + -- Chip Salzenberg <chip@debian.org> Sun, 1 Apr 2001 19:21:26 -0700
1529 +nfs-utils (1:0.3.1-1) unstable; urgency=medium
1531 + * New upstream version.
1532 + * Incorporate (but not all) Bug Party changes by David LaBissoniere
1533 + <labiss@usit.net>:
1534 + > Mention upstream source and license in copyright file. (closes: #79997)
1535 + > Add Build-Depends for debhelper and libwrap0-dev. (closes: #84131)
1537 + -- Chip Salzenberg <chip@debian.org> Mon, 26 Feb 2001 16:51:15 -0800
1539 +nfs-utils (1:0.3-2) unstable; urgency=low
1541 + * Upstream:
1542 + > Don't modify socket buffer sizes.
1544 + -- Chip Salzenberg <chip@debian.org> Mon, 12 Feb 2001 20:46:22 -0800
1546 +nfs-utils (1:0.3-1) unstable; urgency=low
1548 + * New upstream.
1550 + -- Chip Salzenberg <chip@debian.org> Sun, 28 Jan 2001 18:13:59 -0800
1552 +nfs-utils (1:0.2.1-5) unstable; urgency=low
1554 + * Fix statd callback protection ("--secure-statd") to
1555 + 1. work with current kernels as far as possible, and
1556 + 2. allow for Trond's recent NFS patches, which change the
1557 + static callback RPC procedure.
1558 + * Store return values of getc and getopt in int variables:
1559 + they can return EOF, which requires an int. (From NMU)
1561 + -- Chip Salzenberg <chip@debian.org> Sat, 20 Jan 2001 20:03:07 -0800
1563 +nfs-utils (1:0.2.1-4) unstable; urgency=medium
1565 + * Warn about common errors in /etc/exports. (closes: #66421)
1566 + * Fix line numbers in messages about /etc/exports. (closes: #59734)
1567 + * Let nhfsstone replace files from old server packages. (closes: #59261)
1569 + -- Chip Salzenberg <chip@valinux.com> Sun, 3 Dec 2000 14:41:13 -0800
1571 +nfs-utils (1:0.2.1-3) unstable; urgency=low
1573 + * Add portmap dependency. (closes: #75639)
1574 + * Upstream:
1575 + > mountd: New option "-n/--no-tcp".
1577 + -- Chip Salzenberg <chip@valinux.com> Sun, 19 Nov 2000 09:22:19 -0800
1579 +nfs-utils (1:0.2.1-2) unstable; urgency=high
1581 + * On shutdown, kill user-mode lockd, not kernel-mode lockd thread.
1582 + * Big upstream fix:
1583 + > statd: Repair memory leaks and corruptions.
1584 + * Other upstream patches:
1585 + > exportfs: Support CIDR netmasks (e.g. "1.2.3.4/24").
1586 + > statd: Fix callbacks to local lockd; Be paranoid about IP addresses
1587 + when doing callbacks to local lockd; Add debugging features; Make
1588 + logs more readable.
1590 + -- Chip Salzenberg <chip@valinux.com> Thu, 2 Nov 2000 18:10:36 -0800
1592 +nfs-utils (1:0.2.1-1) unstable; urgency=low
1594 + * New upstream w/minor fixes.
1596 + -- Chip Salzenberg <chip@valinux.com> Mon, 2 Oct 2000 17:32:00 -0700
1598 +nfs-utils (1:0.2-1) unstable; urgency=low
1600 + * New upstream version number.
1601 + * Minor fixes.
1603 + -- Chip Salzenberg <chip@valinux.com> Tue, 5 Sep 2000 11:30:00 -0700
1605 +nfs-utils (1:0.1.9.1-2) unstable; urgency=medium
1607 + * Upstream addition of tcpwrapper support in statd and mountd.
1608 + * Upstream fixes from H.J. Lu and Neil Brown.
1609 + * Run exportfs first during startup (again).
1611 + -- Chip Salzenberg <chip@valinux.com> Sat, 26 Aug 2000 17:30:00 -0700
1613 +nfs-utils (1:0.1.9.1-1) frozen unstable; urgency=high
1615 + * New upstream version, fixes more logging errors.
1616 + * Fix Debian distribution list.
1618 + -- Chip Salzenberg <chip@valinux.com> Wed, 5 Jul 2000 15:00:00 -0800
1620 +nfs-utils (1:0.1.8.2-2) unstable; urgency=high
1622 + * Fix serious logging error in statd.
1624 + -- Chip Salzenberg <chip@valinux.com> Wed, 28 Jun 2000 23:00:00 -0800
1626 +nfs-utils (1:0.1.8.2-1) unstable; urgency=low
1628 + * New upstream version.
1629 + * During startup, start daemons before running exportfs.
1631 + -- Chip Salzenberg <chip@valinux.com> Wed, 28 Jun 2000 15:00:00 -0800
1633 +nfs-utils (1:0.1.8.1-1) unstable; urgency=medium
1635 + * New upstream version.
1636 + * Chdir to / before spawning daemons. (closes: #60837, #64857)
1637 + * Follow policy for init messages. (closes: #59184, #65519)
1639 + -- Chip Salzenberg <chip@valinux.com> Mon, 12 Jun 2000 22:30:00 -0800
1641 +nfs-utils (1:0.1.8-1) unstable; urgency=low
1643 + * New upstream version.
1645 + -- Chip Salzenberg <chip@valinux.com> Sun, 4 Jun 2000 13:30:00 -0800
1647 +nfs-utils (1:0.1.7.1-1) unstable; urgency=medium
1649 + * New upstream version.
1650 + * Use fewer sockets in mountd by sharing RPC transports,
1651 + even when it is run without '-p'.
1653 + -- Chip Salzenberg <chip@valinux.com> Sat, 29 Apr 2000 20:45:00 -0800
1655 +nfs-utils (1:0.1.6-3) frozen unstable; urgency=medium
1657 + * Fix kernel server shutdown order: mountd, nfsd, exportfs.
1658 + * Upstream: Fix 'mountd -p'. Use fewer UDP sockets
1659 + by sharing RPC transports. Display more mount flags.
1661 + -- Chip Salzenberg <chip@valinux.com> Mon, 13 Mar 2000 14:45:00 -0800
1663 +nfs-utils (1:0.1.6-2) frozen unstable; urgency=medium
1665 + * Split off nhfsstone into its own package, since it has
1666 + helper scripts and most people won't use it.
1667 + * Also include nhfsstone's helpers: nhfs{run,nums,graph}.
1668 + * Install man page for nhfsstone. (closes: #55194)
1669 + * Always run lockd on non-module kernels. (closes: #57841)
1670 + * Make init scripts config files. (closes: #55193)
1671 + * Handle "force-reload" in nfs-common's init script. (ditto)
1672 + * Fix line numbers in error messages. (closes: #57717)
1673 + * Write man page for rpc.lockd. (closes: #55192)
1674 + * Fix typo in exports(5) man page. (closes: #46933)
1675 + * Add /usr/doc -> /usr/share doc links. (closes: #54983)
1676 + * Add copyright file. (closes: #55195)
1677 + * Refresh sources from upstream.
1678 + * Refine dependencies.
1680 + -- Chip Salzenberg <chip@valinux.com> Sat, 26 Feb 2000 02:00:00 -0800
1682 +nfs-utils (1:0.1.6-1) unstable; urgency=high
1684 + * New upstream version.
1685 + * Make nfs-kernel-server conflict with and replace knfs.
1687 + -- Chip Salzenberg <chip@valinux.com> Wed, 12 Jan 2000 19:30:00 -0800
1689 +nfs-utils (1:0.1.5-2) unstable; urgency=high
1691 + * Rename packages to "nfs-common" and "nfs-kernel-server".
1692 + (Previous package names were only temporary anyway.)
1693 + * Prepend "1:" to version, to override existing nfs-common.
1694 + * Remove rpc.rquotad -- it's already packaged in "quota".
1696 + -- Chip Salzenberg <chip@valinux.com> Wed, 29 Dec 1999 17:00:00 -0800
1698 +nfs-utils (0.1.5-1) unstable; urgency=medium
1700 + * New upstream version.
1701 + * Allow for some kernels not requiring rpc.lockd.
1703 + -- Chip Salzenberg <chip@valinux.com> Sun, 19 Dec 1999 11:40:00 -0800
1705 +nfs-utils (0.1.4-1) unstable; urgency=low
1707 + * New upstream version.
1708 + * Don't disable NFSv3 by default.
1710 + -- Chip Salzenberg <chip@valinux.com> Fri, 10 Dec 1999 23:00:00 -0800
1712 +nfs-utils (0.1.3-2) unstable; urgency=low
1714 + * Conflict with standard NFS packages.
1716 + -- Chip Salzenberg <chip@valinux.com> Fri, 3 Dec 1999 22:00:00 -0800
1718 +nfs-utils (0.1.3-1) unstable; urgency=low
1720 + * New upstream version.
1721 + * Start following CVS tree at SourceForge.
1723 + -- Chip Salzenberg <chip@valinux.com> Fri, 3 Dec 1999 20:00:00 -0800
1725 --- nfs-utils-1.0.10.orig/debian/idmapd.conf
1726 +++ nfs-utils-1.0.10/debian/idmapd.conf
1727 @@ -0,0 +1,10 @@
1728 +[General]
1730 +Verbosity = 0
1731 +Pipefs-Directory = /var/lib/nfs/rpc_pipefs
1732 +Domain = localdomain
1734 +[Mapping]
1736 +Nobody-User = nobody
1737 +Nobody-Group = nogroup
1738 --- nfs-utils-1.0.10.orig/debian/nfs-common.init
1739 +++ nfs-utils-1.0.10/debian/nfs-common.init
1740 @@ -0,0 +1,298 @@
1741 +#!/bin/sh
1743 +### BEGIN INIT INFO
1744 +# Provides: nfs-common
1745 +# Required-Start: $time
1746 +# Required-Stop: $time
1747 +# Default-Start: 2 3 4 5
1748 +# Default-Stop: 0 1 6
1749 +# Short-Description: NFS support files common to client and server
1750 +# Description: NFS is a popular protocol for file sharing across
1751 +# TCP/IP networks. This service provides various
1752 +# support functions for NFS mounts.
1753 +### END INIT INFO
1755 +# What is this?
1756 +DESC="NFS common utilities"
1758 +# Read config
1759 +DEFAULTFILE=/etc/default/nfs-common
1760 +PREFIX=
1761 +NEED_LOCKD=
1762 +NEED_IDMAPD=
1763 +NEED_GSSD=
1764 +PIPEFS_MOUNTPOINT=/var/lib/nfs/rpc_pipefs
1765 +RPCGSSDOPTS=
1766 +if [ -f $DEFAULTFILE ]; then
1767 + . $DEFAULTFILE
1770 +. /lib/lsb/init-functions
1772 +# Determine whether lockd daemon is required.
1773 +case "$NEED_LOCKD" in
1774 +yes|no) ;;
1775 +*) case `uname -r` in
1776 + '' | [01].* | 2.[0123].* )
1777 + # Older kernels may or may not need a lockd daemon.
1778 + # We must assume they do, unless we can prove otherwise.
1779 + # (A false positive here results only in a harmless message.)
1780 + NEED_LOCKD=yes
1781 + if test -f /proc/ksyms
1782 + then
1783 + grep -q lockdctl /proc/ksyms || NEED_LOCKD=no
1784 + fi
1785 + ;;
1787 + *) # Modern kernels (>= 2.4) start a lockd thread automatically.
1788 + NEED_LOCKD=no
1789 + ;;
1790 + esac
1791 + ;;
1792 +esac
1795 +# Parse the fstab file, and determine whether we need idmapd and gssd. (The
1796 +# /etc/defaults settings, if any, will override our autodetection.) This code
1797 +# is partially adapted from the mountnfs.sh script in the sysvinit package.
1799 +AUTO_NEED_IDMAPD=no
1800 +AUTO_NEED_GSSD=no
1802 +exec 9<&0 </etc/fstab
1804 +while read DEV MTPT FSTYPE OPTS REST
1806 + if [ "$FSTYPE" = "nfs4" ]; then
1807 + AUTO_NEED_IDMAPD=yes
1808 + fi
1809 + case "$OPTS" in
1810 + sec=krb5|*,sec=krb5|sec=krb5,*|*,sec=krb5i,*|sec=krb5i|*,sec=krb5i|sec=krb5i,*|*,sec=krb5i,*|sec=krb5p|*,sec=krb5p|sec=krb5p,*|*,sec=krb5p,*)
1811 + AUTO_NEED_GSSD=yes
1812 + ;;
1813 + esac
1814 +done
1816 +exec 0<&9 9<&-
1819 +# We also need idmapd if we run an NFSv4 server. It's fairly difficult
1820 +# to autodetect whether there are NFSv4 exports or not, and idmapd is not a
1821 +# particularily heavy daemon, so we auto-enable it if we find an /etc/exports
1822 +# file. This does not mean that there are NFSv4 or other mounts active (or
1823 +# even that nfs-kernel-server is installed), but it matches what the "start"
1824 +# condition in nfs-kernel-server's init script does, which has a value in
1825 +# itself.
1827 +if [ -f /etc/exports ]; then
1828 + AUTO_NEED_IDMAPD=yes
1832 +case "$NEED_IDMAPD" in
1833 + yes|no)
1834 + ;;
1835 + *)
1836 + NEED_IDMAPD=$AUTO_NEED_IDMAPD
1837 + ;;
1838 +esac
1840 +case "$NEED_GSSD" in
1841 + yes|no)
1842 + ;;
1843 + *)
1844 + NEED_GSSD=$AUTO_NEED_GSSD
1845 + ;;
1846 +esac
1848 +# Exit if required binaries are missing.
1849 +[ -x $PREFIX/sbin/rpc.statd ] || exit 0
1850 +[ -x $PREFIX/sbin/rpc.lockd ] || [ "$NEED_LOCKD" = no ] || exit 0
1851 +[ -x /usr/sbin/rpc.idmapd ] || [ "$NEED_IDMAPD" = no ] || exit 0
1852 +[ -x /usr/sbin/rpc.gssd ] || [ "$NEED_GSSD" = no ] || exit 0
1854 +do_modprobe() {
1855 + modprobe -q "$1" || true
1858 +do_mount() {
1859 + if ! grep -E -qs "$1\$" /proc/filesystems
1860 + then
1861 + return 1
1862 + fi
1863 + if ! mountpoint -q "$2"
1864 + then
1865 + mount -t "$1" "$1" "$2"
1866 + return
1867 + fi
1868 + return 0
1871 +do_umount() {
1872 + if mountpoint -q "$1"
1873 + then
1874 + umount "$1"
1875 + fi
1876 + return 0
1879 +# See how we were called.
1880 +case "$1" in
1881 + start)
1882 + log_daemon_msg "Starting $DESC"
1884 + log_progress_msg "statd"
1885 + start-stop-daemon --start --oknodo --quiet \
1886 + --exec $PREFIX/sbin/rpc.statd -- $STATDOPTS
1887 + if [ $? != 0 ]; then
1888 + log_end_msg $?
1889 + exit $?
1890 + fi
1892 + if [ "$NEED_LOCKD" = yes ]
1893 + then
1894 + log_progress_msg "lockd"
1895 + start-stop-daemon --start --oknodo --quiet \
1896 + --exec $PREFIX/sbin/rpc.lockd
1897 + if [ $? != 0 ]; then
1898 + log_end_msg $?
1899 + exit $?
1900 + fi
1901 + fi
1902 + if [ "$NEED_IDMAPD" = yes ] || [ "$NEED_GSSD" = yes ]
1903 + then
1904 + do_modprobe nfs
1905 + do_modprobe nfs4
1906 + if do_mount rpc_pipefs $PIPEFS_MOUNTPOINT
1907 + then
1908 + if [ "$NEED_IDMAPD" = yes ]
1909 + then
1910 + log_progress_msg "idmapd"
1911 + start-stop-daemon --start --oknodo --quiet \
1912 + --exec /usr/sbin/rpc.idmapd
1913 + if [ $? != 0 ]; then
1914 + log_end_msg $?
1915 + exit $?
1916 + fi
1917 + fi
1918 + if [ "$NEED_GSSD" = yes ]
1919 + then
1920 + do_modprobe rpcsec_gss_krb5
1921 + log_progress_msg "gssd"
1923 + # we need this available; better to fail now than
1924 + # mysteriously on the first mount
1925 + if ! grep -q -E '^nfs[ ]' /etc/services; then
1926 + log_action_end_msg 1 "broken /etc/services, please see /usr/share/doc/nfs-common/README.Debian.nfsv4"
1927 + exit 1
1928 + fi
1930 + start-stop-daemon --start --oknodo --quiet \
1931 + --exec /usr/sbin/rpc.gssd -- $RPCGSSDOPTS
1932 + if [ $? != 0 ]; then
1933 + log_end_msg $?
1934 + exit $?
1935 + fi
1936 + fi
1937 + fi
1938 + fi
1939 + log_end_msg 0
1940 + ;;
1942 + stop)
1943 + log_daemon_msg "Stopping $DESC"
1945 + if [ "$NEED_GSSD" = yes ]
1946 + then
1947 + log_progress_msg "gssd"
1948 + start-stop-daemon --stop --oknodo --quiet \
1949 + --name rpc.gssd
1950 + if [ $? != 0 ]; then
1951 + log_end_msg $?
1952 + exit $?
1953 + fi
1954 + fi
1955 + if [ "$NEED_IDMAPD" = yes ]
1956 + then
1957 + log_progress_msg "idmapd"
1958 + start-stop-daemon --stop --oknodo --quiet \
1959 + --name rpc.idmapd
1960 + if [ $? != 0 ]; then
1961 + log_end_msg $?
1962 + exit $?
1963 + fi
1964 + fi
1965 + if [ "$NEED_LOCKD" = yes ]
1966 + then
1967 + log_progress_msg "lockd"
1968 + start-stop-daemon --stop --oknodo --quiet \
1969 + --name rpc.lockd
1970 + if [ $? != 0 ]; then
1971 + log_end_msg $?
1972 + exit $?
1973 + fi
1974 + else
1975 + pkill -KILL -u root -x lockd || true
1976 + fi
1977 + log_progress_msg "statd"
1978 + start-stop-daemon --stop --oknodo --quiet \
1979 + --name rpc.statd
1980 + if [ $? != 0 ]; then
1981 + log_end_msg $?
1982 + exit $?
1983 + fi
1984 + do_umount $PIPEFS_MOUNTPOINT 2>/dev/null || true
1985 + log_end_msg 0
1986 + ;;
1988 + status)
1989 + if ! pidof rpc.statd >/dev/null
1990 + then
1991 + echo "rpc.statd not running"
1992 + exit 3
1993 + fi
1995 + if [ "$NEED_GSSD" = yes ]
1996 + then
1997 + if ! pidof rpc.gssd >/dev/null
1998 + then
1999 + echo "rpc.statd running, but rpc.gssd halted"
2000 + exit 3
2001 + fi
2002 + fi
2004 + if [ "$NEED_LOCKD" = yes ]
2005 + then
2006 + if ! pidof rpc.lockd >/dev/null
2007 + then
2008 + echo "rpc.statd running, but rpc.lockd halted"
2009 + exit 3
2010 + fi
2011 + fi
2013 + if [ "$NEED_IDMAPD" = yes ]
2014 + then
2015 + if ! pidof rpc.idmapd >/dev/null
2016 + then
2017 + echo "rpc.statd running, but rpc.idmapd halted"
2018 + exit 3
2019 + fi
2020 + fi
2022 + echo "rpc.statd running"
2023 + exit 0
2024 + ;;
2026 + restart | force-reload)
2027 + $0 stop
2028 + sleep 1
2029 + $0 start
2030 + ;;
2032 + *)
2033 + log_success_msg "Usage: nfs-common {start|stop|status|restart}"
2034 + exit 1
2035 + ;;
2036 +esac
2038 +exit 0
2039 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.init
2040 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.init
2041 @@ -0,0 +1,205 @@
2042 +#!/bin/sh
2044 +### BEGIN INIT INFO
2045 +# Provides: nfs-kernel-server
2046 +# Required-Start: $portmap $time
2047 +# Required-Stop: $portmap $time
2048 +# Default-Start: 2 3 4 5
2049 +# Default-Stop: 0 1 6
2050 +# Short-Description: Kernel NFS server support
2051 +# Description: NFS is a popular protocol for file sharing across
2052 +# TCP/IP networks. This service provides NFS server
2053 +# functionality, which is configured via the
2054 +# /etc/exports file.
2055 +### END INIT INFO
2057 +# What is this?
2058 +DESC="NFS kernel daemon"
2059 +PREFIX=/usr
2061 +# Exit if required binaries are missing.
2062 +[ -x $PREFIX/sbin/rpc.nfsd ] || exit 0
2063 +[ -x $PREFIX/sbin/rpc.mountd ] || exit 0
2064 +[ -x $PREFIX/sbin/exportfs ] || exit 0
2066 +# Read config
2067 +DEFAULTFILE=/etc/default/nfs-kernel-server
2068 +RPCNFSDCOUNT=8
2069 +RPCNFSDPRIORITY=0
2070 +RPCMOUNTDOPTS=
2071 +NEED_SVCGSSD=no
2072 +RPCSVCGSSDOPTS=
2073 +PROCNFSD_MOUNTPOINT=/proc/fs/nfsd
2074 +if [ -f $DEFAULTFILE ]; then
2075 + . $DEFAULTFILE
2078 +. /lib/lsb/init-functions
2080 +do_modprobe() {
2081 + if [ -x /sbin/modprobe -a -f /proc/modules ]
2082 + then
2083 + modprobe -q "$1" || true
2084 + fi
2087 +do_mount() {
2088 + if ! grep -E -qs "$1\$" /proc/filesystems
2089 + then
2090 + return 1
2091 + fi
2092 + if ! mountpoint -q "$2"
2093 + then
2094 + mount -t "$1" "$1" "$2"
2095 + return
2096 + fi
2097 + return 0
2100 +# See how we were called.
2101 +case "$1" in
2102 + start)
2103 + if [ -f /etc/exports ]
2104 + then
2105 + do_modprobe nfsd
2107 + # See if our running kernel supports the NFS kernel server
2108 + if [ -f /proc/kallsyms ] && ! grep -qE 'init_nf(sd| )' /proc/kallsyms; then
2109 + log_warning_msg "Not starting $DESC: no support in current kernel."
2110 + exit 0
2111 + fi
2113 + do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no
2114 + log_begin_msg "Exporting directories for $DESC..."
2115 + $PREFIX/sbin/exportfs -r
2116 + if [ $? != 0 ]; then
2117 + log_end_msg $?
2118 + exit $?
2119 + fi
2120 + log_end_msg 0
2122 + log_daemon_msg "Starting $DESC"
2123 + log_progress_msg "nfsd"
2124 + start-stop-daemon --start --oknodo --quiet \
2125 + --nicelevel $RPCNFSDPRIORITY \
2126 + --exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
2127 + if [ $? != 0 ]; then
2128 + log_end_msg $?
2129 + exit $?
2130 + fi
2132 + # make sure 127.0.0.1 is a valid source for requests
2133 + ClearAddr=
2134 + if [ -f /proc/net/rpc/auth.unix.ip/channel ]
2135 + then
2136 + fgrep -qs 127.0.0.1 /proc/net/rpc/auth.unix.ip/content || {
2137 + echo "nfsd 127.0.0.1 2147483647 localhost" >/proc/net/rpc/auth.unix.ip/channel
2138 + ClearAddr=yes
2140 + fi
2142 + $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
2143 + RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
2145 + [ -z "$ClearAddr" ] || echo "nfsd 127.0.0.1 1" >/proc/net/rpc/auth.unix.ip/channel
2147 + if [ "$NEED_SVCGSSD" = "yes" ]; then
2148 + log_progress_msg "svcgssd"
2149 + start-stop-daemon --start --oknodo --quiet \
2150 + --exec $PREFIX/sbin/rpc.svcgssd -- $RPCSVCGSSDOPTS
2151 + if [ $? != 0 ]; then
2152 + log_end_msg $?
2153 + exit $?
2154 + fi
2155 + fi
2157 + log_progress_msg "mountd"
2158 + start-stop-daemon --start --oknodo --quiet \
2159 + --exec $PREFIX/sbin/rpc.mountd -- $RPCMOUNTDOPTS
2160 + if [ $? != 0 ]; then
2161 + log_end_msg $?
2162 + exit $?
2163 + fi
2165 + log_end_msg 0
2166 + else
2167 + log_warning_msg "Not starting $DESC: no exports."
2168 + fi
2169 + ;;
2171 + stop)
2172 + log_daemon_msg "Stopping $DESC"
2174 + log_progress_msg "mountd"
2175 + start-stop-daemon --stop --oknodo --quiet \
2176 + --name rpc.mountd --user 0
2177 + if [ $? != 0 ]; then
2178 + log_end_msg $?
2179 + exit $?
2180 + fi
2182 + if [ "$NEED_SVCGSSD" = "yes" ]; then
2183 + log_progress_msg "svcgssd"
2184 + start-stop-daemon --stop --oknodo --quiet \
2185 + --name rpc.svcgssd --user 0
2186 + if [ $? != 0 ]; then
2187 + log_end_msg $?
2188 + exit $?
2189 + fi
2190 + fi
2192 + log_progress_msg "nfsd"
2193 + start-stop-daemon --stop --oknodo --quiet \
2194 + --name nfsd --user 0 --signal 2
2195 + if [ $? != 0 ]; then
2196 + log_end_msg $?
2197 + exit $?
2198 + fi
2200 + log_end_msg 0
2202 + log_begin_msg "Unexporting directories for $DESC..."
2203 + $PREFIX/sbin/exportfs -au
2204 + if [ $? != 0 ]; then
2205 + log_end_msg $?
2206 + exit $?
2207 + fi
2208 + log_end_msg 0
2210 + if mountpoint -q /proc/nfs/nfsd
2211 + then
2212 + $PREFIX/sbin/exportfs -f
2213 + fi
2214 + ;;
2216 + status)
2217 + if pidof nfsd >/dev/null
2218 + then
2219 + echo "nfsd running"
2220 + exit 0
2221 + else
2222 + echo "nfsd not running"
2223 + exit 3
2224 + fi
2225 + ;;
2227 + reload | force-reload)
2228 + log_begin_msg "Re-exporting directories for $DESC..."
2229 + $PREFIX/sbin/exportfs -r
2230 + log_end_msg $?
2231 + exit $?
2232 + ;;
2234 + restart)
2235 + $0 stop
2236 + sleep 1
2237 + $0 start
2238 + ;;
2240 + *)
2241 + log_success_msg "Usage: nfs-kernel-server {start|stop|status|reload|force-reload|restart}"
2242 + exit 1
2243 + ;;
2244 +esac
2246 +exit 0
2247 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.postinst
2248 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.postinst
2249 @@ -0,0 +1,23 @@
2250 +#!/bin/sh -e
2252 +#DEBHELPER#
2254 +case "$1" in
2255 + configure)
2256 + ucf --three-way /usr/share/nfs-kernel-server/conffiles/etc.exports /etc/exports
2257 + ucf --three-way /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default /etc/default/nfs-kernel-server
2259 + for f in /var/lib/nfs/etab \
2260 + /var/lib/nfs/rmtab \
2261 + /var/lib/nfs/xtab; do
2262 + [ -e $f ] || touch $f
2263 + done
2265 + update-rc.d nfs-kernel-server defaults 20 80 >/dev/null
2266 + ;;
2267 +esac
2269 +act="restart"
2270 +[ "$1:$2" = "configure:" ] && act="start"
2271 +[ "$1:$2" = "configure:" ] && invoke-rc.d nfs-common start
2272 +invoke-rc.d nfs-kernel-server $act
2273 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.default
2274 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.default
2275 @@ -0,0 +1,18 @@
2276 +# Number of servers to start up
2277 +RPCNFSDCOUNT=8
2279 +# Runtime priority of server (see nice(1))
2280 +RPCNFSDPRIORITY=0
2282 +# Options for rpc.mountd.
2283 +# If you have a port-based firewall, you might want to set up
2284 +# a fixed port here using the --port option. For more information,
2285 +# see rpc.mountd(8) or http://wiki.debian.org/?SecuringNFS
2286 +RPCMOUNTDOPTS=
2288 +# Do you want to start the svcgssd daemon? It is only required for Kerberos
2289 +# exports. Valid alternatives are "yes" and "no"; the default is "no".
2290 +NEED_SVCGSSD=
2292 +# Options for rpc.svcgssd.
2293 +RPCSVCGSSDOPTS=
2294 --- nfs-utils-1.0.10.orig/debian/README.Debian.nfsv4
2295 +++ nfs-utils-1.0.10/debian/README.Debian.nfsv4
2296 @@ -0,0 +1,62 @@
2297 +NFSv4 in Debian
2298 +===============
2300 +NFSv4 support in Debian is rather new, and not fully supported yet. If you want
2301 +to experiment, make sure you have:
2303 + - a recent 2.6 kernel on both client and server; newer is better. You might even
2304 + want to use CITI's patch set from http://www.citi.umich.edu/projects/nfsv4/linux/
2305 + on the server, and/or Trond Myklebust's patch set from http://client.linux-nfs.org/ .
2306 + - a recent enough version of nfs-utils on both client and server (you probably
2307 + have on at least one of them, since you're reading this file!).
2308 + - enabled idmapd on both sides (see /etc/default/nfs-common).
2309 + - The following lines in /etc/services on the client (if not, you will receive
2310 + the message "broken /etc/services" when starting rpc.gssd; this will usually
2311 + only happen if you upgrade netbase without letting it replace /etc/services
2312 + with the new version):
2314 + nfs 2049/tcp # Network File System
2315 + nfs 2049/udp # Network File System
2317 +The export structure might be a bit confusing if you're already familiar with
2318 +NFSv2 or NFSv3. The biggest difference is that you will need to export an explicit
2319 +root of your pseudofilesystem, like this /etc/exports fragment:
2321 + /nfs4 hostname(rw,sync,fsid=0,crossmnt)
2323 +(It doesn't need to be named "nfs4".) Then you can mount other volumes under that,
2324 +like:
2326 + /nfs4/music hostname(rw,sync)
2327 + /nfs4/movies hostname(rw,sync)
2329 +Then your client can mount shares like this:
2331 + mount -t nfs4 server:/music /mnt/music
2333 +Since you might not have everything under one root, you might want /nfs4/* on the
2334 +server to be bind mounts, ie.:
2336 + mount --bind /srv/music /nfs4/music
2338 +or in /etc/fstab:
2340 + /srv/music /nfs4/music none bind 0 0
2342 +Note that this special export structure might be handled transparently by
2343 +rpc.mountd at some time in the future, in which case you will probably get the
2344 +traditional (NFSv3-style) behaviour if and only if you have no share with
2345 +fsid=0.
2347 +If you do not wish to use host-based authentication, you can specify "gss/krb5"
2348 +instead of a hostname to get Kerberos-based authentication instead. For this,
2349 +you will need an "nfs/hostname@REALM" entry in /etc/krb5.keytab, as well as
2350 +rpc.gssd running on both client and rpc.svcgssd on the server (enable them
2351 +manually in /etc/default/nfs-common and /etc/default/nfs-kernel-server if the
2352 +autodetection fails).
2354 +If you use "gss/krb5i", you will also get integrity (ie. authentication), and
2355 +with "gss/krb5p", you'll also get privacy (ie. encryption). Make sure your
2356 +kernel supports this; not all kernels do.
2358 + -- Steinar H. Gunderson <sesse@debian.org>, Wed, 11 Oct 2006 15:18:03 +0200
2359 --- nfs-utils-1.0.10.orig/debian/nfs-common.install
2360 +++ nfs-utils-1.0.10/debian/nfs-common.install
2361 @@ -0,0 +1,13 @@
2362 +debian/tmp/usr/sbin/rpc.lockd sbin/
2363 +debian/tmp/usr/sbin/rpc.statd sbin/
2364 +debian/tmp/usr/sbin/showmount sbin/
2365 +debian/tmp/usr/sbin/nfsstat
2366 +debian/tmp/usr/sbin/rpc.gssd
2367 +debian/tmp/usr/sbin/rpc.idmapd
2368 +debian/tmp/usr/sbin/gss_clnt_send_err
2369 +debian/tmp/usr/sbin/gss_destroy_creds
2370 +debian/tmp/usr/sbin/rpcdebug
2371 +debian/idmapd.conf usr/share/nfs-common/conffiles/
2372 +debian/idmapd.conf.md5sum usr/share/nfs-common/conffiles/
2373 +debian/nfs-common.default usr/share/nfs-common/conffiles/
2374 +debian/nfs-common.default.md5sum usr/share/nfs-common/conffiles/
2375 --- nfs-utils-1.0.10.orig/debian/nfs-common.manpages
2376 +++ nfs-utils-1.0.10/debian/nfs-common.manpages
2377 @@ -0,0 +1,9 @@
2378 +debian/tmp/usr/share/man/man5/idmapd.conf*
2379 +debian/tmp/usr/share/man/man8/gssd.8
2380 +debian/tmp/usr/share/man/man8/idmapd.8
2381 +debian/tmp/usr/share/man/man8/lockd.8
2382 +debian/tmp/usr/share/man/man8/statd.8
2383 +debian/tmp/usr/share/man/man8/nfsstat*
2384 +debian/tmp/usr/share/man/man8/showmount*
2385 +debian/tmp/usr/share/man/man8/idmapd*
2386 +debian/tmp/usr/share/man/man8/rpcdebug.8
2387 --- nfs-utils-1.0.10.orig/debian/etc.exports.md5sum
2388 +++ nfs-utils-1.0.10/debian/etc.exports.md5sum
2389 @@ -0,0 +1,2 @@
2390 +fa071681b8e7f4eff1d6f5c4f43bf1d8 nfs-utils-1.0.6/debian/etc.exports
2391 +d9037825e2fbe4e58d6176e7297830cb nfs-utils-1.0.7/debian/etc.exports
2392 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.install
2393 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.install
2394 @@ -0,0 +1,8 @@
2395 +debian/tmp/usr/sbin/exportfs
2396 +debian/tmp/usr/sbin/rpc.mountd
2397 +debian/tmp/usr/sbin/rpc.nfsd
2398 +debian/tmp/usr/sbin/rpc.svcgssd
2399 +debian/nfs-kernel-server.default /usr/share/nfs-kernel-server/conffiles/
2400 +debian/etc.exports /usr/share/nfs-kernel-server/conffiles/
2401 +debian/nfs-kernel-server.default.md5sum /usr/share/nfs-kernel-server/conffiles/
2402 +debian/etc.exports.md5sum /usr/share/nfs-kernel-server/conffiles/
2403 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.manpages
2404 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.manpages
2405 @@ -0,0 +1,6 @@
2406 +debian/tmp/usr/share/man/man5/exports.5
2407 +debian/tmp/usr/share/man/man7/nfsd.7
2408 +debian/tmp/usr/share/man/man8/mountd.8
2409 +debian/tmp/usr/share/man/man8/exportfs.8
2410 +debian/tmp/usr/share/man/man8/nfsd.8
2411 +debian/tmp/usr/share/man/man8/svcgssd.8
2412 --- nfs-utils-1.0.10.orig/debian/nfs-common.dirs
2413 +++ nfs-utils-1.0.10/debian/nfs-common.dirs
2414 @@ -0,0 +1,8 @@
2415 +etc/init.d
2416 +sbin
2417 +usr/sbin
2418 +var/lib/nfs
2419 +var/lib/nfs/sm
2420 +var/lib/nfs/sm.bak
2421 +var/lib/nfs/rpc_pipefs
2422 +usr/share/nfs-common/conffiles
2423 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.links
2424 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.links
2425 @@ -0,0 +1,3 @@
2426 +/usr/share/man/man8/mountd.8 /usr/share/man/man8/rpc.mountd.8
2427 +/usr/share/man/man8/nfsd.8 /usr/share/man/man8/rpc.nfsd.8
2428 +/usr/share/man/man8/svcgssd.8 /usr/share/man/man8/rpc.svcgssd.8
2429 --- nfs-utils-1.0.10.orig/debian/nfs-common.default.md5sum
2430 +++ nfs-utils-1.0.10/debian/nfs-common.default.md5sum
2431 @@ -0,0 +1,7 @@
2432 +9409842759091e981d65a210e3e914cb nfs-utils-1.0.6/debian/nfs-common.default
2433 +e9765a19f6be408eb8a8afa0ee9677b9 nfs-utils-1.0.7-2/debian/nfs-common.default
2434 +04d838e3d6ce19ac7d0246740128e4a0 nfs-utils-1.0.7-6/debian/nfs-common.default
2435 +e460b95b3b808e55ec7dcba8e605ab14 nfs-utils-1.0.7-10/debian/nfs-common.default
2436 +bf979c79c0eca8c114c5388bf7225b4f nfs-utils-1.0.7-16/debian/nfs-common.default
2437 +d41d8cd98f00b204e9800998ecf8427e nfs-utils-1.0.7-18/debian/nfs-common.default
2439 --- nfs-utils-1.0.10.orig/debian/nfs-common.default
2440 +++ nfs-utils-1.0.10/debian/nfs-common.default
2441 @@ -0,0 +1,20 @@
2442 +# If you do not set values for the NEED_ options, they will be attempted
2443 +# autodetected; this should be sufficient for most people. Valid alternatives
2444 +# for the NEED_ options are "yes" and "no".
2446 +# Options for rpc.statd.
2447 +# Should rpc.statd listen on a specific port? This is especially useful
2448 +# when you have a port-based firewall. To use a fixed port, set this
2449 +# this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
2450 +# For more information, see rpc.statd(8) or http://wiki.debian.org/?SecuringNFS
2451 +STATDOPTS=
2453 +# Some kernels need a separate lockd daemon; most don't. Set this if you
2454 +# want to force an explicit choice for some reason.
2455 +NEED_LOCKD=
2457 +# Do you want to start the idmapd daemon? It is only needed for NFSv4.
2458 +NEED_IDMAPD=
2460 +# Do you want to start the gssd daemon? It is required for Kerberos mounts.
2461 +NEED_GSSD=
2462 --- nfs-utils-1.0.10.orig/debian/etc.exports
2463 +++ nfs-utils-1.0.10/debian/etc.exports
2464 @@ -0,0 +1,10 @@
2465 +# /etc/exports: the access control list for filesystems which may be exported
2466 +# to NFS clients. See exports(5).
2468 +# Example for NFSv2 and NFSv3:
2469 +# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
2471 +# Example for NFSv4:
2472 +# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
2473 +# /srv/nfs4/homes gss/krb5i(rw,sync)
2475 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.default.md5sum
2476 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.default.md5sum
2477 @@ -0,0 +1,4 @@
2478 +226f8fdd37b11c59d73e2f378e22b0d0 nfs-utils-1.0.6/debian/nfs-kernel-server.default
2479 +04755047c69d355d9d103c6f10017ec6 nfs-utils-1.0.7-2/debian/nfs-kernel-server.default
2480 +41cb37d01bbfacaf4bfbe0f62b18284f nfs-utils-1.0.7-4/debian/nfs-kernel-server.default
2481 +41388b5bb60d7ad1b1281b975dc07ce9 nfs-utils-1.0.7-16/debian/nfs-kernel-server.default
2482 --- nfs-utils-1.0.10.orig/debian/nfs-common.postinst
2483 +++ nfs-utils-1.0.10/debian/nfs-common.postinst
2484 @@ -0,0 +1,35 @@
2485 +#!/bin/sh -e
2487 +#DEBHELPER#
2489 +case "$1" in
2490 + configure)
2491 + ucf --three-way /usr/share/nfs-common/conffiles/idmapd.conf /etc/idmapd.conf
2492 + ucf --three-way /usr/share/nfs-common/conffiles/nfs-common.default /etc/default/nfs-common
2494 + update-rc.d nfs-common defaults 21 79 >/dev/null
2496 + if ! getent passwd statd >/dev/null; then
2497 + adduser --system --home /var/lib/nfs --no-create-home statd
2498 + fi
2499 + if dpkg --compare-versions "$2" ge 1:1.0.7-10 && dpkg --compare-versions "$2" lt 1:1.0.7-13; then
2500 + usermod --home /var/lib/nfs statd || true
2501 + if [ -d /home/statd ]; then
2502 + rmdir --ignore-fail-on-non-empty /home/statd
2503 + fi
2504 + fi
2505 + if [ "$2" = "" ] || dpkg --compare-versions "$2" lt 1:1.0.7-16; then
2506 + chown statd /var/lib/nfs/sm \
2507 + /var/lib/nfs/sm.bak \
2508 + /var/lib/nfs/rpc_pipefs \
2509 + /var/lib/nfs
2510 + if [ -f /var/lib/nfs/state ]; then
2511 + chown statd /var/lib/nfs/state
2512 + fi
2513 + fi
2514 + ;;
2515 +esac
2517 +act="restart"
2518 +[ "$1:$2" = "configure:" ] && act="start"
2519 +invoke-rc.d nfs-common $act
2520 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.NEWS
2521 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.NEWS
2522 @@ -0,0 +1,8 @@
2523 +nfs-utils (1:1.0.1-1) unstable; urgency=low
2525 + * Exports default to "sync", that is, synchronous writes.
2526 + This is safer but MUCH SLOWER than the old default of "async".
2527 + All exports should be marked as either "sync" or "async" to
2528 + avoid a warning from exportfs.
2530 + -- Chip Salzenberg <chip@debian.org> Mon, 26 Aug 2002 12:17:57 -0400
2531 --- nfs-utils-1.0.10.orig/debian/nfs-common.postrm
2532 +++ nfs-utils-1.0.10/debian/nfs-common.postrm
2533 @@ -0,0 +1,24 @@
2534 +#!/bin/sh
2536 +#DEBHELPER#
2538 +case "$1" in
2539 + purge)
2540 + update-rc.d nfs-common remove >/dev/null
2542 + for FILE in /etc/default/nfs-common /etc/idmapd.conf; do
2543 + # Taken from the ucf example postrm
2544 + for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
2545 + rm -f $FILE$ext
2546 + done
2547 + rm -f $FILE
2548 + if [ -x /usr/bin/ucf ]; then
2549 + ucf --purge $FILE
2550 + fi
2551 + done
2553 + rm -f /var/lib/nfs/state \
2554 + /var/lib/nfs/sm/* \
2555 + /var/lib/nfs/sm.bak/*
2556 + ;;
2557 +esac
2558 --- nfs-utils-1.0.10.orig/debian/copyright
2559 +++ nfs-utils-1.0.10/debian/copyright
2560 @@ -0,0 +1,11 @@
2561 +This package was debianized by Chip Salzenberg <chip@debian.org> on Fri, 3 Dec 1999 20:00:00 -0800
2563 +It was downloaded from http://sourceforge.net/projects/nfs/
2565 +View individual source files for respective authors.
2568 +You are free to distribute this software under the terms of
2569 +the GNU General Public License, version 2 or later.
2570 +On Debian systems, the complete text of the GNU General Public
2571 +License can be found in the file /usr/share/common-licenses/GPL.
2572 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.prerm
2573 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.prerm
2574 @@ -0,0 +1,19 @@
2575 +#!/bin/sh
2577 +#DEBHELPER#
2579 +case "$1" in
2580 + remove|purge)
2581 + [ -x /etc/init.d/nfs-kernel-server ] &&
2582 + invoke-rc.d nfs-kernel-server stop
2583 + ;;
2584 +esac
2586 +if [ "$1" != upgrade ]
2587 +then
2588 + rm -f /var/lib/nfs/etab \
2589 + /var/lib/nfs/rmtab \
2590 + /var/lib/nfs/xtab
2593 +exit 0
2594 --- nfs-utils-1.0.10.orig/debian/nfs-common.prerm
2595 +++ nfs-utils-1.0.10/debian/nfs-common.prerm
2596 @@ -0,0 +1,19 @@
2597 +#!/bin/sh
2599 +#DEBHELPER#
2601 +case "$1" in
2602 + remove|purge)
2603 + [ -x /etc/init.d/nfs-common ] &&
2604 + invoke-rc.d nfs-common stop
2605 + ;;
2606 +esac
2608 +if [ "$1" != upgrade ]
2609 +then
2610 + rm -f /var/lib/nfs/sm/* \
2611 + /var/lib/nfs/sm.bak/* \
2612 + /var/lib/nfs/state
2615 +exit 0
2616 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.postrm
2617 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.postrm
2618 @@ -0,0 +1,25 @@
2619 +#!/bin/sh
2621 +#DEBHELPER#
2623 +case "$1" in
2624 + purge)
2625 + update-rc.d nfs-kernel-server remove >/dev/null
2627 + for FILE in /etc/default/nfs-kernel-server /etc/exports; do
2628 + # Taken from the ucf example postrm
2629 + for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
2630 + rm -f $FILE$ext
2631 + done
2632 + rm -f $FILE
2633 + if [ -x /usr/bin/ucf ]; then
2634 + ucf --purge $FILE
2635 + fi
2636 + done
2638 + rm -f /var/lib/nfs/etab \
2639 + /var/lib/nfs/rmtab \
2640 + /var/lib/nfs/xtab
2641 + ;;
2642 +esac
2644 --- nfs-utils-1.0.10.orig/debian/nfs-kernel-server.dirs
2645 +++ nfs-utils-1.0.10/debian/nfs-kernel-server.dirs
2646 @@ -0,0 +1,5 @@
2647 +etc/init.d
2648 +usr/sbin
2649 +var/lib/nfs
2650 +var/lib/nfs/v4recovery
2651 +usr/share/nfs-kernel-server/conffiles
2652 --- nfs-utils-1.0.10.orig/debian/nhfsstone.dirs
2653 +++ nfs-utils-1.0.10/debian/nhfsstone.dirs
2654 @@ -0,0 +1 @@
2655 +usr/sbin
2656 --- nfs-utils-1.0.10.orig/debian/idmapd.conf.md5sum
2657 +++ nfs-utils-1.0.10/debian/idmapd.conf.md5sum
2658 @@ -0,0 +1 @@
2659 +3e94f238294cc61b047e7ae50115dffc nfs-utils-1.0.7/debian/idmapd.conf
2660 --- nfs-utils-1.0.10.orig/debian/nfs-common.links
2661 +++ nfs-utils-1.0.10/debian/nfs-common.links
2662 @@ -0,0 +1,4 @@
2663 +/usr/share/man/man8/gssd.8 /usr/share/man/man8/rpc.gssd.8
2664 +/usr/share/man/man8/lockd.8 /usr/share/man/man8/rpc.lockd.8
2665 +/usr/share/man/man8/statd.8 /usr/share/man/man8/rpc.statd.8
2666 +/usr/share/man/man8/idmapd.8 /usr/share/man/man8/rpc.idmapd.8
2667 --- nfs-utils-1.0.10.orig/debian/compat
2668 +++ nfs-utils-1.0.10/debian/compat
2669 @@ -0,0 +1 @@
2671 --- nfs-utils-1.0.10.orig/debian/nhfsstone.install
2672 +++ nfs-utils-1.0.10/debian/nhfsstone.install
2673 @@ -0,0 +1,2 @@
2674 +debian/tmp/usr/sbin/nhfs*
2675 +debian/tmp/usr/share/man/man8/nhfs*