nfs-utils-1.0.10-debian.patch 90 KB

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