1 | How to make a 'bones' version of cns. |
---|
2 | |
---|
3 | This procedure is pretty mechanical. For V5 we should use a |
---|
4 | mechanism more like Sanitize, but for now this will suffice. |
---|
5 | |
---|
6 | |
---|
7 | 1> Check out 'bones'. That's just like cns, only without certain |
---|
8 | files (like all of lib/des or lib/kstream/kstream-des.*). |
---|
9 | 2> run the script kerberos/dounifdef over the whole tree (including |
---|
10 | doc) with a command something like: |
---|
11 | find . -type f \( -name '*akefile*' -o -name '*.c' \) -exec `pwd`/dounifdef {} \; |
---|
12 | |
---|
13 | 3> unifdef is pretty lame; you have to fix the following files by hand: |
---|
14 | src/lib/krb/cr_ciph.c:26:#ifndef NOENCRYPTION |
---|
15 | src/lib/krb/cr_tkt.c:29:#ifndef NOENCRYPTION |
---|
16 | src/lib/krb/cr_tkt.c:50:#ifdef NOENCRYPTION |
---|
17 | src/lib/krb/decomp_tkt.c:23:#ifndef NOENCRYPTION |
---|
18 | src/lib/krb/mk_priv.c:78:#ifdef NOENCRYPTION |
---|
19 | src/lib/krb/mk_priv.c:95:#ifndef NOENCRYPTION |
---|
20 | src/lib/krb/mk_req.c:57:#ifdef NOENCRYPTION |
---|
21 | src/lib/krb/rd_priv.c:58:#ifdef NOENCRYPTION |
---|
22 | src/lib/krb/rd_priv.c:67:#ifdef NOENCRYPTION |
---|
23 | |
---|
24 | src/tests/fixprot.sh |
---|
25 | |
---|
26 | Modify src/util/imake.includes/config.Imakefile and src/config/common: |
---|
27 | make sure NOENCFLAG=-DNOENCRYPTION. |
---|
28 | Check for #ifdef NOENCRYPTION |
---|
29 | |
---|
30 | 4> modify src/lib/Makefile to remove reference to 'des' from subdirs. |
---|
31 | ditto src/tools/makeconfig, src/Makefile, src/configure.in for lib/des. |
---|
32 | |
---|
33 | 5> rebuild normally; make sure it builds. The software should work |
---|
34 | after this process, although it will be ppretty useless! |
---|