6d630d2a14c7e422cbc701cb369dc1078fe5f6d0
[privoxy.git] / doc / webserver / developer-manual / newrelease.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5   <title>Releasing a New Version</title>
6   <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79">
7   <link rel="HOME" title="Privoxy Developer Manual" href="index.html">
8   <link rel="PREVIOUS" title="Testing Guidelines" href="testing.html">
9   <link rel="NEXT" title="Update the Webserver" href="webserver-update.html">
10   <link rel="STYLESHEET" type="text/css" href="../p_doc.css">
11   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
12 </head>
13 <body class="SECT1" bgcolor="#EEEEEE" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF">
14   <div class="NAVHEADER">
15     <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
16       <tr>
17         <th colspan="3" align="center">Privoxy Developer Manual</th>
18       </tr>
19       <tr>
20         <td width="10%" align="left" valign="bottom"><a href="testing.html" accesskey="P">Prev</a></td>
21         <td width="80%" align="center" valign="bottom"></td>
22         <td width="10%" align="right" valign="bottom"><a href="webserver-update.html" accesskey="N">Next</a></td>
23       </tr>
24     </table>
25     <hr align="left" width="100%">
26   </div>
27   <div class="SECT1">
28     <h1 class="SECT1"><a name="NEWRELEASE" id="NEWRELEASE">6. Releasing a New Version</a></h1>
29     <p>When we release versions of <span class="APPLICATION">Privoxy</span>, our work leaves our cozy secret lab and
30     has to work in the cold RealWorld[tm]. Once it is released, there is no way to call it back, so it is very
31     important that great care is taken to ensure that everything runs fine, and not to introduce problems in the very
32     last minute.</p>
33     <p>So when releasing a new version, please adhere exactly to the procedure outlined in this chapter.</p>
34     <p>The following programs are required to follow this process: <tt class="FILENAME">ssh</tt>, <tt class=
35     "FILENAME">gmake</tt> (GNU's version of make), autoconf, git, a web browser.</p>
36     <div class="SECT2">
37       <h2 class="SECT2"><a name="VERSIONNUMBERS" id="VERSIONNUMBERS">6.1. Version numbers</a></h2>
38       <p>First you need to determine which version number the release will have. <span class=
39       "APPLICATION">Privoxy</span> version numbers consist of three numbers, separated by dots, like in X.Y.Z (e.g.
40       3.0.0), where:</p>
41       <ul>
42         <li>
43           <p>X, the version major, is rarely ever changed. It is increased by one if turning a development branch into
44           stable substantially changes the functionality, user interface or configuration syntax. Majors 1 and 2 were
45           <span class="APPLICATION">Junkbuster</span>, and 3 is the first stable <span class=
46           "APPLICATION">Privoxy</span> release.</p>
47         </li>
48         <li>
49           <p>Y, the version minor, represents the branch within the major version. At any point in time, there are two
50           branches being maintained: The stable branch, with an even minor, say, 2N, in which no functionality is being
51           added and only bug-fixes are made, and 2N+1, the development branch, in which the further development of
52           <span class="APPLICATION">Privoxy</span> takes place. This enables us to turn the code upside down and inside
53           out, while at the same time providing and maintaining a stable version. The minor is reset to zero (and one)
54           when the major is incremented. When a development branch has matured to the point where it can be turned into
55           stable, the old stable branch 2N is given up (i.e. no longer maintained), the former development branch 2N+1
56           becomes the new stable branch 2N+2, and a new development branch 2N+3 is opened.</p>
57         </li>
58         <li>
59           <p>Z, the point or sub version, represents a release of the software within a branch. It is therefore
60           incremented immediately after each software release. The point version is reset to zero when the minor
61           changes.</p>
62           <p>Stable branches work a little differently, since there should be little to no development happening in
63           such branches. Remember, only bugfixes, which presumably should have had some testing before being committed.
64           Stable branches will then have their version reported as <tt class="LITERAL">0.0.0</tt>, during that period
65           between releases when changes are being added. This is to denote that this code is <span class=
66           "emphasis"><i class="EMPHASIS">not for release</i></span>. Then as the release nears, the version is bumped
67           according: e.g. <tt class="LITERAL">3.0.1 -&#62; 0.0.0 -&#62; 3.0.2</tt>.</p>
68         </li>
69       </ul>
70       <p>In summary, the main Git trunk is the development branch where new features are being worked on for the next
71       stable series. This should almost always be where the most activity takes place. There is always at least one
72       stable branch from the trunk, e.g now it is <tt class="LITERAL">3.0</tt>, which is only used to release stable
73       versions. Once the initial *.0 release of the stable branch has been done, then as a rule, only bugfixes that
74       have had prior testing should be committed to the stable branch. Once there are enough bugfixes to justify a new
75       release, the version of this branch is again incremented Example: 3.0.0 -&#62; 3.0.1 -&#62; 3.0.2, etc are all
76       stable releases from within the stable branch. 3.1.x is currently the main trunk, and where work on 3.2.x is
77       taking place. If any questions, please post to the devel list <span class="emphasis"><i class=
78       "EMPHASIS">before</i></span> committing to a stable branch!</p>
79       <p>Developers should remember too that if they commit a bugfix to the stable branch, this will more than likely
80       require a separate submission to the main trunk, since these are separate development trees within Git. If you
81       are working on both, then this would require at least two separate check outs (i.e main trunk, <span class=
82       "emphasis"><i class="EMPHASIS">and</i></span> the stable release branch, which is <tt class=
83       "LITERAL">v_3_0_branch</tt> at the moment).</p>
84     </div>
85     <div class="SECT2">
86       <h2 class="SECT2"><a name="BEFORERELEASE" id="BEFORERELEASE">6.2. Before the Release</a></h2>
87       <p>The following <span class="emphasis"><i class="EMPHASIS">must be done by one of the developers</i></span>
88       prior to each new release.</p>
89       <ul>
90         <li>
91           <p>Make sure that everybody who has worked on the code in the last couple of days has had a chance to yell
92           <span class="QUOTE">"no!"</span> in case they have pending changes/fixes in their pipelines. Announce the
93           freeze so that nobody will interfere with last minute changes.</p>
94         </li>
95         <li>
96           <p>Update the code status (CODE_STATUS="xxx") in configure.in to one of "alpha", "beta" or "stable".</p>
97         </li>
98         <li>
99           <p>Rebuild configure and GNUMakefile to make sure the updated values are being used.</p>
100           <table border="0" bgcolor="#E0E0E0" width="90%">
101             <tr>
102               <td>
103                 <pre class="PROGRAMLISTING">$ autoheader &#38;&#38; autoconf     # rebuild configure
104 $ ./configure                # rebuild GNUmakefile</pre>
105               </td>
106             </tr>
107           </table>
108         </li>
109         <li>
110           <p><b class="COMMAND">make dok-release</b> to update the sgml documentation source files.</p>
111         </li>
112         <li>
113           <p>If action file processing has changed and is not backward-compatible, make sure the
114           "for-privoxy-version=x.y.z" minimum version number in default.action.master has been updated:</p>
115           <table border="0" bgcolor="#E0E0E0" width="90%">
116             <tr>
117               <td>
118                 <pre class="PROGRAMLISTING">{{settings}}
119 #############################################################################
120 #MASTER# COMMENT: The minimum Privoxy version:
121 for-privoxy-version=3.0.11</pre>
122               </td>
123             </tr>
124           </table>
125         </li>
126         <li>
127           <p>Create the change log:</p>
128           <table border="0" bgcolor="#E0E0E0" width="90%">
129             <tr>
130               <td>
131                 <pre class="PROGRAMLISTING">  $ git tag
132   #   to see the tags
133   $ git log [last release tag]..HEAD &gt; /tmp/log
134   #   get the commit log since the last release
135   $ utils/makeChangeLog /tmp/log &gt; /tmp/change.log
136   #   reformat the commit log</pre>
137               </td>
138             </tr>
139           </table>
140           <p>Edit <tt class="FILENAME">/tmp/change.log</tt> to remove trivial changes and group the changes under
141           general headings like:</p>
142           <table border="0" bgcolor="#E0E0E0" width="90%">
143             <tr>
144               <td>
145                 <pre class="PROGRAMLISTING">- Bug fixes:
146 - Action file improvements:
147 - Filter file improvements:
148 - General improvements:
149 - Documentation improvements:
150 - Build system improvements:
151 - Code cleanups:
152 - Privoxy-Log-Parser:
153 - Privoxy-Regression-Test:</pre>
154               </td>
155             </tr>
156           </table>
157           <p>Add the contents of <tt class="FILENAME">/tmp/change.log</tt> to the start of <tt class=
158           "FILENAME">ChangeLog</tt> and re-create <tt class="FILENAME">doc/source/changelog.sgml</tt>:</p>
159           <table border="0" bgcolor="#E0E0E0" width="90%">
160             <tr>
161               <td>
162                 <pre class=
163                 "PROGRAMLISTING">  $ utils/changelog2doc.pl /tmp/change.log &gt;| doc/source/changelog.sgml</pre>
164               </td>
165             </tr>
166           </table>
167         </li>
168         <li>
169           <p>All developers should look at the <tt class="FILENAME">ChangeLog</tt> and make sure noteworthy changes are
170           referenced.</p>
171         </li>
172         <li>
173           <p>All documentation should be rebuilt:</p>
174           <table border="0" bgcolor="#E0E0E0" width="90%">
175             <tr>
176               <td>
177                 <pre class="PROGRAMLISTING">  $ make man
178   $ make dok
179   $ make dok-man
180   $ make dok-tidy
181   $ make config-file</pre>
182               </td>
183             </tr>
184           </table>Finished docs should be then be committed to Git (for those without the ability to build these). Some
185           docs may require rather obscure processing tools. <tt class="FILENAME">config</tt>, the man page (and the
186           html version of the man page) fall in this category. README, the man page, AUTHORS, and config should all
187           also be committed to Git for other packagers. The formal docs should be uploaded to the webserver. See the
188           section <a href="webserver-update.html" target="_top">"Updating the webserver"</a> in this manual for
189           details.
190         </li>
191         <li>
192           <p><span class="emphasis"><i class="EMPHASIS">Commit all files that were changed in the above
193           steps!</i></span></p>
194         </li>
195         <li>
196           <p>The <i class="CITETITLE">User Manual</i> is also used for context sensitive help for the CGI editor. This
197           is version sensitive, so that the user will get appropriate help for his/her release. So with each release a
198           fresh version should be uploaded to the webserver (this is in addition to the main <i class="CITETITLE">User
199           Manual</i> link from the main page since we need to keep manuals for various versions available). The CGI
200           pages will link to something like <tt class="LITERAL">https://www.privoxy.org/$(VERSION)/user-manual/</tt>.
201           This will need to be updated for each new release. There is no Makefile target for this at this time!!! It
202           needs to be done manually.</p>
203         </li>
204         <li>
205           <p>Tag all files in Git with the version number with <span class="QUOTE">"<b class="COMMAND">git tag
206           v_X_Y_Z</b>"</span>. Don't use vX_Y_Z, ver_X_Y_Z, v_X.Y.Z (won't work) etc.</p>
207         </li>
208         <li>
209           <p>On the webserver, copy the user manual to a new top-level directory called <tt class=
210           "FILENAME">X.Y.Z</tt>. This ensures that help links from the CGI pages, which have the version as a prefix,
211           will go into the right version of the manual. If this is a development branch release, also symlink
212           <tt class="FILENAME">X.Y.(Z-1)</tt> to <tt class="FILENAME">X.Y.Z</tt> and <tt class=
213           "FILENAME">X.Y.(Z+1)</tt> to <tt class="FILENAME">.</tt> (i.e. dot).</p>
214         </li>
215       </ul>
216     </div>
217     <div class="SECT2">
218       <h2 class="SECT2"><a name="THERELEASE" id="THERELEASE">6.3. Building and Releasing the Packages</a></h2>
219       <p>Now the individual packages can be built and released. Note that for GPL reasons the first package to be
220       released is always the source tarball.</p>
221       <p>For <span class="emphasis"><i class="EMPHASIS">all</i></span> types of packages, including the source tarball,
222       <span class="emphasis"><i class="EMPHASIS">you must make sure that you build from clean sources by exporting the
223       right version from Git into an empty directory</i></span> (just press return when asked for a password):</p>
224       <table border="0" bgcolor="#E0E0E0" width="100%">
225         <tr>
226           <td>
227             <pre class="PROGRAMLISTING">  mkdir dist # delete or choose different name if it already exists
228   cd dist
229   git clone https://www.privoxy.org/git/privoxy.git
230   cd privoxy
231   git checkout v_X_Y_Z</pre>
232           </td>
233         </tr>
234       </table>
235       <p><span class="emphasis"><i class="EMPHASIS">Do NOT change</i></span> a single bit, including, but not limited
236       to version information after export from Git. This is to make sure that all release packages, and with them, all
237       future bug reports, are based on exactly the same code.</p>
238       <div class="WARNING">
239         <table class="WARNING" border="1" width="100%">
240           <tr>
241             <td align="center"><b>Warning</b></td>
242           </tr>
243           <tr>
244             <td align="left">
245               <p>Every significant release of Privoxy has included at least one package that either had incorrect
246               versions of files, missing files, or incidental leftovers from a previous build process that gave unknown
247               numbers of users headaches to try to figure out what was wrong. PLEASE, make sure you are using pristene
248               sources, and are following the prescribed process!</p>
249             </td>
250           </tr>
251         </table>
252       </div>
253       <p>Please find additional instructions for the source tarball and the individual platform dependent binary
254       packages below. And details on the Sourceforge release process below that.</p>
255       <div class="SECT3">
256         <h3 class="SECT3"><a name="PACK-GUIDELINES" id="PACK-GUIDELINES">6.3.1. Note on Privoxy Packaging</a></h3>
257         <p>Please keep these general guidelines in mind when putting together your package. These apply to <span class=
258         "emphasis"><i class="EMPHASIS">all</i></span> platforms!</p>
259         <ul>
260           <li>
261             <p><span class="APPLICATION">Privoxy</span> <span class="emphasis"><i class="EMPHASIS">requires</i></span>
262             write access to: all <tt class="FILENAME">*.action</tt> files, all logfiles, and the <tt class=
263             "FILENAME">trust</tt> file. You will need to determine the best way to do this for your platform.</p>
264           </li>
265           <li>
266             <p>Please include up to date documentation. At a bare minimum:</p>
267             <table border="0">
268               <tbody>
269                 <tr>
270                   <td><tt class="FILENAME">LICENSE</tt> (top-level directory)</td>
271                 </tr>
272               </tbody>
273             </table>
274             <table border="0">
275               <tbody>
276                 <tr>
277                   <td><tt class="FILENAME">README</tt> (top-level directory)</td>
278                 </tr>
279               </tbody>
280             </table>
281             <table border="0">
282               <tbody>
283                 <tr>
284                   <td><tt class="FILENAME">AUTHORS</tt> (top-level directory)</td>
285                 </tr>
286               </tbody>
287             </table>
288             <table border="0">
289               <tbody>
290                 <tr>
291                   <td><tt class="FILENAME">man page</tt> (top-level directory, Unix-like platforms only)</td>
292                 </tr>
293               </tbody>
294             </table>
295             <table border="0">
296               <tbody>
297                 <tr>
298                   <td><tt class="FILENAME">The User Manual</tt> (doc/webserver/user-manual/)</td>
299                 </tr>
300               </tbody>
301             </table>
302             <table border="0">
303               <tbody>
304                 <tr>
305                   <td><tt class="FILENAME">FAQ</tt> (doc/webserver/faq/)</td>
306                 </tr>
307               </tbody>
308             </table>
309             <p>Also suggested: <tt class="FILENAME">Developer Manual</tt> (doc/webserver/developer-manual) and
310             <tt class="FILENAME">ChangeLog</tt> (top-level directory). <tt class="FILENAME">FAQ</tt> and the manuals
311             are HTML docs. There are also text versions in <tt class="FILENAME">doc/text/</tt> which could conceivably
312             also be included.</p>
313             <p>The documentation has been designed such that the manuals are linked to each other from parallel
314             directories, and should be packaged that way. <tt class="FILENAME">privoxy-index.html</tt> can also be
315             included and can serve as a focal point for docs and other links of interest (and possibly renamed to
316             <tt class="FILENAME">index.html</tt>). This should be one level up from the manuals. There is a link also
317             on this page to an HTMLized version of the man page. To avoid 404 for this, it is in Git as <tt class=
318             "FILENAME">doc/webserver/man-page/privoxy-man-page.html</tt>, and should be included along with the
319             manuals. There is also a css stylesheets that can be included for better presentation: <tt class=
320             "FILENAME">p_doc.css</tt>. This should be in the same directory with <tt class=
321             "FILENAME">privoxy-index.html</tt>, (i.e. one level up from the manual directories).</p>
322           </li>
323           <li>
324             <p><tt class="FILENAME">user.action</tt> and <tt class="FILENAME">user.filter</tt> are designed for local
325             preferences. Make sure these do not get overwritten! <tt class="FILENAME">config</tt> should not be
326             overwritten either. This has especially important configuration data in it. <tt class="FILENAME">trust</tt>
327             should be left in tact as well.</p>
328           </li>
329           <li>
330             <p>Other configuration files (<tt class="FILENAME">default.action</tt> and <tt class=
331             "FILENAME">default.filter</tt>) should be installed as the new defaults, but all previously installed
332             configuration files should be preserved as backups. This is just good manners :-) These files are likely to
333             change between releases and contain important new features and bug fixes.</p>
334           </li>
335           <li>
336             <p>Please check platform specific notes in this doc, if you haven't done <span class=
337             "QUOTE">"Privoxy"</span> packaging before for other platform specific issues. Conversely, please add any
338             notes that you know are important for your platform (or contact one of the doc maintainers to do this if
339             you can't).</p>
340           </li>
341           <li>
342             <p>Packagers should do a <span class="QUOTE">"clean"</span> install of their package after building it. So
343             any previous installs should be removed first to ensure the integrity of the newly built package. Then run
344             the package for a while to make sure there are no obvious problems, before uploading.</p>
345           </li>
346         </ul>
347       </div>
348       <div class="SECT3">
349         <h3 class="SECT3"><a name="NEWRELEASE-TARBALL" id="NEWRELEASE-TARBALL">6.3.2. Source Tarball</a></h3>
350         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
351         into an empty directory</i></span>. (See "Building and releasing packages" above). Then run:</p>
352         <table border="0" bgcolor="#E0E0E0" width="100%">
353           <tr>
354             <td>
355               <pre class="PROGRAMLISTING">  cd current
356   autoheader &#38;&#38; autoconf &#38;&#38; ./configure</pre>
357             </td>
358           </tr>
359         </table>
360         <p>Then do:</p>
361         <table border="0" bgcolor="#E0E0E0" width="100%">
362           <tr>
363             <td>
364               <pre class="PROGRAMLISTING">  make tarball-dist</pre>
365             </td>
366           </tr>
367         </table>
368         <p>To upload the package to Sourceforge, simply issue</p>
369         <table border="0" bgcolor="#E0E0E0" width="100%">
370           <tr>
371             <td>
372               <pre class="PROGRAMLISTING">  make tarball-upload</pre>
373             </td>
374           </tr>
375         </table>
376         <p>Go to the displayed URL and release the file publicly on Sourceforge. For the change log field, use the
377         relevant section of the <tt class="FILENAME">ChangeLog</tt> file.</p>
378       </div>
379       <div class="SECT3">
380         <h3 class="SECT3"><a name="NEWRELEASE-RPM" id="NEWRELEASE-RPM">6.3.3. SuSE, Conectiva or Red Hat RPM</a></h3>
381         <p>In following text, replace <tt class="REPLACEABLE"><i>dist</i></tt> with either <span class=
382         "QUOTE">"rh"</span> for Red Hat or <span class="QUOTE">"suse"</span> for SuSE.</p>
383         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
384         into an empty directory</i></span>. (See "Building and releasing packages" above).</p>
385         <p>As the only exception to not changing anything after export from Git, now examine the file <tt class=
386         "FILENAME">privoxy-</tt><tt class="REPLACEABLE"><i>dist</i></tt><tt class="FILENAME">.spec</tt> and make sure
387         that the version information and the RPM release number are correct. The RPM release numbers for each version
388         start at one. Hence it must be reset to one if this is the first RPM for <tt class=
389         "REPLACEABLE"><i>dist</i></tt> which is built from version X.Y.Z. Check the <a href=
390         "https://sourceforge.net/projects/ijbswa/files/" target="_top">file list</a> if unsure. Else, it must be set to
391         the highest already available RPM release number for that version plus one.</p>
392         <p>Then run:</p>
393         <table border="0" bgcolor="#E0E0E0" width="100%">
394           <tr>
395             <td>
396               <pre class="PROGRAMLISTING">  cd current
397   autoheader &#38;&#38; autoconf &#38;&#38; ./configure</pre>
398             </td>
399           </tr>
400         </table>
401         <p>Then do</p>
402         <table border="0" bgcolor="#E0E0E0" width="100%">
403           <tr>
404             <td>
405               <pre class="PROGRAMLISTING">  make <tt class="REPLACEABLE"><i>dist</i></tt>-dist</pre>
406             </td>
407           </tr>
408         </table>
409         <p>To upload the package to Sourceforge, simply issue</p>
410         <table border="0" bgcolor="#E0E0E0" width="100%">
411           <tr>
412             <td>
413               <pre class="PROGRAMLISTING">  make <tt class="REPLACEABLE"><i>dist</i></tt>-upload <tt class=
414               "REPLACEABLE"><i>rpm_packagerev</i></tt></pre>
415             </td>
416           </tr>
417         </table>
418         <p>where <tt class="REPLACEABLE"><i>rpm_packagerev</i></tt> is the RPM release number as determined above. Go
419         to the displayed URL and release the file publicly on Sourceforge. Use the release notes and change log from
420         the source tarball package.</p>
421       </div>
422       <div class="SECT3">
423         <h3 class="SECT3"><a name="NEWRELEASE-SOLARIS" id="NEWRELEASE-SOLARIS">6.3.4. Solaris</a></h3>
424         <p>Login to Sourceforge's compilefarm via ssh:</p>
425         <table border="0" bgcolor="#E0E0E0" width="100%">
426           <tr>
427             <td>
428               <pre class="PROGRAMLISTING">  ssh cf.sourceforge.net</pre>
429             </td>
430           </tr>
431         </table>
432         <p>Choose the right operating system (not the Debian one). When logged in, <span class="emphasis"><i class=
433         "EMPHASIS">make sure that you have freshly exported the right version into an empty directory</i></span>. (See
434         "Building and releasing packages" above). Then run:</p>
435         <table border="0" bgcolor="#E0E0E0" width="100%">
436           <tr>
437             <td>
438               <pre class="PROGRAMLISTING">  cd current
439   autoheader &#38;&#38; autoconf &#38;&#38; ./configure</pre>
440             </td>
441           </tr>
442         </table>
443         <p>Then run</p>
444         <table border="0" bgcolor="#E0E0E0" width="100%">
445           <tr>
446             <td>
447               <pre class="PROGRAMLISTING">  gmake solaris-dist</pre>
448             </td>
449           </tr>
450         </table>
451         <p>which creates a gzip'ed tar archive. Sadly, you cannot use <b class="COMMAND">make solaris-upload</b> on the
452         Sourceforge machine (no ncftpput). You now have to manually upload the archive to Sourceforge's ftp server and
453         release the file publicly. Use the release notes and Change Log from the source tarball package.</p>
454       </div>
455       <div class="SECT3">
456         <h3 class="SECT3"><a name="NEWRELEASE-WINDOWS" id="NEWRELEASE-WINDOWS">6.3.5. Windows</a></h3>
457         <p>Note that the docbook generated files might need some hand editing, so the Windows build makefile does not
458         rebuild the docs.</p>
459         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
460         into an empty directory</i></span>. (See "Building and releasing packages" above).</p>
461         <p>Then you can build the package. This is fully automated, and is controlled by <tt class=
462         "FILENAME">windows/GNUmakefile</tt>. All you need to do is:</p>
463         <table border="0" bgcolor="#E0E0E0" width="100%">
464           <tr>
465             <td>
466               <pre class="PROGRAMLISTING">  cd windows
467   make</pre>
468             </td>
469           </tr>
470         </table>
471         <p>Now you can manually rename <tt class="FILENAME">privoxy_setup.exe</tt> to <tt class=
472         "FILENAME">privoxy_setup_X.Y.Z.exe</tt>, and the <tt class="FILENAME">build</tt> directory to <tt class=
473         "FILENAME">privoxy_X.Y.Z</tt>. Create a .zip file of the newly renamed <tt class="FILENAME">privoxy_X.Y.Z</tt>
474         directory, GPG sign the installer and zip file,</p>
475         <table border="0" bgcolor="#E0E0E0" width="100%">
476           <tr>
477             <td>
478               <pre class="PROGRAMLISTING">  $ gpg --armor --detach --sign <tt class=
479               "FILENAME">privoxy_setup_X.Y.Z.exe</tt>
480   $ gpg --armor --detach --sign <tt class="FILENAME">privoxy_X.Y.Z.zip</tt></pre>
481             </td>
482           </tr>
483         </table>
484         <p>and upload the files to SourceForge.</p>
485         <p>When releasing the package on SourceForge, use the release notes and Change Log from the source tarball
486         package.</p>
487       </div>
488       <div class="SECT3">
489         <h3 class="SECT3"><a name="NEWRELEASE-DEBIAN" id="NEWRELEASE-DEBIAN">6.3.6. Debian</a></h3>
490         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
491         into an empty directory</i></span>. (See "Building and releasing packages" above). Then add a log entry to
492         <tt class="FILENAME">debian/changelog</tt>, if it is not already there, for example by running:</p>
493         <table border="0" bgcolor="#E0E0E0" width="100%">
494           <tr>
495             <td>
496               <pre class="PROGRAMLISTING">  debchange -v 3.0.30-UNRELEASED-1 "New upstream version"</pre>
497             </td>
498           </tr>
499         </table>
500         <p>Then, run:</p>
501         <table border="0" bgcolor="#E0E0E0" width="100%">
502           <tr>
503             <td>
504               <pre class="PROGRAMLISTING">  dpkg-buildpackage -rfakeroot -us -uc -b</pre>
505             </td>
506           </tr>
507         </table>
508         <p>This will create <tt class="FILENAME">../privoxy_3.0.30-UNRELEASED-1_i386.deb</tt> which can be uploaded. To
509         upload the package to Sourceforge, simply issue</p>
510         <table border="0" bgcolor="#E0E0E0" width="100%">
511           <tr>
512             <td>
513               <pre class="PROGRAMLISTING">  make debian-upload</pre>
514             </td>
515           </tr>
516         </table>
517       </div>
518       <div class="SECT3">
519         <h3 class="SECT3"><a name="NEWRELEASE-MACOSX" id="NEWRELEASE-MACOSX">6.3.7. Mac OS X</a></h3>
520         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
521         into an empty directory</i></span>. (See "Building and releasing packages" above).</p>
522         <p>There are three modules available in the CVS repository backups for use on Mac OS X, though technically only
523         two of them generate a release (the other can be used to install from source).</p>
524         <div class="SECT4">
525           <h4 class="SECT4"><a name="OS-X-OSXPACKAGEBUILDER-MODULE" id="OS-X-OSXPACKAGEBUILDER-MODULE">6.3.7.1.
526           OSXPackageBuilder module (Documentation out of date)</a></h4>
527           <p>The OSXPackageBuilder module generates OS X installer packages supporting all Macs running OS X 10.4 and
528           above. Obtain it from CVS as follows into a folder parallel to the exported privoxy source:</p>
529           <table border="0" bgcolor="#E0E0E0" width="100%">
530             <tr>
531               <td>
532                 <pre class=
533                 "PROGRAMLISTING">  cvs -z3 -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa co OSXPackageBuilder</pre>
534               </td>
535             </tr>
536           </table>
537           <p>The module contains complete instructions on its usage in the file <tt class="FILENAME">OS X Package
538           Builder HOWTO.txt</tt>.</p>
539           <p>Once the package(s) have been generated, you can then upload them directly to the Files section of the
540           Sourceforge project in the Macintosh (OS X) folder. Each new version release of Privoxy should have a new
541           subfolder created in which to store its files. Please ensure that the folder contains a readme file that
542           makes it clear which package is for whichversion of OS X.</p>
543         </div>
544         <div class="SECT4">
545           <h4 class="SECT4"><a name="OS-X-OSXSETUP-MODULE" id="OS-X-OSXSETUP-MODULE">6.3.7.2. osxsetup module
546           (DEPRECATED) (Documentation out of date)</a></h4>
547           <p><span class="emphasis"><i class="EMPHASIS">This module is deprecated since the installer it generates
548           places all Privoxy files in one folder in a non-standard location, and supports only Intel Macs running OS X
549           10.6 or higher.</i></span></p>
550           <p>Check out the module from CVS as follows into a folder parallel to the exported privoxy source:</p>
551           <table border="0" bgcolor="#E0E0E0" width="100%">
552             <tr>
553               <td>
554                 <pre class=
555                 "PROGRAMLISTING">  cvs -z3 -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa co osxsetup</pre>
556               </td>
557             </tr>
558           </table>
559           <p>Then run:</p>
560           <table border="0" bgcolor="#E0E0E0" width="100%">
561             <tr>
562               <td>
563                 <pre class="PROGRAMLISTING">  cd osxsetup
564   build</pre>
565               </td>
566             </tr>
567           </table>
568           <p>This will run <tt class="FILENAME">autoheader</tt>, <tt class="FILENAME">autoconf</tt> and <tt class=
569           "FILENAME">configure</tt> as well as <tt class="FILENAME">make</tt>. Finally, it will copy over the necessary
570           files to the ./osxsetup/files directory for further processing by <tt class="FILENAME">PackageMaker</tt>.</p>
571           <p>Bring up PackageMaker with the PrivoxyPackage.pmsp definition file, modify the package name to match the
572           release, and hit the "Create package" button. If you specify ./Privoxy.pkg as the output package name, you
573           can then create the distributable zip file with the command:</p>
574           <table border="0" bgcolor="#E0E0E0" width="100%">
575             <tr>
576               <td>
577                 <pre class="PROGRAMLISTING">  zip -r privoxyosx_setup_x.y.z.zip Privoxy.pkg</pre>
578               </td>
579             </tr>
580           </table>
581           <p>You can then upload this file directly to the Files section of the Sourceforge project in the Macintosh
582           (OS X) folder. Each new version release of Privoxy should have a new subfolder created in which to store its
583           files. Please ensure that the folder contains a readme file that makes it clear which version(s) of OS X the
584           package supports.</p>
585         </div>
586         <div class="SECT4">
587           <h4 class="SECT4"><a name="OS-X-MACSETUP-MODULE" id="OS-X-MACSETUP-MODULE">6.3.7.3. macsetup module
588           (Documentation out of date)</a></h4>
589           <p>The macsetup module is ideal if you wish to build and install Privoxy from source on a single machine.</p>
590           <p>Check out the module from CVS as follows into a folder parallel to the exported privoxy source:</p>
591           <table border="0" bgcolor="#E0E0E0" width="100%">
592             <tr>
593               <td>
594                 <pre class=
595                 "PROGRAMLISTING">  cvs -z3 -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa co macsetup</pre>
596               </td>
597             </tr>
598           </table>
599           <p>The module contains complete instructions on its usage in its <tt class="FILENAME">README</tt> file. The
600           end result will be the exported version of Privoxy installed on the build machine.</p>
601         </div>
602       </div>
603       <div class="SECT3">
604         <h3 class="SECT3"><a name="NEWRELEASE-FREEBSD" id="NEWRELEASE-FREEBSD">6.3.8. FreeBSD</a></h3>
605         <p>Update the www/privoxy port and submit a diff upstream. For details see the <a href=
606         "https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/" target="_top">FreeBSD Porter's
607         Handbook</a>.</p>
608       </div>
609     </div>
610     <div class="SECT2">
611       <h2 class="SECT2"><a name="RELEASING" id="RELEASING">6.4. Uploading and Releasing Your Package</a></h2>
612       <p>After the package is ready, it is time to upload it to SourceForge, and go through the release steps. The
613       upload is done via FTP:</p>
614       <ul>
615         <li>
616           <p>Upload to: <a href="ftp://upload.sourceforge.net/incoming" target=
617           "_top">ftp://upload.sourceforge.net/incoming</a></p>
618         </li>
619         <li>
620           <p>user: <tt class="LITERAL">anonymous</tt></p>
621         </li>
622         <li>
623           <p>password: <tt class="LITERAL">ijbswa-developers@lists.sourceforge.net</tt></p>
624         </li>
625       </ul>
626       <p>Or use the <b class="COMMAND">make</b> targets as described above.</p>
627       <p>Once this done go to <a href="https://sourceforge.net/project/admin/editpackages.php?group_id=11118" target=
628       "_top">https://sourceforge.net/project/admin/editpackages.php?group_id=11118</a>, making sure you are logged in.
629       Find your target platform in the second column, and click <tt class="LITERAL">Add Release</tt>. You will then
630       need to create a new release for your package, using the format of <tt class="LITERAL">$VERSION
631       ($CODE_STATUS)</tt>, e.g. <span class="emphasis"><i class="EMPHASIS">3.0.30 (beta)</i></span>.</p>
632       <p>Now just follow the prompts. Be sure to add any appropriate Release notes. You should see your freshly
633       uploaded packages in <span class="QUOTE">"Step 2. Add Files To This Release"</span>. Check the appropriate
634       box(es). Remember at each step to hit the <span class="QUOTE">"Refresh/Submit"</span> buttons! You should now see
635       your file(s) listed in Step 3. Fill out the forms with the appropriate information for your platform, being sure
636       to hit <span class="QUOTE">"Update"</span> for each file. If anyone is monitoring your platform, check the
637       <span class="QUOTE">"email"</span> box at the very bottom to notify them of the new package. This should do
638       it!</p>
639       <p>If you have made errors, or need to make changes, you can go through essentially the same steps, but select
640       <tt class="LITERAL">Edit Release</tt>, instead of <tt class="LITERAL">Add Release</tt>.</p>
641     </div>
642     <div class="SECT2">
643       <h2 class="SECT2"><a name="AFTERRELEASE" id="AFTERRELEASE">6.5. After the Release</a></h2>
644       <p>When all (or: most of the) packages have been uploaded and made available, send an email to the <a href=
645       "mailto:privoxy-announce@lists.privoxy.org" target="_top">announce mailing list</a>, Subject: "Version X.Y.Z
646       available for download". Be sure to include the <a href="https://sourceforge.net/projects/ijbswa/files/" target=
647       "_top">download location</a>, the release notes and the Changelog. Also, post an updated News item on the project
648       page Sourceforge, and update the Home page and docs linked from the Home page (see below). Other news sites and
649       release oriented sites, such as Freshmeat, should also be notified.</p>
650       <p>Then update the source code for the next version to be released:</p>
651       <ul>
652         <li>
653           <p>Increment the version number and change the code status to "UNRELEASED" in <tt class=
654           "FILENAME">configure.in</tt></p>
655         </li>
656         <li>
657           <p>Rebuild configure (<span class="QUOTE">"<b class="COMMAND">autoheader &#38;&#38; autoconf</b>"</span>) and
658           GNUMakefile (<span class="QUOTE">"<b class="COMMAND">./configure</b>"</span>)</p>
659         </li>
660         <li>
661           <p><span class="QUOTE">"<b class="COMMAND">make dok-release</b>"</span> to update the sgml documentation
662           source files.</p>
663         </li>
664         <li>
665           <p>Commit all your changes.</p>
666         </li>
667       </ul>
668     </div>
669   </div>
670   <div class="NAVFOOTER">
671     <hr align="left" width="100%">
672     <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
673       <tr>
674         <td width="33%" align="left" valign="top"><a href="testing.html" accesskey="P">Prev</a></td>
675         <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td>
676         <td width="33%" align="right" valign="top"><a href="webserver-update.html" accesskey="N">Next</a></td>
677       </tr>
678       <tr>
679         <td width="33%" align="left" valign="top">Testing Guidelines</td>
680         <td width="34%" align="center" valign="top">&nbsp;</td>
681         <td width="33%" align="right" valign="top">Update the Webserver</td>
682       </tr>
683     </table>
684   </div>
685 </body>
686 </html>