4 # Horrible hack to convert Funk dictionaries to FreeRADIUS ones.
6 # It won't convert everything, and the files still need to be
7 # edited afterwards, but it's a start.
9 # ./dct2fr foo.dct > dictionary.foo
11 # replace 'foo' with the real vendor name
12 # ./format.pl dictionary.foo
16 if (/^MACRO\s+([^ \t\(]+)\(t,s\)\s+26\s+\[vid=(\d+)\s+type1=\%t\%\s+len1=\+2\s+data=\%s\%/) {
20 print "VENDOR foo $2\n";
21 print "BEGIN-VENDOR foo\n";
24 # if (/^ATTRIBUTE\s+([^ \t]+)\s+$name\s*\((\d+),s+(\w+)\)/i) {
26 if (/^ATTRIBUTE\s+([^ \t]+)\s+$name\s*\((\d+)\s*,\s*(\w+)/i) {
27 print "ATTRIBUTE $1 $2 $3\n";
31 print "END-VENDOR foo\n";