~ubuntu-branches/ubuntu/oneiric/eggdrop/oneiric

« back to all changes in this revision

Viewing changes to doc/html/patch-howto.html

  • Committer: Bazaar Package Importer
  • Author(s): Guilherme de S. Pastore
  • Date: 2004-06-17 09:15:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040617091528-64rrw1sa33lkfhmh
Tags: 1.6.16-2
* Fixed typo on README.Debian
* Fixed hyphens in manual page
* Converted debian/rules to CDBS
* Set path to binary on example config file
* Changed LANGDIR on src/eggdrop.h (Closes: #254824)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 
2
<!-- $Id: patch-howto.html,v 1.3 2004/01/09 05:56:36 wcc Exp $ -->
 
3
 
 
4
<html>
 
5
  <head>
 
6
    <title>Eggdrop Documentation: Patch Howto</title>
 
7
  </head>
 
8
 
 
9
  <body>
 
10
    <div align="center">
 
11
      <p><strong>Patch Howto</strong></p>
 
12
    </div>
 
13
    <hr>
 
14
 
 
15
    <p>The purpose of this document is to show you what a botnet is and how
 
16
    it could be useful to you. It also covers botflags userfile sharing.</p>
 
17
    <hr>
 
18
 
 
19
    <p><strong>Contents</strong></p>
 
20
 
 
21
    <blockquote>
 
22
      <ol>
 
23
        <li><a href="#sect1">Terms</a></li>
 
24
 
 
25
        <li><a href="#sect2">Applying a patch</a></li>
 
26
 
 
27
        <li><a href="#sect3">Creating and submitting a patch</a></li>
 
28
 
 
29
        <li><a href="#sect4">Downloading a patch</a></li>
 
30
      </ol>
 
31
    </blockquote>
 
32
    <hr>
 
33
 
 
34
    <p><a name="sect1"></a><strong>Terms</strong></p>
 
35
 
 
36
    <blockquote>
 
37
      <p>The following are some common terms used in this document:</p>
 
38
 
 
39
      <dl>
 
40
        <dt><strong>Patch</strong></dt>
 
41
 
 
42
        <dd>
 
43
          <p>A patch is an update to the sourcecode of a program (here
 
44
          Eggdrop). Be careful, every patch is designed for a special
 
45
          Eggdrop version and cannot be applied on every bot!</p>
 
46
        </dd>
 
47
      </dl>
 
48
    </blockquote>
 
49
 
 
50
    <p><a name="sect2"></a><strong>Applying a patch</strong></p>
 
51
 
 
52
    <p>To apply a patch to an Eggdrop, you have to first obtain the Eggdrop
 
53
    sourcecode. You should always keep a tar.gz archive with the source of
 
54
    your current Eggdrop on your shell. In the next step, you have to change
 
55
    to your source directory (i.e.: /home/user/eggdrop1.6.0/) and type
 
56
    the following command:</p>
 
57
 
 
58
    <blockquote>
 
59
      <p>patch -p1 &lt; ../path.to.the/patch</p>
 
60
    </blockquote>
 
61
 
 
62
    <p>Once this is complete, execute the following command:</p>
 
63
 
 
64
    <blockquote>
 
65
      <p>find . -name &quot;*.rej&quot; -print</p>
 
66
    </blockquote>
 
67
 
 
68
    <p>If it returns a list with filenames ending with .rej extension, then
 
69
    the patch didn&#39;t apply properly. Ensure that the patch is intended for
 
70
    your version and that you have the original source. You should also try
 
71
    to re-download the patch to ensure that the patch is not corrupted.</p>
 
72
 
 
73
    <p>If the patch applied properly, the only thing left to do is to recompile
 
74
    your Eggdrop and install the new modules and binaries.</p>
 
75
 
 
76
    <p><a name="sect3"></a><strong>Creating and submitting a patch</strong></p>
 
77
 
 
78
    <p>If you fixed a bug and/or changed something in Eggdrop&#39;s source
 
79
    code, it would be really nice to let the dev team know about it, so they
 
80
    can possibly apply it to next release of Eggdrop.</p>
 
81
 
 
82
    <p>There are several steps to submit a patch to the eggdev team:</p>
 
83
 
 
84
    <blockquote>
 
85
      <ol>
 
86
        <li>
 
87
          <p>Create a directory with original source tree and one with
 
88
          modified source tree.</p>
 
89
        </li>
 
90
 
 
91
        <li>
 
92
          <p>Run the following:</p>
 
93
 
 
94
          <blockquote>
 
95
            <p>diff -bur &lt;original source directory&gt; &lt;modified
 
96
            source directory&gt; &gt; patchname.patch</p>
 
97
          </blockquote>
 
98
 
 
99
          <p>If your changes created any new files, use &#39;diff -burN&#39;
 
100
          instead.</p>
 
101
        </li>
 
102
 
 
103
        <li>
 
104
          <p>Send an email to
 
105
          <a href="mailto:patches@eggheads.org">patches@eggheads.org</a> with
 
106
          the patch attached. The body should contain a detailed description
 
107
          of what you changed and why you changed it. Don&#39;t forget to
 
108
          include the Eggdrop version for which your patch was made. Also,
 
109
          please send a second email with same info to
 
110
          <a href="mailto:eggdev@eggheads.org">eggdev@eggheads.org</a>, this
 
111
          time without the patch attached.</p>
 
112
        </li>
 
113
      </ol>
 
114
    </blockquote>
 
115
 
 
116
    <p><a name="sect4"></a><strong>Downloading a patch</strong></p>
 
117
 
 
118
 
 
119
    <p>Many patches for eggdrop1.6.x can be found at the following
 
120
    location:</p>
 
121
 
 
122
    <blockquote>
 
123
      <p><a href="ftp://ftp.eggheads.org/pub/eggdrop/patches/1.6/">
 
124
      ftp://ftp.eggheads.org/pub/eggdrop/patches/1.6/</a></p>
 
125
    </blockquote>
 
126
 
 
127
    <hr>
 
128
    <p><em>Copyright &copy; 1997 Robey Pointer<br>
 
129
    Copyright &copy; 1999, 2000, 2001, 2002, 2003, 2004
 
130
    <a href="http://www.eggheads.org/"> Eggheads Development Team</a></em></p>
 
131
  </body>
 
132
</html>