New build path variable
[freeradius.git] / doc / CYGWIN.rst
1 FreeRADIUS for EAP under CygWin
2 ===============================
3
4 From: "Philip Blow" <philipb@simplywireless.com.au>
5 To: <freeradius-users@lists.cistron.nl>
6 Date: Wed, 29 Jan 2003 15:23:45 +1100
7
8 Here are some brief notes I but together for compiling FreeRADIUS 0.8.1
9 on Windows XP with EAP/TLS support.
10
11 Configuring FreeRADIUS for EAP under CygWin.
12 --------------------------------------------
13
14 #. Installing CygWin
15
16   Install the latest version of CygWin (at time of writing 1.3.19-1) from http://www.cygwin.com
17
18 #. Install the following packages (make as minimum list)
19
20    +--------------------+-----------------+
21    | Package            | Version         |
22    +====================+=================+
23    | _update-info-dir   |        00126-1  |
24    +--------------------+-----------------+
25    | ash                |      20020731-1 |
26    +--------------------+-----------------+
27    | autoconf           |        2.54-1   |
28    +--------------------+-----------------+
29    | autoconf-devel     |        2.57-1   |
30    +--------------------+-----------------+
31    | autoconf-stable    | 2.13-4          |
32    +--------------------+-----------------+
33    | automake           |        1.7.1-1  |
34    +--------------------+-----------------+
35    | automake-devel     |        1.7.2-1  |
36    +--------------------+-----------------+
37    | automake-stable    |        1.4p5-5  |
38    +--------------------+-----------------+
39    | base-files         |        1.1-1    |
40    +--------------------+-----------------+
41    | base-passwd        |        1.0-1    |
42    +--------------------+-----------------+
43    | bash               |        2.05b-8  |
44    +--------------------+-----------------+
45    | bc                 |        1.06-1   |
46    +--------------------+-----------------+
47    | binutils           |      20021117-1 |
48    +--------------------+-----------------+
49    | byacc              |        1.9-1    |
50    +--------------------+-----------------+
51    | bzip2              |        1.0.2-2  |
52    +--------------------+-----------------+
53    | crypt              |        1.0-1    |
54    +--------------------+-----------------+
55    | cygrunsrv          |        0.95-1   |
56    +--------------------+-----------------+
57    | cygutils           |        1.1.3-1  |
58    +--------------------+-----------------+
59    | cygwin             |        1.3.19-1 |
60    +--------------------+-----------------+
61    | cygwin-doc         |        1.3-2    |
62    +--------------------+-----------------+
63    | diff               |        1.0-1    |
64    +--------------------+-----------------+
65    | diffutils          |        2.8.1-1  |
66    +--------------------+-----------------+
67    | ed                 |        0.2-1    |
68    +--------------------+-----------------+
69    | file               |        3.37-1   |
70    +--------------------+-----------------+
71    | fileutils          |        4.1-1    |
72    +--------------------+-----------------+
73    | findutils          |        4.1.7-4  |
74    +--------------------+-----------------+
75    | gawk               |        3.1.1-5  |
76    +--------------------+-----------------+
77    | gcc                |        3.2-3    |
78    +--------------------+-----------------+
79    | gcc-mingw          |      20020817-5 |
80    +--------------------+-----------------+
81    | gcc2               |       2.95.3-10 |
82    +--------------------+-----------------+
83    | gdb                |      20021218-1 |
84    +--------------------+-----------------+
85    | gdbm               |        1.8.0-4  |
86    +--------------------+-----------------+
87    | gettext            |        0.11.5-1 |
88    +--------------------+-----------------+
89    | grep               |        2.5-1    |
90    +--------------------+-----------------+
91    | groff              |        1.18.1-2 |
92    +--------------------+-----------------+
93    | gzip               |        1.3.3-4  |
94    +--------------------+-----------------+
95    | inetutils          |        1.3.2-20 |
96    +--------------------+-----------------+
97    | initscripts        |        0.9-1    |
98    +--------------------+-----------------+
99    | less               |        378-1    |
100    +--------------------+-----------------+
101    | libbz2_0           |        1.0.2-1  |
102    +--------------------+-----------------+
103    | libbz2_1           |        1.0.2-2  |
104    +--------------------+-----------------+
105    | libiconv2          |        1.8-2    |
106    +--------------------+-----------------+
107    | libintl            |     0.10.38-3   |
108    +--------------------+-----------------+
109    | libintl1           |     0.10.40-1   |
110    +--------------------+-----------------+
111    | libintl2           |        0.11.5-1 |
112    +--------------------+-----------------+
113    | libltdl3           |     20030103-1  |
114    +--------------------+-----------------+
115    | libncurses5        |        5.2-1    |
116    +--------------------+-----------------+
117    | libncurses6        |        5.2-8    |
118    +--------------------+-----------------+
119    | libpng10           |        1.0.14-2 |
120    +--------------------+-----------------+
121    | libpng12           |        1.2.4-2  |
122    +--------------------+-----------------+
123    | libpopt0           |        1.6.4-4  |
124    +--------------------+-----------------+
125    | libreadline4       |        4.1-2    |
126    +--------------------+-----------------+
127    | libreadline5       |        4.3-2    |
128    +--------------------+-----------------+
129    | libtool            |     20020202a-1 |
130    +--------------------+-----------------+
131    | libtool-devel      |      20021227-1 |
132    +--------------------+-----------------+
133    | libtool-stable     |        1.4.2-2  |
134    +--------------------+-----------------+
135    | libxml2            |        2.4.23-1 |
136    +--------------------+-----------------+
137    | login              |        1.7-1    |
138    +--------------------+-----------------+
139    | m4                 |        1.4-1    |
140    +--------------------+-----------------+
141    | make               |        3.79.1-7 |
142    +--------------------+-----------------+
143    | man                |        1.5j-1   |
144    +--------------------+-----------------+
145    | mingw-runtime      |        2.3-1    |
146    +--------------------+-----------------+
147    | mktemp             |        1.4-1    |
148    +--------------------+-----------------+
149    | more               |        2.11o-1  |
150    +--------------------+-----------------+
151    | nasm               |      0.98.35-1  |
152    +--------------------+-----------------+
153    | ncurses            |        5.2-8    |
154    +--------------------+-----------------+
155    | newlib-man         |        20020801 |
156    +--------------------+-----------------+
157    | openssh            |        3.5p1-3  |
158    +--------------------+-----------------+
159    | openssl            |        0.9.7-1  |
160    +--------------------+-----------------+
161    | openssl-devel      |        0.9.7-1  |
162    +--------------------+-----------------+
163    | openssl096         |        0.9.6h-1 |
164    +--------------------+-----------------+
165    | patch              |        2.5.8-2  |
166    +--------------------+-----------------+
167    | pcre               |        3.7-1    |
168    +--------------------+-----------------+
169    | perl               |        5.6.1-2  |
170    +--------------------+-----------------+
171    | readline           |        4.3-2    |
172    +--------------------+-----------------+
173    | sed                |        4.0.5-1  |
174    +--------------------+-----------------+
175    | sh-utils           |        2.0.15-3 |
176    +--------------------+-----------------+
177    | sharutils          |         4.2.1-2 |
178    +--------------------+-----------------+
179    | sysvinit           |        2.84-3   |
180    +--------------------+-----------------+
181    | tar                |     1.13.25-1   |
182    +--------------------+-----------------+
183    | tcltk              |     20021218-1  |
184    +--------------------+-----------------+
185    | termcap            |     20020930-1  |
186    +--------------------+-----------------+
187    | terminfo           |        5.2-3    |
188    +--------------------+-----------------+
189    | texinfo            |        4.2-4    |
190    +--------------------+-----------------+
191    | textutils          |        2.0.21-1 |
192    +--------------------+-----------------+
193    | tiff               |        3.5.7-1  |
194    +--------------------+-----------------+
195    | time               |        1.7-1    |
196    +--------------------+-----------------+
197    | unzip              |        5.50-1   |
198    +--------------------+-----------------+
199    | vim                |        6.1-2    |
200    +--------------------+-----------------+
201    | w32api             |        2.1-1    |
202    +--------------------+-----------------+
203    | wget               |        1.8.2-2  |
204    +--------------------+-----------------+
205    | which              |        1.5-1    |
206    +--------------------+-----------------+
207    | xinetd             | 2.3.9-1         |
208    +--------------------+-----------------+
209    | zip                | 2.3-2           |
210    +--------------------+-----------------+
211    | zlib               | 1.1.4-1         |
212    +--------------------+-----------------+
213
214 #. Download
215
216    Download the FreeRADIUS source code from http://www.freeradius.org/
217
218 #. Expand the FreeRADIUS source file.
219
220 #. Make the following changes to the source code
221    (the diffs are reversed)
222
223    ::
224
225     src/main/Makefile.in
226    
227     145,148c145,148
228     <       $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP)
229     radiusd.exe        $(R)$(sbindir)
230     <       $(INSTALL) -m 755 $(INSTALLSTRIP) radwho.exe
231     $(R)$(bindir)
232     <       $(INSTALL) -m 755 $(INSTALLSTRIP) raduse.exe
233     $(R)$(bindir)
234     <       $(INSTALL) -m 755 $(INSTALLSTRIP) radzap.exe
235     $(R)$(bindir)
236     ---
237     >       $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP)
238     radiusd        $(R)$(sbindir)
239     >       $(INSTALL) -m 755 $(INSTALLSTRIP) radwho
240     $(R)$(bindir)
241     >       $(INSTALL) -m 755 $(INSTALLSTRIP) raduse
242     $(R)$(bindir)
243     >       $(INSTALL) -m 755 $(INSTALLSTRIP) radzap
244     $(R)$(bindir)
245     150,151c150,151
246     <       $(INSTALL) -m 755    radclient.exe              $(R)$(bindir)
247     <       $(INSTALL) -m 755    radrelay.exe               $(R)$(bindir)
248     ---
249     >       $(INSTALL) -m 755    radclient          $(R)$(bindir)
250     >       $(INSTALL) -m 755    radrelay           $(R)$(bindir)
251
252     src/modules/rlm_dbm/Makefile.in
253   
254     22,23c22,23
255     <       $(INSTALL) -m 755 $(INSTALLSTRIP) rlm_dbm_parser.exe
256     $(R)$(bindir)
257     <       $(INSTALL) -m 755 $(INSTALLSTRIP) rlm_dbm_cat.exe
258     $(R)$(bindir)
259     ---
260     >       $(INSTALL) -m 755 $(INSTALLSTRIP) rlm_dbm_parser $(R)$(bindir)
261     >       $(INSTALL) -m 755 $(INSTALLSTRIP) rlm_dbm_cat    $(R)$(bindir)
262
263     src/modules/rlm_mschap/Makefile
264
265     20c20
266     <       $(INSTALL) -m 755 $(INSTALLSTRIP) smbencrypt.exe $(R)$(bindir)
267     ---
268     >       $(INSTALL) -m 755 $(INSTALLSTRIP) smbencrypt $(R)$(bindir)
269
270 #. Run configure with the following command line
271
272    ::
273
274     ./configure -without-snmp -disable-shared -enable-static
275
276 #. Execute make and then make install
277
278 ::
279
280  Philip Blow
281  Senior Technical Manager
282  Simply Wireless
283  philipb@simplywireless.com.au