summaryrefslogtreecommitdiff
path: root/source/n/nn/nn_6.7.3-10.diff
blob: 902da4815c16ff796001efbff6d8b2a0ded236b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
--- nn-6.7.3.orig/Makefile
+++ nn-6.7.3/Makefile
@@ -24,7 +24,7 @@
 #CPP =		/lib/cpp
 #CPP =		/usr/bin/cpp -no-cpp-precomp	# for MacOS X
 
-CFLAGS =	-O # -g -Wall -ansi -pedantic
+CFLAGS =	-O2 # -g -Wall -ansi -pedantic
 #CFLAGS =	-O # -w0 -g3			# for DEC
 
 MAKE =		make
@@ -61,6 +61,7 @@
 	sed -e '1,/MAKE WILL CUT HERE/d' \
 	    -e '/^#/d' \
 	    -e 's/^  */	/' \
+ 	    -e 's/^ /	/' \
 	    -e '/^[ \f	]$$/d' \
 	    -e '/^[ \/]*[*]/d' | \
 	sed -n -e '/^..*$$/p' > ymakefile
--- nn-6.7.3.orig/admin.c
+++ nn-6.7.3/admin.c
@@ -764,7 +764,7 @@
 		goto tr_failed;
 	    }
 	    log_entry('A', "Log Truncated");
-	    chmod(log_file, 0666);
+	    chmod(log_file, 0644);
 	}
 	return;
 
--- nn-6.7.3.orig/answer.c
+++ nn-6.7.3/answer.c
@@ -167,7 +167,7 @@
 
     ng = use_follow && news.ng_follow ? news.ng_follow : news.ng_groups;
     if (ng == NULL)
-	return;
+       return;
 
     fprintf(t, "Newsgroups: %s\n", ng);
     ed_line++;
--- nn-6.7.3.orig/aux.c
+++ nn-6.7.3/aux.c
@@ -507,7 +507,7 @@
 		prompt_line = Lines - 1;
 		prompt("To: ");
 		unset_raw();
-		if (getline(&cc[0], sizeof(cc)) == 0)
+		if (local_getline(&cc[0], sizeof(cc)) == 0)
 		    cc[0] = CR;
 		nn_raw();
 		if (cc[0] != CR)
--- nn-6.7.3.orig/aux.sh
+++ nn-6.7.3/aux.sh
@@ -282,7 +282,7 @@
     # call editor to enter at line $ED_LINE of work file
 
     case `basename "${EDITOR-vi}"` in
-    vi|emacs|emacsclient|pico|joe )
+    vi|emacs|emacsclient|pico|joe|jove|jv )
       # Berkeley vi display editor
       # GNU emacs display editor
       # pico display editor
@@ -484,6 +484,10 @@
   ?*)
     echo "To: $CC" > $TEMP
     sed -e "s/^To:/X-To:/" $FINAL >>$TEMP
+    echo "
+------
+This is a Cc: of an article on USENET sent to you for your convenience.
+------" >> $TEMP
     if $MAILER_PIPE ; then
       $MAILER < $TEMP
       x=$?
--- nn-6.7.3.orig/conf/s-linux.h
+++ nn-6.7.3/conf/s-linux.h
@@ -187,7 +187,7 @@
 
 /* #define	MAILX		"/usr/bin/mailx"	/* SV */
 /* #define	MAILX	"/usr/ucb/Mail"		/* BSD */
-#define	MAILX	"/bin/mailx"	/* linux */
+#define	MAILX	"/usr/bin/mailx"	/* linux */
 
 /*
  *	Define the maximum length of any pathname that may occur
@@ -225,7 +225,7 @@
  *	Define standard compiler flags here:
  */
 
-#define COMPILER_FLAGS -O2
+#define COMPILER_FLAGS -O2 -fno-strength-reduce -fomit-frame-pointer -pipe
 
 /*
  *	Define standard loader flags here:
--- nn-6.7.3.orig/config.h-dist
+++ nn-6.7.3/config.h-dist
@@ -23,6 +23,10 @@
 
 /************************* NOV CONFIGURATION ******************************
  *
+ *	Define USE_SPOOL if you want to be able to read directly on a news
+ *	spool. You may have to also correct NOV_DIRECTORY NOV_FILENAME and 
+ *	NEWS_DIRECTORY settings to match your local Spool-Configuration.
+ *
  *	Define NOV if you have access to .overview files in your news spool
  *	area and you want to use them rather than run nnmaster.
  *	If you use NNTP and your server is INN 1.4 or later with XOVER support
@@ -39,6 +43,9 @@
  *	NOV_DIRECTORY and NOV_FILENAME can normally be left undefined.
  */
 
+/* Optional */
+/* #define USE_SPOOL */
+
 #define NOV
 
 /* Optional */
--- nn-6.7.3.orig/debian/README.Debian
+++ nn-6.7.3/debian/README.Debian
@@ -0,0 +1,28 @@
+nn for Debian
+-------------
+
+* LOCAL SPOOL reading.
+
+  Reading directly on spool disabled, because we have to many
+  newsserver-setups which characteristics have to compiled into this package.
+
+  Joey (Martin Schulze <joey@debian.org>) has patched nn so it is able to use
+  both local spool and remote news servers.  To use the local spool variant
+  you have to ensure that the local hostname and the name of the news server
+  (see for /etc/news/server) are the same.  They are compared case
+  insensitive.
+
+  Reading on local spool only works if you use traditional spool.  To enable
+  it, you have to change the settings for USE_SPOOL and NOV* in
+  debian/config.h and then recompile.
+
+ -- Cord Beermann <cord@debian.org>  Thu, 21 Feb 2002 00:21:45 +0100
+
+* RFC1522-Patch pulled.
+
+  I removed the patch that tried to interpret iso-encodings in Subject/From
+  and so on, because RFC1522 is obsolete, the patch is ugly and unmaintained.
+
+  If you want it back drop me a note.
+
+ -- Cord Beermann <cord@debian.org>  Thu, 01 Oct 2005 23:37:19 +0200
--- nn-6.7.3.orig/debian/TODO
+++ nn-6.7.3/debian/TODO
@@ -0,0 +1,3 @@
+* RFC1522-Patch is only useful for reading. for writing there 
+  should be Content-*-Headers.
+* mktemp should be replaced by tmpfile.
--- nn-6.7.3.orig/debian/changelog
+++ nn-6.7.3/debian/changelog
@@ -0,0 +1,371 @@
+nn (6.7.3-10) unstable; urgency=medium
+
+  * add patch by Chris Lamb <lamby@debian.org> for reproducable builds.
+    (closes: #776764)
+  * bumb debhelper to 9
+
+ -- Cord Beermann <cord@debian.org>  Thu, 20 Aug 2015 13:39:10 +0200
+
+nn (6.7.3-9) unstable; urgency=low
+
+  * The DebConf-Release
+  * Bump Standard-Version to 3.9.6
+  * Reconfigured Hardening to make lintian happy
+
+ -- Cord Beermann <cord@debian.org>  Mon, 10 Aug 2015 21:22:13 +0200
+
+nn (6.7.3-8) unstable; urgency=low
+
+  * define MAXHOSTNAMELEN if not already set for the Hurd.
+
+ -- Cord Beermann <cord@debian.org>  Sun, 24 Jun 2012 10:35:12 +0200
+
+nn (6.7.3-7) unstable; urgency=low
+
+  * Fix a lintian-override thanks to: Jakub Wilk <jwilk@debian.org> 
+    (closes: #642239)
+
+ -- Cord Beermann <cord@debian.org>  Sun, 24 Jun 2012 10:03:38 +0200
+
+nn (6.7.3-6) unstable; urgency=low
+
+  * disabled DEB_BUILD_HARDENING_FORMAT
+
+ -- Cord Beermann <cord@debian.org>  Sat, 23 Jun 2012 20:34:59 +0200
+
+nn (6.7.3-5) unstable; urgency=low
+
+  * fix debian/rules to have a config.h when we need it.
+
+ -- Cord Beermann <cord@debian.org>  Sat, 23 Jun 2012 19:12:01 +0200
+
+nn (6.7.3-4) unstable; urgency=low
+
+  * Acknowledge NMUs (closes: #628348)
+  * Add Hardening
+  * Remove Template from watch-File
+  * Fixed duplicate changelog
+  * Bump Standard to 3.9.3 (no changes)
+
+ -- Cord Beermann <cord@debian.org>  Thu, 21 Jun 2012 23:18:07 +0200
+
+nn (6.7.3-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "FTBFS: ymakefile:12: *** commands commence before first target.
+    Stop.": add patch from Ubuntu / Andreas Moog:
+    - Escape backslashes in makefile template to fix FTBFS (LP: #756213)
+      (Closes: #628348)
+
+ -- gregor herrmann <gregoa@debian.org>  Tue, 25 Oct 2011 18:24:08 +0200
+
+nn (6.7.3-3) unstable; urgency=low
+
+  * add spanish Translation (closes: #570354)
+  * Acknowledge NMUs
+  * Make Lintian happy
+    + Fixed typos 
+    + moving nn-eu.po to eu.po
+    + Bumped Policy-version
+    + DH version 7
+
+ -- Cord Beermann <cord@debian.org>  Tue, 25 May 2010 17:44:40 +0200
+
+nn (6.7.3-2.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Rename local getline func to local_getline. (Closes: #552849, #548461).
+  * Add Italian debconf translation. (Closes: #504995).
+    + Thanks to Luca Monducci.
+
+ -- Barry deFreese <bdefreese@debian.org>  Sat, 31 Oct 2009 20:55:20 -0400
+
+nn (6.7.3-2.1) unstable; urgency=low
+
+  * Non-maintainer upload to fix bashism in build process.
+  * Modified prefix.c to check for a NULL value when generating shell
+    scripts headers (closes: #459108)
+  * Added nl.po and pt_BR.po contributed by Bart Cornelis and Eder L. Marques
+    (closes: #419733) (closes: #447150)
+  * Fixed text lines in the manpages with a leading dot.
+  * Converted debian copyright file to utf8.
+  * Updated menu file "Apps/Net" -> "Applications/Network/Communication".
+
+ -- Maximiliano Curia <maxy@gnuservers.com.ar>  Sat, 08 Mar 2008 16:07:37 -0200
+
+nn (6.7.3-2) unstable; urgency=medium
+
+  * debconf translations
+    + added ka.po and vi.po (closes: #399496) (sorry, Christian)
+  * no more changes, should be safe for release...
+
+ -- Cord Beermann <cord@debian.org>  Wed,  3 Jan 2007 22:34:53 +0100
+
+nn (6.7.3-1) unstable; urgency=low
+
+  * New upstream release (no significant changes)
+  * debconf translations
+    + added basque translation (closes: #331351)
+    + updated swedish translation (closes: #331351)
+    + updated russian translation (closes: #361657)
+    + added portugese translation (closes: #381633)
+  * Fix up broken templates/config/postinst files (closes: #335270)
+    (many thanks to  J S Bygott for figuring this out)
+  * Fix bashism (closes: #376430)
+  * bumped Standards-Version, no change.
+
+ -- Cord Beermann <cord@debian.org>  Sun, 19 Nov 2006 13:40:15 +0100
+
+nn (6.7.2-1) unstable; urgency=low
+
+  * New upstream (closes: #325055)
+    + fixed AUTO-Domain-problem (closes: #190599)
+  * Update debian/watch
+  * debconf translations
+    + added japanese (closes: #308748)
+    + changed german (closes: #311853)
+    + added vietnamese (closes: #316060)
+    + added french (closes: #299252)
+    + added czech (closes: #309078)
+    + added danish (closes: #323364)
+  * Bumped Standard-version
+  * added {misc:Depend}
+  * Make Lintian happy
+    + removed non-bashism from nn.config
+
+ -- Cord Beermann <cord@debian.org>  Sat,  1 Oct 2005 21:50:12 +0200
+
+nn (6.6.5-2) unstable; urgency=low
+
+  * Applied patch by  Martin Quinson <martin.quinson@imag.fr> for
+    gettext-based debconf templates (closes: #237443)
+  * Applied patch by  Andreas Jochens <aj@andaco.de> to let nn also
+    build with gcc-4.3 (closes: #265531)
+  * make lintian happy:
+    + fixed three manpages.
+    + fixed debian/menu
+    + added sendmail as alternative for mail-transport-agent
+  * bumped Standards-Version, no change.
+
+ -- Cord Beermann <cord@debian.org>  Sat, 26 Feb 2005 22:03:22 +0100
+
+nn (6.6.5-1) unstable; urgency=low
+
+  * New upstream release
+    - nnview no longer tries to connect to the NNTPSERVER
+    - DOMAIN can now be defined even if HIDDENNET isn't
+    - nn no longer segfaults if it reconnects during initial authentication
+  * added danish debconf-template (closes: #174796)
+  * closing old bug. Reporter didn't respond to question if his problem is
+    fixed. I think the problem (displaying errorcodes) is. (closes: #9356)
+
+ -- Cord Beermann <cord@debian.org>  Mon, 10 Feb 2003 16:05:00 +0100
+
+nn (6.6.4-1) unstable; urgency=low
+
+  * New upstream release
+    + fixes security problem. (closes: #150418)
+  * added /etc/news to the nn-dirs. (closes: #134002)
+  * added russian debconf-template (closes: #136601)
+  * removed apostrophe from description. (closes: #139730)
+
+ -- Cord Beermann <cord@debian.org>  Fri, 28 Jun 2002 19:50:10 +0200
+
+nn (6.6.2-5) unstable; urgency=low
+
+  * reactivated Digests, since it looks like it works again. 
+    (closes: #129654)
+
+ -- Cord Beermann <cord@debian.org>  Thu, 31 Jan 2002 23:41:10 +0100
+
+nn (6.6.2-4) unstable; urgency=low
+
+  * fixed a buffer-overflow in RfC1522-Patch. 
+    (Thanks to Elrond for the patch)
+  * added fix by Bob Hain <bob@me.umn.edu> to workaround HIDDENNET
+
+ -- Cord Beermann <cord@debian.org>  Fri,  2 Nov 2001 22:04:36 +0100
+
+nn (6.6.2-3) unstable; urgency=low
+
+  * disabled check for $MTA. Debian-Dependency will do this for us.
+    (closes: #116641)
+
+ -- Cord Beermann <cord@debian.org>  Tue, 23 Oct 2001 20:42:27 +0200
+
+nn (6.6.2-2) unstable; urgency=low
+
+  * fixed symlinks.
+  * added german-template to debconf (closes: #116471)
+  * removed old MANIFEST-File as we don't need it anymore for building.
+  * written man-page for nnbatch.
+
+ -- Cord Beermann <cord@debian.org>  Sun, 21 Oct 2001 12:07:06 +0200
+
+nn (6.6.2-1) unstable; urgency=low
+
+  * New upstream release
+  * finally Lintian-happy
+
+ -- Cord Beermann <cord@debian.org>  Fri, 19 Oct 2001 20:51:36 +0200
+
+nn (6.6.0-4) unstable; urgency=low
+
+  * making lintian happy.
+    - upstream changelog now correct.
+    - debconf removed from Build-dependency and added to dependency.
+    - changed odd 'Upstream Author(s)'
+    - nnbatch.1 gets undocumented-manpage.
+
+ -- Cord Beermann <cord@debian.org>  Wed,  3 Oct 2001 11:41:14 +0200
+
+nn (6.6.0-3) unstable; urgency=low
+
+  * moved Logfile to $USER/.nn (close a point out of the reopened #9356)
+  * reverted mkstemp back to mktemp.
+  * remove update.h on clean.
+  * Build-dependency changed from libncurses5-dev to libncurses-dev
+
+ -- Cord Beermann <cord@debian.org>  Wed,  3 Oct 2001 11:41:14 +0200
+
+nn (6.6.0-2) unstable; urgency=low
+
+  * removed -malign-{loops,jumps,functions} from Compiler-Flags. 
+    (closes: #114028)
+  * real fixing build problem with gcc-3.x. Programs which use different
+    meanings to Tabs and spaces have to die! (closes: #104956)
+
+ -- Cord Beermann <cord@debian.org>  Mon,  1 Oct 2001 11:32:10 +0200
+
+nn (6.6.0-1) unstable; urgency=low
+
+  * New Maintainer.
+  * Package rebuilt from scratch.
+  * New upstream release. changes include:
+    - support for NNTP AUTH. Can't find information XAUTHINFO GENERIC.
+      (closes: #9356)
+    - 'mailed to the moderator' added to aux-script. (closes: #54333)
+  * added RfC1522-patch by Kristian Koehntopp and Stefan Roerich
+  * added a patch by Daniel Merritt <merritt@highlander.cbnet.ns.ca> which
+    prevents nn from crashing if NNTPSERVER contains an unresolveable name.
+    (closes: #97074)
+  * disabled NOV, it causes different problems. People should read per NNTP or
+    have to recompile to read directly on spool. (closes: #84409, #105759)
+  * NMU fixes finally closed. (closes: #83855, #90457, #92105)
+  * guessed that the Bugreport from hppa-autobuilder could be this: fixed
+    build problem with gcc-3.x (fix found in news.software.nn by Neil W
+    Rickert <rickert+nn@cs.niu.edu>) (closes: #104956)
+    Please make sure that new Bugreports are more meaningful!
+  * Bug has disappeared (closes: #83442)
+
+ -- Cord Beermann <cord@debian.org>  Sat, 22 Sep 2001 21:11:46 +0200
+
+nn (6.5.1-7.2) unstable; urgency=low
+
+  * Added the missing build dependency on gawk.
+    (closes: #90457, #92105)
+  * Standards-Version: 3.1.1
+
+ -- Adrian Bunk <bunk@fs.tum.de>  Sun, 15 Apr 2001 00:54:44 +0200
+
+nn (6.5.1-7.1) unstable; urgency=low
+
+  * Non-maintainer upload
+  * Fix compilation with libncurses5-dev 5.2.20010310-2. Fixes: #83855
+  * Added Build-Depends on libncurses5-dev.
+  * Fixed menu file (lintian error).
+  * Added -isp to dpkg-gencontrol (lintian warning).
+  * Moved docs to /usr/share/doc and added code to postinst and prerm to
+    handle the /usr/doc symlinks (lintian error).
+
+ -- Paul Martin <pm@debian.org>  Sun, 18 Mar 2001 20:03:52 +0000
+
+nn (6.5.1-7) unstable; urgency=low
+
+  * The postinst script will now create /etc/news if it does not exist
+    (closes: Bug#49639)
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Fri, 12 Nov 1999 21:04:10 +0100
+
+nn (6.5.1-6) unstable; urgency=low
+
+  * Reverted patch for 6.5.1-5 since the bug was mistakenly taken care
+    of.  In our policy Section 2.3.8 talks about /etc/nntpserver but
+    section 4.6 talks about /etc/news/server.  It seems that the
+    reference to /etc/nntpserver was just left in by accident when policy
+    was updated to use /etc/news/server.  See also Bug#21875
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Tue, 20 Apr 1999 00:18:49 +0200
+
+nn (6.5.1-5) unstable; urgency=low
+
+  * Changed location for NNTP server to /etc/nntpserver (closes:
+    Bug#Bug#36135)
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Fri, 16 Apr 1999 10:18:15 +0200
+
+nn (6.5.1-4) frozen unstable; urgency=low
+
+  * Re-upload into frozen
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Sun,  8 Nov 1998 12:41:48 +0100
+
+nn (6.5.1-3) unstable; urgency=low
+
+  * Corrected menu file (closes: Bug#29119)
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Sat,  7 Nov 1998 18:05:00 +0100
+
+nn (6.5.1-2) frozen unstable; urgency=medium
+
+  * Reupload into frozen because the distribution was changed suddenly
+    *after* the last upload so it went into the wrong one.
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Tue,  3 Nov 1998 23:08:25 +0100
+
+nn (6.5.1-1) unstable; urgency=low
+
+  * New maintainer
+  * New upstream source (close: Bug#12973)
+  * New packaging scheme
+  * New menu file
+  * Updated Standards-Version
+  * New config.h, placed it into the debian directory instead of a set of
+    only half working sed rules
+  * Updated copyright file
+  * Moved tmp directory to /tmp (was: /var/tmp)
+  * Turned all insecure gets() into size-checking fgets() calls
+  * Some variables are now initialized with proper values
+  * Extracted <term.h> and placed a locally modified copy in the debian
+    directory
+  * Removed nnbatch
+  * Turned strcmp() into strcasecmp() for comparing the local hostname
+    with the nntp server.  This would turn even more machines into use
+    local spool files.
+  * Included old README since it still contains information
+  * Introduced NEWS_VAR_DIRECTORY alias news_var_directory to provide the
+    distinction between /usr/lib/news and /var/lib/news (closes: Bug#4181,
+    Bug#5296, Bug#5815, Bug#8092, Bug#12980)
+  * Reworked description (closes: Bug#18968)
+  * Removed absolute path to inews *sigh* (closes: Bug#14025)
+  * Reworked postinst (closes: Bug#12591)
+  * Added NULL-test to nntp_check(), thanks dark (closes: Bug#8093)
+  * Included sample init file (closes: Bug#7684, Bug#24235)
+  * Added patch from Franco Venturi <fventuri@mediaone.net> to be able to
+    work with more than 32k active newsgroups (closes: Bug#22024)
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Sun,  1 Nov 1998 02:35:48 +0100
+
+nn (6.5.0.b3.linux.1.1-1.1) unstable; urgency=low
+  
+  * Non-maintainer release.
+  * Libc6 compile.
+  * Updated from pre 2.0.0.0 standards.
+
+ -- Martin Mitchell <martin@debian.org>  Wed, 12 Nov 1997 21:44:07 +1100
+
+
+
+Local variables:
+mode: debian-changelog
+End:
--- nn-6.7.3.orig/debian/compat
+++ nn-6.7.3/debian/compat
@@ -0,0 +1 @@
+9
--- nn-6.7.3.orig/debian/config.h
+++ nn-6.7.3/debian/config.h
@@ -0,0 +1,441 @@
+/**************************** NN CONFIGURATION ***************************
+ *
+ *	Configuration file for nn.
+ *
+ *	You must edit this file to reflect your local configuration
+ *	and environment.
+ *
+ *	Before editing this file, read the licence terms in the README
+ *	file and the installation guidelines in the INSTALLATION file.
+ *
+ *	(c) Copyright 1990, Kim F. Storm.  All rights reserved.
+ */
+
+
+
+/*
+ * The Good Net-Keeping Seal of Approval folks seem to think it necessary to
+ * waste screen real estate with headers.  For such people, uncomment the
+ * following to change the default headers
+ */
+
+/* #define GNKSA	*/
+
+
+/************************* NOV CONFIGURATION ******************************
+ *
+ *	Define USE_SPOOL if you want to be able to read directly on a news
+ *	spool. You may have to also correct NOV_DIRECTORY NOV_FILENAME and 
+ *	NEWS_DIRECTORY settings to match your local Spool-Configuration.
+ *
+ *	Define NOV if you have access to .overview files in your news spool
+ *	area and you want to use them rather than run nnmaster.
+ *	If you use NNTP and your server is INN 1.4 or later with XOVER support
+ *	and is generating .overview files there, you can use NOV over NNTP. In
+ *	that case, make sure you define NNTP below as well.
+ *
+ *	If your NOV implementation doesn't have records for digests (none
+ *	that I know of do), you might want to define 'DO_NOV_DIGEST'.
+ *	This will cause nn to grab a digest article and split it apart
+ *	before anything has been selected to be read from that article.
+ *	'DO_NOV_DIGEST' is necessary if you want any digests (like
+ *	'comp.risks') to be automatically split.
+ *
+ *	NOV_DIRECTORY and NOV_FILENAME can normally be left undefined.
+ */
+
+/* Optional */
+/* #define USE_SPOOL */
+
+#define NOV
+
+/* Optional */
+#define DO_NOV_DIGEST
+
+/* Optional */
+/* #define NOV_DIRECTORY	"/usr/spool/news"	*/
+
+/* Optional */
+/* #define NOV_FILENAME		".overview"		*/
+
+
+/********************************** NNTP *********************************
+ *
+ *	Define NNTP to enable nntp support.  If you are not using NNTP,
+ *	just leave the following NNTP_* definitions as they are - they
+ *	will be ignored anyway.
+ */
+
+#define NNTP
+
+/*
+ *	Define NNTP_SERVER to the name of a file containing the name of the
+ *	nntp server (aka the newsserver you connect to).
+ *
+ *	If the file name does not start with a slash, it is relative to
+ *	LIB_DIRECTORY defined below.
+ */
+
+#define NNTP_SERVER	"/etc/news/server"
+
+/*
+ *  Define your local domain name.  If you leave this undefined, nn will
+ *  attempt to discover it.
+ *  See comment below on HIDDENNET.
+ */
+
+/* #define DOMAIN	"frobozz.bogus" */
+
+/*
+ *  If you define HIDDENNET, the hostname will not appear in the posting
+ *  data except on the path.  Items will be from user@DOMAIN (with
+ *  DOMAIN as defined above).  If you don't want this, comment it out.
+ */
+
+#define HIDDENNET
+
+
+/***************** OPERATING SYSTEM DEPENDENT DEFINITIONS *******************
+ *
+ *	Include the appropriate s- file for your system below.
+ *
+ *	If a file does not exist for your system, you can use
+ *	conf/s-template.h as a starting point for writing you own.
+ */
+
+#include "s-linux.h"
+
+/*
+ *	Define DEFAULT_PAGER as the initial value of the 'pager' variable.
+ *	nnadmin pipes shell command output though this command.
+ */
+
+/* #define DEFAULT_PAGER	"pg -n -s"	*/	/* System V */
+#define DEFAULT_PAGER		"sensible-pager"			/* bsd */
+
+/*
+ *	DEFAULT_PRINTER is the initial value of the 'printer' variable.
+ *	nn's :print command pipes text into this command.
+ */
+
+/* #define DEFAULT_PRINTER	"lp -s"		*/	/* System V */
+#define DEFAULT_PRINTER		"lpr -p -JNEWS"		/* bsd */
+
+
+/********************** MACHINE DEPENDENT DEFINITIONS **********************
+ *
+ *	Include the appropriate m- file for your system below.
+ *
+ *	If a file does not exist for your system, you can use
+ *	conf/m-template.h as a starting point for writing you own.
+ */
+
+#include "m-i80386.h"
+
+
+/***************************** OWNERSHIP ***************************
+ *
+ *	Specify owner and group for installed files and programs.
+ *
+ *	The nnmaster will run suid/sgid to this owner and group.
+ *
+ *	The only requirements are that the ownership allows the
+ *	nnmaster to READ the news related files and directories, and
+ *	the ordinary users to read the database and execute the nn*
+ *	programs.
+ *
+ *	Common choices are: (news, news) and (your uid, your gid)
+ */
+
+#define OWNER	"news"
+#define GROUP	"news"
+
+
+/**************************** LOCALIZATION ****************************
+ *
+ *	Specify where programs and files are installed.
+ *
+ *	BIN_DIRECTORY	 - the location of the user programs (mandatory)
+ *
+ *	LIB_DIRECTORY	 - the location of auxiliary programs and files.
+ *			   (mandatory UNLESS ALL of the following are defined).
+ *
+ *	MASTER_DIRECTORY - the location of the master program (on server)
+ *			   (= LIB_DIRECTORY if undefined)
+ *
+ *	CLIENT_DIRECTORY - the location of auxiliary programs (on clients)
+ *			   (= LIB_DIRECTORY if undefined)
+ *
+ *	HELP_DIRECTORY	 - the location of help files, online manual, etc.
+ *			   (= CLIENT_DIRECTORY/help if undefined)
+ *
+ *	CACHE_DIRECTORY	 - if NNTP is used, nn uses this central directory
+ *			   to store working copies of articles on the local
+ *			   system.  If not defined, it stores the articles
+ *			   in each user's ~/.nn directory.
+ *
+ *	TMP_DIRECTORY	 - temporary file storage.  Overriden by $TMPDIR.
+ *			   (= /var/tmp if undefined).
+ *
+ *	LOG_FILE	 - the location of nn's log file.
+ *			   (= $HOME/.nn/Log if undefined).
+ */
+
+#define BIN_DIRECTORY	"/usr/bin"
+#define LIB_DIRECTORY	"/usr/lib/nn"
+
+
+
+
+/*************************** MAIL INTERFACE *************************
+ *
+ *	Specify a mailer that accepts a letter WITH a header IN THE TEXT.
+ *
+ *	A program named 'recmail' program is normally delivered with
+ *	the Bnews system, or you can use sendmail -t if you have it.
+ *
+ *	The contrib/ directory contains two programs which you might
+ *	be able to use with a little tweaking.
+ */
+
+/* #define REC_MAIL	"/usr/lib/news/recmail"	*/	/* non-sendmail */
+#define REC_MAIL	"/usr/lib/sendmail -t"		/* sendmail */
+
+
+/*
+ *	nn needs to know the name of your host.
+ *	To obtain the host name it will use either of the 'uname' or
+ *	'gethostname' system calls as specified in the s-file included
+ *	above.
+ *
+ *	If neither 'uname' nor 'gethostname' is available, you must
+ *	define HOSTNAME to be the name of your host.  Otherwise, leave
+ *	it undefined (it will not be used anyway).
+ */
+
+/* #define HOSTNAME	"myhost"	*/
+
+/*
+ *	Define APPEND_SIGNATURE if you want nn to ask users to append
+ *	~/.signature to mail messages (reply/forward/mail).
+ *
+ *	If the mailer defined in REC_MAIL automatically includes .signature
+ *	you should not define this (it will fool people to include it twice).
+ *
+ *	I think 'recmail' includes .signature, but 'sendmail -t' doesn't.
+ */
+
+#define APPEND_SIGNATURE
+
+/*
+ *	BUG_REPORT_ADDRESS is the initial value of the bug-report-address
+ *	variable which is used by the :bug command to report bugs in
+ *	the nn software.
+ */
+
+#define BUG_REPORT_ADDRESS	"mtpins@nndev.org"
+
+
+/*************************** DOCUMENTATION ***************************
+ *
+ *	Specify directories for the user and system manuals
+ *
+ *	Adapt this to your local standards; the manuals will be named
+ *		$(MAN_DIR)/program.$(MAN_SECTION)
+ *
+ *	USER_MAN	- nn, nntidy, nngrep, etc.
+ *	SYS_MAN		- nnadmin
+ *	DAEMON_MAN	- nnmaster
+ */
+
+#define USER_MAN_DIR	"/usr/share/man/man1"
+#define USER_MAN_SECTION	"1"
+
+#define SYS_MAN_DIR	"/usr/share/man/man1"
+#define SYS_MAN_SECTION		"1m"
+
+#define DAEMON_MAN_DIR	"/usr/share/man/man8"
+#define DAEMON_MAN_SECTION	"8"
+
+
+/************************** LOCAL POLICY *****************************
+ *
+ *	Define STATISTICS if you want to keep a record of how much
+ *	time the users spend on news reading.
+ *
+ *	Sessions shorter than the specified number of minutes are not
+ *	recorded (don't clutter up the log file).
+ *
+ *	Usage statistics is entered into the $LOG_FILE with code U
+ */
+
+/* #define STATISTICS	5	*/	/* minutes */
+
+/*
+ *	Define ACCOUNTING if you want to keep accumulated accounting
+ *	based on the statistics in a separate 'acct' file.  In this
+ *	case, the accounting figures will be secret, and not be
+ *	written to the Log file.  And the users will not be able to
+ *	"decrease" their own account.
+ *
+ *	See account.h for optional cost calculation parameters.
+ */
+
+/* #define ACCOUNTING	*/
+
+/*
+ *	Define AUTHORIZE if you want to restrict the use of nn to
+ *	certain users or certain periods of the day.  Define both
+ *	this and ACCOUNTING if you want to impose a usage quota.
+ *
+ *	See account.h for implementing various access policies.
+ */
+
+/* #define AUTHORIZE	*/
+
+/*
+ *	Default folder directory
+ */
+
+#define FOLDER_DIRECTORY	"~/News"
+
+/*
+ *	Default length of authors name (in "edited" format).
+ *	Also size of "Name" field on the article menus.
+ *	The actual value used will be the larger of this and 1/5 the width
+ *	of the window.
+ */
+
+#define NAME_LENGTH	16
+
+/*
+ *	SIGN_TYPE is the program to be used to create digital signatures.
+ */
+
+#define SIGN_TYPE		"gpg"
+/* #define SIGN_TYPE		"pgp"		*/
+
+/*
+ *	If no "Lines:" header field is present, NN can be made to
+ *	count them itself.
+ */
+
+#define DONT_COUNT_LINES
+
+/*
+ *	PUT_TIMESTAMP_IN_SCRIPTS
+ *	Defining this causes the "inst" script to add identifying information
+ *	to the beginning of the shell scripts.
+ */
+
+#undef PUT_TIMESTAMP_IN_SCRIPTS
+
+/*
+ *	CONFIG_NUM_IN_VERSION
+ *	Defining this will make NN announce itself including the build number
+ *	like "NN version 6.7.x #12", rather than "NN version 6.7.x".
+ */
+
+/* #define CONFIG_NUM_IN_VERSION	*/
+
+/*
+ *	ART_GREP
+ *	Define this if you want to enable the "experimental" subject
+ *	body search code.  On the "G" menu, there will be two extra
+ *	choices: "b" body search unread, and "B" body search all.
+ *	Choose your pattern, and you will be presented with a merged group
+ *	containing the articles you chose.  There may still be bugs!
+ *	WARNING:
+ *	THIS WOULD BE *BAD* FOR NNTP SITES!  You don't want all your
+ *	users downloading the entire news database...
+ */
+
+/* #define ART_GREP	*/
+
+/*
+ *	CACHE_PURPOSE
+ *	Defining this makes NN cache the newsgroup/purpose list, sorted
+ *	in memory and use binary search to locate a group's purpose.
+ *	This can be a winner on systems with *everything* in their
+ *	newsgroups list.  Note that this will cause nn to always download
+ *	the newsgroup/purpose list.  This will increase startup time for nn
+ *	but is still a win for people who have show-purpose-mode=2.
+ *	Currently CACHE_PURPOSE and nnmaster don't work together,
+ *	so please leave this undefined unless you are using NOV.
+ */
+
+/* #define CACHE_PURPOSE	*/
+
+/*
+ * If you aren't running nnmaster you can stop here.
+ */
+
+/************************ NNMASTER CONFIGURATION *************************/
+
+/*********************** NETWORK DEPENDENT DEFINITIONS **********************
+ *
+ *	Define NETWORK_DATABASE if you share the database through NFS on
+ *	a network with different, non-compatible machines, e.g. SUNs and
+ *	VAXen, or SUN-3 and SUN-4, or if you are using different compilers
+ *	on the same architecture.
+ *
+ *	In a homogenous network, you can leave it undefined for higher
+ *	performance (no data conversion is needed).
+ */
+
+/* #define NETWORK_DATABASE	*/
+
+
+/**************************** DATABASE LOCATION **************************
+ *
+ *	Specify where the nn database should be installed.
+ *
+ *	If none of the following symbols are defined, the database will
+ *	be contained in the NEWS_DIRECTORY in a separate .nn directory for
+ *	master files and in files named .nnx and .nnd in each group's
+ *	spool directory.  To use this scheme, the OWNER specified above
+ *	must have write permission on the news spool directories.
+ *
+ *	If you access news via NNTP, you will probably always have to
+ *	give the database directory explicitly through DB_DIRECTORY
+ *	(and DB_DATA_DIRECTORY), since the normal news spool directories
+ *	are probably not available on the local system.
+ *	The exception may be if nnmaster runs directly on the nntp server.
+ *
+ *	To change the default behavior, you can define the following
+ *	symbols:
+ *
+ *	DB_DIRECTORY	   - the directory containing the master files.
+ *
+ *	DB_DATA_DIRECTORY  - the directory containing the per-group files
+ *			     (default is DB_DIRECTORY/DATA if undefined).
+ *
+ *	DB_LONG_NAMES	   - use group's name rather than number when
+ *			     building file names in DB_DATA_DIRECTORY.
+ *	     (The file system must support long file names!!)
+ */
+
+/* #define DB_DIRECTORY	"/usr/spool/nn"	*/
+
+
+/*************************** NEWS TRANSPORT **************************
+ *
+ *	Specify the location of your news programs and files
+ *	You only need to specify these if you are not
+ *	satisfied with the default settings.
+ *
+ *	NEWS_DIRECTORY		- The news spool directory.
+ *				  Default: /usr/spool/news
+ *
+ *	NEWS_LIB_DIRECTORY	- The news lib directory.
+ *				  Default: /usr/lib/news
+ *
+ *	RMGROUP_PATH		- The location of the rmgroup program.
+ *				  Default: NEWS_LIB_DIR/{rm,del}group
+ */
+
+/* #define NEWS_DIRECTORY	"/usr/spool/news"	*/
+/* #define NEWS_LIB_DIRECTORY	"/usr/lib/news"		*/
+
+/************************ CONFIGURATION COMPLETED ************************/
+
--- nn-6.7.3.orig/debian/control
+++ nn-6.7.3/debian/control
@@ -0,0 +1,29 @@
+Source: nn
+Section: news
+Priority: optional
+Maintainer: Cord Beermann <cord@debian.org>
+Build-Depends: debhelper (>= 9), gawk, libncurses-dev
+Standards-Version: 3.9.6
+Homepage: http://www.nndev.org
+
+Package: nn
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: sendmail | mail-transport-agent
+Suggests: ispell, gnupg
+Provides: news-reader
+Description: Heavy-duty USENET news reader (curses-based client)
+ The motto of nn is its expanded name, which is "No News is good
+ news, but nn is better", and the nn newsreader is designed to let you
+ minimize the amount of time you spend reading news (or, more
+ realistically, to allow you to follow even more newsgroups :-).
+ .
+ Nn allows you to quickly select articles of interest and skip the
+ rest.  It also supports efficient article killing and selection of
+ articles by author and subject.
+ .
+ This version of nn reads news from a news server via NNTP (the
+ Network News Transfer Protocol), and can make use of your NNTP
+ server's NOV database, if configured.  You must have a news server
+ available - large sites usually provide a site-wide server.  (For
+ those familiar with 'nn', this is a client-only version.)
--- nn-6.7.3.orig/debian/copyright
+++ nn-6.7.3/debian/copyright
@@ -0,0 +1,60 @@
+This package was debianized by Cord Beermann <cord@debian.org> on
+Sat, 22 Sep 2001 21:11:46 +0200.
+
+This package was originally put together by Mike Coleman
+<coleman@cstp.umkc.edu>, then taken over by Martin Schulze <joey@debian.org>
+and is now maintained by Cord Beermann <cord@debian.org>.
+
+It was downloaded from http://www.nndev.org
+
+Author(s): Kim F. Storm, Peter Wemm, and Michael T Pins.
+
+Actual Keeper of the sources is Michael T. Pins <mtpins@nndev.org>
+
+Copyright:
+
+Copyright (c) 1989, 1990 by Kim Fabricius Storm.  All rights reserved.
+
+Not derived from licensed software except as stated below.
+
+Permission is granted to anyone to use, modify, and reuse this
+software for any purpose on any computer system, and to redistribute
+it freely, subject to the following restrictions:
+
+1. The author is not responsible for the consequences of use of this
+   software, no matter how awful, even if they arise from defects in it.
+
+2. The origin of this software must not be misrepresented, either by
+   explicit claim or by omission.
+
+3. Altered versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+
+The following code modules have been incorporated into nn, and the
+above copyright notice does not apply to these modules; they include
+their own copyright notices (or have none):
+
+regexp.c:       Copyright (c) 1986 by University of Toronto.
+                Written by Henry Spencer.
+
+unshar.c:       No copyright notice.
+                Written by K. Greer, S. Shafer, and M. Mauldin
+
+decode.c:       Derived from a modified Berkeley original posted on
+                USENET.
+
+fullname.c:     Copyright (c) 1986 by Rick Adams.
+                Derived from the Bnews distribution.
+
+contrib/*:      Various copyright notices.
+                The software available in the contrib/ directory was sent
+                to me for inclusion in the nn distribution, because
+                the authors think it might be useful to other nn users.
+                I have included it *as is*.
+
+
+I've added a patch by Kristian Köhntopp <kris@schulung.netuse.de> and Stefan
+Röhrich <sr@stefan.lake.de>, see PATCH.RFC1522. It adds support for different
+ISO-Charsets as iso-8859-1.
+
+
--- nn-6.7.3.orig/debian/dirs
+++ nn-6.7.3/debian/dirs
@@ -0,0 +1,5 @@
+etc/news
+usr/bin
+usr/lib/nn
+usr/share/man/man1
+usr/share/man/man8
--- nn-6.7.3.orig/debian/docs
+++ nn-6.7.3/debian/docs
@@ -0,0 +1,3 @@
+README
+INSTALLATION
+
--- nn-6.7.3.orig/debian/menu
+++ nn-6.7.3/debian/menu
@@ -0,0 +1,4 @@
+?package(nn):\
+	needs="text" section="Applications/Network/Communication"\
+	title="nn" longtitle="No news is good news, but nn is better"\
+	command="/usr/bin/nn"
--- nn-6.7.3.orig/debian/nn.config
+++ nn-6.7.3/debian/nn.config
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+# We need debconf.
+. /usr/share/debconf/confmodule
+
+go=0
+
+if [ ! -f /etc/news/server ]
+ then
+#        if [ ! -d /etc/news ]
+#	then
+#		install -d -m 755 -o news -g news /etc/news
+#	fi
+	db_input high nn/ask-newsserver || true
+	db_go
+fi
+
+exit 0
--- nn-6.7.3.orig/debian/nn.templates
+++ nn-6.7.3/debian/nn.templates
@@ -0,0 +1,5 @@
+Template: nn/ask-newsserver
+Type: string
+Default: news
+_Description: NNTP server to use:
+ Enter the fully qualified host name of the news server to use for reading.
--- nn-6.7.3.orig/debian/nnbatch.1
+++ nn-6.7.3/debian/nnbatch.1
@@ -0,0 +1,44 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH NN 1 "20011021"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+nnbatch \- nn in batch mode.
+.SH SYNOPSIS
+.B nnbatch
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B nnbatch
+command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+\fBnnbatch\fP is a program that starts 
+\fBnn\fP in batch mode. 
+
+.SH OPTIONS
+This program takes the same options as 
+\fBnn\fP. 
+For a description, see the 
+\fBnn\fP manpage.
+
+.SH SEE ALSO
+.BR nn (1)
+
+.SH AUTHOR
+This manual page was written by Cord Beermann <cord@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
--- nn-6.7.3.orig/debian/po/POTFILES.in
+++ nn-6.7.3/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] nn.templates
--- nn-6.7.3.orig/debian/po/cs.po
+++ nn-6.7.3/debian/po/cs.po
@@ -0,0 +1,28 @@
+# Czech translation of nn templates
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn 6.6.5-2\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-10 23:38-0800\n"
+"PO-Revision-Date: 2005-05-14 11:33+0200\n"
+"Last-Translator: Martin Sin <martin.sin@seznam.cz>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr "Použít NNTP server:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Zadejte plně kvalifikovaný název hostitelského počítače, který se má použít "
+"pro získávání news příspěvků."
--- nn-6.7.3.orig/debian/po/da.po
+++ nn-6.7.3/debian/po/da.po
@@ -0,0 +1,43 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans#
+#    Developers do not need to manually edit POT or PO files.
+# Claus Hindsgaul <claus_h@image.dk>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn debconf\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-10 23:38-0800\n"
+"PO-Revision-Date: 2005-08-16 11:34+0200\n"
+"Last-Translator: Claus Hindsgaul <claus_h@image.dk>\n"
+"Language-Team: Danish <dansk@klid.dk>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.9.1\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr "NNTP-server, der skal benyttes:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "Enter the fully qualified host name of the news server to use for reading."
+msgstr "Angiv det fulde vrtsnavn p den nyhedsserver, der skal lses fra."
+
+#~ msgid "What news server (NNTP server) should I use for reading?"
+#~ msgstr "Hvilken nyhedsserver (NNTP) skal jeg bruge til at lse fra?"
+
+#~ msgid "Enter its full name:"
+#~ msgstr "Indtast dens fulde navn:"
+
--- nn-6.7.3.orig/debian/po/de.po
+++ nn-6.7.3/debian/po/de.po
@@ -0,0 +1,40 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans#
+#    Developers do not need to manually edit POT or PO files.
+# Erik Schanze <mail@erikschanze.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn_6.6.5-2_de\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-10 23:38-0800\n"
+"PO-Revision-Date: 2005-06-03 21:59+0200\n"
+"Last-Translator: Erik Schanze <mail@erikschanze.de>\n"
+"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.9.1\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr "verwendeter NNTP-Server:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Geben Sie den vollständigen Rechnernamen des News-Servers ein, den Sie zum "
+"Lesen verwenden."
+
--- nn-6.7.3.orig/debian/po/es.po
+++ nn-6.7.3/debian/po/es.po
@@ -0,0 +1,51 @@
+# nn po-debconf translation to Spanish
+# Copyright (C) 2009 Software in the Public Interest
+# This file is distributed under the same license as the nn package.
+#
+# Changes:
+#   - Initial translation
+#       Ricardo Fraile <rikr@esdebian.org>, 2009
+#
+# Traductores, si no conocen el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+#       info -n '(gettext)PO Files'
+#       info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor lean antes de traducir
+# los siguientes documentos:
+#
+#   - El proyecto de traducción de Debian al español
+#     http://www.debian.org/intl/spanish/
+#     especialmente las notas y normas de traducción en
+#     http://www.debian.org/intl/spanish/notas
+#
+#   - La guía de traducción de po's de debconf:
+#     /usr/share/doc/po-debconf/README-trans
+#     o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn 6.7.3-2.1\n"
+"Report-Msgid-Bugs-To: nn@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-27 18:36+0200\n"
+"PO-Revision-Date: 2009-10-16 10:52+0200\n"
+"Last-Translator: Ricardo Fraile <rikr@esdebian.org>\n"
+"Language-Team: Debian l10n Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "Servidor NNTP a utilizar:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr "Escriba el nombre completo del servidor de noticias a utilizar para la lectura."
+
--- nn-6.7.3.orig/debian/po/eu.po
+++ nn-6.7.3/debian/po/eu.po
@@ -0,0 +1,37 @@
+# translation of nn-eu.po to librezale
+# Piarres Beobide <pi@beobide.net>, 2006.
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#    Developers do not need to manually edit POT or PO files.
+msgid ""
+msgstr ""
+"Project-Id-Version: nn-eu\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-11-17 07:53+0100\n"
+"PO-Revision-Date: 2006-11-17 21:53+0100\n"
+"Last-Translator: Piarres Beobide <pi@beobide.net>\n"
+"Language-Team: librezale <librezale@librezale.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "Erabiliko den NNTP zerbitzaria:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "Enter the fully qualified host name of the news server to use for reading."
+msgstr "Idatzi irakurketarako erabiliko den berri-talde zerbitzariaren guztiz baliozko ostalari izena (fqhn)."
+
--- nn-6.7.3.orig/debian/po/fr.po
+++ nn-6.7.3/debian/po/fr.po
@@ -0,0 +1,38 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#    Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-10 23:38-0800\n"
+"PO-Revision-Date: 2005-03-06 10:28+0200\n"
+"Last-Translator: Eric Madesclair <eric-m@wanadoo.fr>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr "Nom d'hte du serveur NNTP:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Veuillez indiquer le nom complet du serveur utilis pour lire les nouvelles."
--- nn-6.7.3.orig/debian/po/it.po
+++ nn-6.7.3/debian/po/it.po
@@ -0,0 +1,31 @@
+# nn po-debconf translation to italian
+# Copyright (C) 2004 Software in the Public Interest
+# This file is distributed under the same license as the nn package.
+# Luca Monducci <luca.mo@tiscali.it>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn 6.7.3 debconf\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-03-17 04:43+0100\n"
+"PO-Revision-Date: 2008-11-08 13:00+0100\n"
+"Last-Translator: Luca Monducci <luca.mo@tiscali.it>\n"
+"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "Server NNTP da usare:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Inserire il nome host completamente qualificato del server news da usare per "
+"la lettura."
--- nn-6.7.3.orig/debian/po/ja.po
+++ nn-6.7.3/debian/po/ja.po
@@ -0,0 +1,38 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#    Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: nn 6.6.5-2\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-10 23:38-0800\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: NOSHIRO Shigeo <noshiro@debian.org>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=EUC-JP\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr "$B;HMQ$9$k(BNNTP server"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr "$B%K%e!<%9$rFI$`$?$a$K;HMQ$9$k%K%e!<%9%5!<%P$N(BFQDN$B$rF~$l$F2<$5$$(B"
--- nn-6.7.3.orig/debian/po/ka.po
+++ nn-6.7.3/debian/po/ka.po
@@ -0,0 +1,29 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: nn_6.6.5-2_ka\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-11-17 07:53+0100\n"
+"PO-Revision-Date: 2006-11-17 21:05+0400\n"
+"Last-Translator: Aiet Kolkhi <aietkolkhi@gmail.com>\n"
+"Language-Team: Georgian <ka@aiet.qartuli.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1;plural=0;\n"
+"X-Poedit-Language: Georgian\n"
+"X-Poedit-Country: GEORGIA\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "გამოსაყენებელი NNTP სერვერი:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"შეიყვანეთ news-სერვერის სრული სახელი, რომლის გამოყენებაც წასაკითხად გსურთ."
--- nn-6.7.3.orig/debian/po/nl.po
+++ nn-6.7.3/debian/po/nl.po
@@ -0,0 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2007-01-13 19:55+0100\n"
+"PO-Revision-Date: 2007-04-06 13:16+0100\n"
+"Last-Translator: Bart Cornelis <cobaco@skolelinux.no>\n"
+"Language-Team: debian-l10n-dutch <debian-l10n-dutch@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Dutch\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "Te gebruiken NNTP-server:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "Enter the fully qualified host name of the news server to use for reading."
+msgstr "Wat is de volledig gekwalificeerde domeinnaam (FQDN) van de nieuwsserver die u gebruikt om nieuws te lezen?"
+
--- nn-6.7.3.orig/debian/po/pt.po
+++ nn-6.7.3/debian/po/pt.po
@@ -0,0 +1,27 @@
+# Portuguese translation for nn's debconf messages
+# Luísa Lourenço <kikentai@gmail.com>, 2006
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-10 23:38-0800\n"
+"PO-Revision-Date: 2006-06-03 15:18+0000\n"
+"Last-Translator: Luísa Lourenço <kikentai@gmail.com>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr "Servidor de NNTP a usar:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr "Insira o nome do host do servidor de news a usar para ler."
--- nn-6.7.3.orig/debian/po/pt_BR.po
+++ nn-6.7.3/debian/po/pt_BR.po
@@ -0,0 +1,32 @@
+# nn Brazilian Portuguese translation
+# Copyright (c) 2007 nn's PACKAGE COPYRIGHT HOLDER
+# This file is distributed under the same license as the nn package.
+# Eder L. Marques <frolic@debian-ce.org>, 2007.
+#
+msgid ""
+msgstr "pt_BR utf-8\n"
+"Project-Id-Version: nn_6.7.3-2\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2007-01-13 19:55+0100\n"
+"PO-Revision-Date: 2007-10-05 01:47-0300\n"
+"Last-Translator: Eder L. Marques <frolic@debian-ce.org>\n"
+"Language-Team: l10n Portuguese <debian-l10n-portuguese@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "Servidor NNTP a ser usado:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Informe o nome de máquina completamente qualificado do servidor de notícias "
+"a ser usado para leitura."
+
--- nn-6.7.3.orig/debian/po/ru.po
+++ nn-6.7.3/debian/po/ru.po
@@ -0,0 +1,39 @@
+# translation of nn_6.7.2-1_ru.po to Russian
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans#
+#    Developers do not need to manually edit POT or PO files.
+# Yuri Kozlov <kozlov.y@gmail.com>, 2006.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nn_6.7.2-1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-11-17 07:53+0100\n"
+"PO-Revision-Date: 2006-04-09 14:21+0300\n"
+"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.9.1\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr "Сервер NNTP:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Укажите полное имя сервера, который будет использоваться для чтения новостей."
--- nn-6.7.3.orig/debian/po/sv.po
+++ nn-6.7.3/debian/po/sv.po
@@ -0,0 +1,38 @@
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+# Developers do not need to manually edit POT or PO files.
+# , fuzzy
+# 
+# 
+msgid ""
+msgstr ""
+"Project-Id-Version: nn 6.6.5-2\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-11-17 07:53+0100\n"
+"PO-Revision-Date: 2005-10-04 04:36+0200\n"
+"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
+"Language-Team: Swedish <sv@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "NNTP-server att anvnda:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Ange det fullt kvalificerade vrdnamnet till news-servern som anvnds fr "
+"lsning."
--- nn-6.7.3.orig/debian/po/templates.pot
+++ nn-6.7.3/debian/po/templates.pot
@@ -0,0 +1,38 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#    Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-10 23:38-0800\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid "NNTP server to use:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../nn.templates:4
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
--- nn-6.7.3.orig/debian/po/vi.po
+++ nn-6.7.3/debian/po/vi.po
@@ -0,0 +1,31 @@
+# Vietnamese translation for nn.
+# Copyright © 2006 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2005-2006.
+# 
+msgid ""
+msgstr ""
+"Project-Id-Version: nn 6.6.5-2\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-11-17 07:53+0100\n"
+"PO-Revision-Date: 2006-11-19 15:31+1030\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: LocFactoryEditor 1.6fc1\n"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid "NNTP server to use:"
+msgstr "Máy phục vụ NNTP cần dùng:"
+
+#. Type: string
+#. Description
+#: ../nn.templates:1001
+msgid ""
+"Enter the fully qualified host name of the news server to use for reading."
+msgstr ""
+"Hãy nhập tên máy khả năng đầy đủ của máy phục vụ tin tức cần sử dụng để đọc."
--- nn-6.7.3.orig/debian/postinst
+++ nn-6.7.3/debian/postinst
@@ -0,0 +1,52 @@
+#! /bin/sh
+# postinst script for nn
+#
+# see: dh_installdeb(1)
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see /usr/share/doc/packaging-manual/
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+	# setting /etc/news/server
+	db_get nn/ask-newsserver || true
+	echo $RET > /etc/news/server
+	db_stop
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- nn-6.7.3.orig/debian/rules
+++ nn-6.7.3/debian/rules
@@ -0,0 +1,87 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+#export DH_COMPAT=4
+
+# Hardening
+export DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	cp -f debian/config.h .
+
+	touch configure-stamp
+
+build-arch: build-stamp
+build-indep: build-stamp
+build: build-stamp
+build-stamp: configure-stamp
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#/usr/bin/docbook-to-man debian/nn.sgml > nn.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	# Add here commands to clean up after the build process.
+	[ ! -f config.h ] || $(MAKE) clean
+	rm -f build-stamp configure-stamp config.h update.h
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+	# Add here commands to install the package into debian/nn.
+	DESTDIR=$(CURDIR)/debian/nn ./inst n
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	dh_installcron
+	dh_installman debian/nnbatch.1
+	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- nn-6.7.3.orig/debian/source/format
+++ nn-6.7.3/debian/source/format
@@ -0,0 +1 @@
+1.0
--- nn-6.7.3.orig/debian/watch
+++ nn-6.7.3/debian/watch
@@ -0,0 +1,4 @@
+# Site		Directory		Pattern			Version	Script
+#ftp.nndev.org	/pub/nn-6.6	nn-(.*)\.tar\.Z		debian	uupdate
+version=3
+ftp://ftp.nndev.org/pub/nn-6.7/nn-(.*)\.tar\.Z debian uupdate
--- nn-6.7.3.orig/format.awk
+++ nn-6.7.3/format.awk
@@ -16,7 +16,7 @@
 
 	printf("From: %s\nSubject:", progname);
 	if ($2 == "NAME") {
-		getline
+		local_getline
 		for (i = 2; i <= NF; i++) printf(" %s", $i);
 		printf("\n\n")
 		print
@@ -73,7 +73,7 @@
 
 	printf("\n")
 
-	getline; linebuf = $0
+	local_getline; linebuf = $0
 	indent = "     "
 	curcol = indcol = 5
 	if (length(linebuf) >= 5) {
--- nn-6.7.3.orig/global.c
+++ nn-6.7.3/global.c
@@ -312,12 +312,6 @@
     help_directory = mk_file_name(lib_directory, "help");
 #endif
 
-#ifdef LOG_FILE
-    log_file = LOG_FILE;
-#else
-    log_file = mk_file_name(LIB_DIRECTORY, "Log");
-#endif
-
     if (who_am_i == I_AM_MASTER || who_am_i == I_AM_SPEW)
 	return 0;
 
@@ -339,6 +333,12 @@
 
     organization = getenv("ORGANIZATION");
 
+#ifdef LOG_FILE
+    log_file = LOG_FILE;
+#else
+    log_file = mk_file_name(nn_directory, "Log");
+#endif
+
     return 0;
 }
 
@@ -1186,6 +1186,22 @@
 #endif
 }
 
+#ifdef NEED_STRDUP
+char *strdup(const char *s)
+{
+    char *t   = NULL;
+    int   len = 0;
+
+    if (!s)
+	return NULL;
+
+    len = strlen(s)+1;
+    t   = newstr(len);
+    strncpy(t, s, len);
+    return t;
+}
+#endif
+
 /* Should really have some sort of configure file and use strdup().. */
 char           *
 strsave(char *s)
@@ -1307,12 +1323,12 @@
 }
 
 /*
- *	getline - gets a line from stdin
+ *	local_getline - gets a line from stdin
  *			returns the length of the line
  */
 
 int
-getline(char *line, int max)
+local_getline(char *line, int max)
 {
     if (fgets(line, max, stdin) == NULL)
 	return 0;
--- nn-6.7.3.orig/global.h
+++ nn-6.7.3/global.h
@@ -42,6 +42,19 @@
 
 /* misc macros */
 
+#ifdef __GNUC__
+#define INLINE inline
+#else
+#define INLINE
+#endif
+
+
+#define HEXDIGIT(c) ( \
+    ((c) >= '0' && (c) <= '9') ? ((c)-'0') : \
+    (((c) >= 'A' && (c) <= 'F') ? ((c) - 'A' + 10) : \
+     (((c) >= 'a' && (c) <= 'f') ? ((c) - 'a' + 10) : 0)) \
+    )
+
 #define fl fflush(stdout)
 
 #ifdef CONTROL_
@@ -258,7 +271,7 @@
 char           *strsave(char *);
 char           *str3save(char *, char *, char *);
 char           *fgetstr(FILE *);
-int             getline(char *, int);
+int             local_getline(char *, int);
 extern char    *tmp_directory;
 extern char    *nntp_cache_dir;
 #endif				/* _NN_GLOBAL_H */
--- nn-6.7.3.orig/inst.sh
+++ nn-6.7.3/inst.sh
@@ -60,11 +60,11 @@
 	fi
 fi
 
-set $RECMAIL
-if [ ! -f "$1" ]
-then
-	echo ERROR: Mailer program $RECMAIL not found.
-fi
+#set $RECMAIL
+#if [ ! -f "$1" ]
+#then
+#	echo ERROR: Mailer program $RECMAIL not found.
+#fi
 ) > ErrorCheck
 
 if [ -s ErrorCheck ]
@@ -246,69 +246,69 @@
 
 bin)
 	echo
-	if [ ! -d "$BIN"/. ]
+	if [ ! -d "$DESTDIR/$BIN"/. ]
 	then
-		echo Directory $BIN does not found!
+		echo Directory $DESTDIR/$BIN does not found!
 		exit 1
 	fi
 
-	echo Installing user programs in $BIN
+	echo Installing user programs in $DESTDIR/$BIN
 
-	if [ -f $BIN/nn ]
+	if [ -f $DESTDIR/$BIN/nn ]
 	then
 	     (
-		cd $BIN
+		cd $DESTDIR/$BIN
 		mv nn nn.old
-		rm -f $BIN_PROG $BIN_LINK
+		rm -f $BIN_PROG $DESTDIR/$BIN_LINK
 	     )
 	fi
 
 	for prog in $BIN_PROG
 	do
-		./inst copy 755 $BIN $prog
+		./inst copy 755 $DESTDIR/$BIN $prog
 	done
 
 	for link in $BIN_LINK
 	do
-		ln $BIN/nn $BIN/$link
-		echo $link linked to nn
+		ln -s nn $DESTDIR/$BIN/$link
+		echo $link symlinked to nn
 	done
 
-	if [ -f $BIN/nnacct ] ; then
-		chmod 4755 $BIN/nnacct
+	if [ -f $DESTDIR/$BIN/nnacct ] ; then
+		chmod 4755 $DESTDIR/$BIN/nnacct
 		echo nnacct is setuid ${OWNER}.
 	fi
 	;;
 
 aux)
 	echo
-	./inst mkdir $LIB 755 || exit 1
+	./inst mkdir $DESTDIR/$LIB 755 || exit 1
 
-	echo Installing auxiliary programs in $LIB
+	echo Installing auxiliary programs in $DESTDIR/$LIB
 
 	for prog in $LIB_PROG
 	do
-		./inst copy 755 $LIB $prog
+		./inst copy 755 $DESTDIR/$LIB $prog
 	done
 
-	./mkprefix conf > ${LIB}/conf
+	./mkprefix conf > $DESTDIR/${LIB}/conf
 	grep "^#" config.h |
-	sed -e '/_MAN_/d' -e 's/[ 	]*\/\*.*$//' >> ${LIB}/conf
-	./inst chmod 644 ${LIB}/conf
+	sed -e '/_MAN_/d' -e 's/[ 	]*\/\*.*$//' >> $DESTDIR/${LIB}/conf
+	./inst chmod 644 $DESTDIR/${LIB}/conf
 	;;
 
 help)
-	./inst mkdir $HELP 755 || exit 1
+	./inst mkdir $DESTDIR/$HELP 755 || exit 1
 
 	echo
-	echo Installing help files in $HELP
+	echo Installing help files in $DESTDIR/$HELP
 
 	cd help
 	for h in *
 	do
 		cd ..
-		./cvt-help < help/$h > $HELP/$h
-		./inst chmod 644 $HELP/$h
+		./cvt-help < help/$h > $DESTDIR/$HELP/$h
+		./inst chmod 644 $DESTDIR/$HELP/$h
 		echo $h
 		cd help
 	done
@@ -327,32 +327,32 @@
 	} |
 	while read DIR SECT SRC
 	do
-		if [ -d "$DIR"/. ]
+		if [ -d "$DESTDIR/$DIR"/. ]
 		then
 			for i in man/*$SRC
 			do
 				MAN=`basename ${i} $SRC`
-				NEW=$DIR/${MAN}.$SECT
+				NEW=$DESTDIR/$DIR/${MAN}.$SECT
 				sed -e '/^\.TH /s/6.7/'${PL}'/' $i > $NEW
 				./inst chmod 644 $NEW
 				echo $MAN in $NEW
 			done
 		else
-			echo $DIR not found or not writeable
+			echo $DESTDIR/$DIR not found or not writeable
 		fi
 	done
 	;;
 
 online)
-	./inst mkdir $HELP 755 || exit 1
+	./inst mkdir $DESTDIR/$HELP 755 || exit 1
 
 	MAN=$HELP/Manual
 
 	echo
-	echo "Formatting online manual $MAN"
+	echo "Formatting online manual $DESTDIR/$MAN"
 	echo ".... (continues in background) ...."
 
-	rm -f $MAN
+	rm -f $DESTDIR/$MAN
 
 	(
 	sed 	-e 's/\\f[BPI]//g' \
@@ -362,9 +362,9 @@
 		-e '/^\.if/d' -e '/^\.ta/d' -e '/^\.nr/d' \
 		-e '/^\.in/d' -e 's/^\.[BI] //' \
 		`ls -1 man/*.? man/*.??` |
-	${AWK} -f format.awk - > $MAN
+	${AWK} -f format.awk - > $DESTDIR/$MAN
 
-	./inst chmod 644 $MAN
+	./inst chmod 644 $DESTDIR/$MAN
 	) &
 	;;
 
@@ -502,9 +502,9 @@
 
 done
 
-if [ -f $LOG ]
+if [ -f $DESTDIR/$LOG ]
 then
-	chmod 666 $LOG
+	chmod 666 $DESTDIR/$LOG
 fi
 
 if $PAUSE
--- nn-6.7.3.orig/man/nn.1.nnmaster
+++ nn-6.7.3/man/nn.1.nnmaster
@@ -2554,7 +2554,7 @@
 bit width of the character set (7 for "us-ascii" and "unknown", 8 for the
 "iso-8859-\fIX\fP" sets).
 .sp 0.5v
-The value of this variable also determines wether \fInn\fP allows
+The value of this variable also determines whether \fInn\fP allows
 8-bit characters in the body of articles being posted and letters
 being mailed (unless the value is "unknown", in which case this is
 determined by the value of the \fBdata-bits\fP variable).
@@ -2708,7 +2708,7 @@
 section for more details.
 .sp 0.5v
 If the \fBcharset\fP has value "unknown", the value of \fBdata-bits\fP
-also determines wether \fInn\fP allows 8-bit characters in the body of
+also determines whether \fInn\fP allows 8-bit characters in the body of
 articles being posted and letters being mailed (this is normally
 determined directly by the \fBcharset\fP variable).
 .TP
@@ -5104,7 +5104,7 @@
 sequence.  The group itself (if it exists) is not included.
 Examples: "comp.", "comp.unix.".
 .TP
-.group.name
+\&.group.name
 Append the groups whose name ends with the specified name to the
 sequence.  Example: ".test".
 .TP
--- nn-6.7.3.orig/man/nn.1.nov
+++ nn-6.7.3/man/nn.1.nov
@@ -15,10 +15,10 @@
 [ \fIoptions\fP ] [ \fInewsgroup\fP  |  +\fIfolder\fP  |  \fIfile\fP ]...
 .br
 .B nn
--g [ -r ]
+\-g [ \-r ]
 .br
 .B nn
--a0 [ \fInewsgroup\fP ]...
+\-a0 [ \fInewsgroup\fP ]...
 .SH DESCRIPTION
 Net news is a world-wide information exchange service covering
 numerous topics in science and every day life.  Topics are organized
@@ -99,18 +99,18 @@
 Collect only articles which contain the string
 .I WORD
 in their subject (case is ignored).  This is normally combined with
-the -x and -m options to find all articles on a specific subject.
+the \-x and \-m options to find all articles on a specific subject.
 .TP
 \-\fBs/\fP\fIregexp\fP
 Collect only articles whose subject matches the regular expression
 .IR regexp .
-This is normally combined with the -x and -m options to find all
+This is normally combined with the \-x and \-m options to find all
 articles on a specific subject.
 .TP
 \-\fBn\fP\fIWORD\fP or \-\fBn/\fP\fIregexp\fP
 Same as \-\fBs\fP except that it matches on the sender's name
 instead of the article's subject.
-This is normally combined with the -x and -m options to find all
+This is normally combined with the \-x and \-m options to find all
 articles from a specific author.  It cannot be mixed with the
 \-\fBs\fP option!
 .TP
@@ -120,10 +120,10 @@
 .TP
 \-\fBm\fP
 Merge all articles into one `meta group' instead of showing
-them one group at a time.  This is normally used together with the -x
-and -s options to get all the articles on a specific subject presented
+them one group at a time.  This is normally used together with the \-x
+and \-s options to get all the articles on a specific subject presented
 on a single menu (when you don't care about which group they belong
-to).  When -m is used, no articles will be marked as read.
+to).  When \-m is used, no articles will be marked as read.
 .TP
 \-\fBx\fP[\fIN\fP]
 Present (or scan) all (or the last \fIN\fP) unread as well as
@@ -135,7 +135,7 @@
 Read/scan unsubscribed groups also.  Most useful when looking for
 a specific subject in \fBall\fP groups, e.g.
 .nf
-	nn -mxX -sSubject all
+	nn \-mxX \-sSubject all
 .fi
 .TP
 \fInews.group\fP  or  \fIfile\fP  or  \fI+folder\fP
@@ -2378,7 +2378,7 @@
 assignment can be used:
 .sp 0.5v
 .nf
-	set included-mark  \e\ \e#\e\ \ \ # blank-#-blank
+	set included-mark  \e\ \e#\e\ \ \ # blank\-#\-blank
 .fi
 .sp 0.5v
 To include a backslash in the string, it must be duplicated `\e\e'.
@@ -2570,7 +2570,7 @@
 bit width of the character set (7 for "us-ascii" and "unknown", 8 for the
 "iso-8859-\fIX\fP" sets).
 .sp 0.5v
-The value of this variable also determines wether \fInn\fP allows
+The value of this variable also determines whether \fInn\fP allows
 8-bit characters in the body of articles being posted and letters
 being mailed (unless the value is "unknown", in which case this is
 determined by the value of the \fBdata-bits\fP variable).
@@ -2718,7 +2718,7 @@
 section for more details.
 .sp 0.5v
 If the \fBcharset\fP has value "unknown", the value of \fBdata-bits\fP
-also determines wether \fInn\fP allows 8-bit characters in the body of
+also determines whether \fInn\fP allows 8-bit characters in the body of
 articles being posted and letters being mailed (this is normally
 determined directly by the \fBcharset\fP variable).
 .TP
@@ -2843,7 +2843,7 @@
 normally give a message about this and sleep for a number of seconds
 specified by this variable.  Setting this variable to zero will still
 make \fInn\fP give the message without sleeping afterwards.  Setting
-it to -1 will cause the message not to be shown at all.
+it to \-1 will cause the message not to be shown at all.
 .TP
 \fBflow-control\fP	(boolean, default true)
 When set, \fInn\fP will turn on xon/xoff flow-control before writing
@@ -2872,7 +2872,7 @@
 append the article in the proper format.  If this variable is not set,
 folders are assumed to be in the format specified via the
 \fBmmdf-format\fP and \fBmail-format\fP variables, and articles are
-saved in that format without checking.  Otherwise, the \fB*-format\fP
+saved in that format without checking.  Otherwise, the \fB*\-format\fP
 variables are only used to determine the format for \fInew\fP folders.
 .TP
 \fBfolder-save-file\fP \fIfile\fP	(string, default not set)
@@ -2978,7 +2978,7 @@
 are very difficult to comprehend.  Let's all use the standard folks!
 (And hack inews if it is the 50% rule that bothers you.)
 .TP
-\fBinews\fP \fIshell-command\fP	(string, default "INEWS_PATH -h")
+\fBinews\fP \fIshell-command\fP	(string, default "INEWS_PATH \-h")
 The program which is invoked by \fInn\fP to deliver an article to the
 news transport.  The program will be given a complete article
 including a header containing the newsgroups to which the article is
@@ -3171,7 +3171,7 @@
 .fi
 .TP
 \fBmerge-report-rate\fP \fIrate\fP	(integer, default 1)
-When \fInn\fP is invoked with the -m option (directly or via
+When \fInn\fP is invoked with the \-m option (directly or via
 \fInngrap\fP), a status report of the merging process is displayed and
 updated on the screen every \fIrate\fP seconds.  The report contains
 the time used so far and an estimate of the time needed to complete
@@ -3194,7 +3194,7 @@
 \fBmonitor\fP		(boolean, default false)
 When set, \fInn\fP will show
 .I all
-characters in the received messages using a "cat -v" like format.
+characters in the received messages using a "cat \-v" like format.
 Otherwise, only the printable characters are shown (default).
 .TP
 \fBmotd\fP		(boolean, default true)
@@ -3224,8 +3224,8 @@
 \&.newsrc is the only way to recognize it as an old group:
 .sp 0.5v
 \fB0\fP)  Ignore groups which are not in \&.newsrc.  This will obviously
-include new groups, and therefore you must explictly add any new
-groups that you care about (by editting the \fI.newsrc\fP file, or
+include new groups, and therefore you must explicitly add any new
+groups that you care about (by editing the \fI.newsrc\fP file, or
 using the \fBG\fP menu command and then subscribing to the group).
 When \fBNNTP\fP is being used, this setting prevents the \fIactive.times\fP
 data from being read from the server; this can be helpful
@@ -3349,7 +3349,7 @@
 This is the pager used by the \fB:admin\fP command (and \fInnadmin\fP)
 when it executes certain commands, e.g. grepping in the Log file.
 .TP
-\fBpatch-command\fP \fIshell-command\fP	(string, default "patch -p0")
+\fBpatch-command\fP \fIshell-command\fP	(string, default "patch \-p0")
 This is the command which is invoked by the \fB:patch\fP command.
 .TP
 \fBpost-distribution\fP \fIwords\fP	(string, default see below)
@@ -3418,7 +3418,7 @@
 .B print
 command.  It should include an option which prevents the spooler from
 echoing a job-id or similar to the terminal to avoid problems with
-screen handling (e.g. lp -s on System V).
+screen handling (e.g. lp \-s on System V).
 .TP
 \fBquery-signature\fP		(boolean, default ...)
 Will cause \fInn\fP to require confirmation before appending
@@ -3452,7 +3452,7 @@
 	4:  If any references use layout 0, else layout 1.
 .fi
 .TP
-\fBre-layout-read\fP \fIN\fP	(integer, default -1)
+\fBre-layout-read\fP \fIN\fP	(integer, default \-1)
 When the \fBheader-lines\fP variable is not set, or contains the "*"
 field specifier, a line similar to the menu line will be used as the
 header of the article in reading mode, including the sender's name and
@@ -3795,7 +3795,7 @@
 \fBuse-editor-line\fP		(boolean, default true)
 Most editors accept arguments of the form:
 .nf
-	editor [-arguments] +n filename
+	editor [\-arguments] +n filename
 .fi
 where editor is the name of the editor, and n is the line number to put the
 cursor upon entering the file.  If use-editor-line is false, it will not
@@ -4023,9 +4023,9 @@
 as the global init file.  The list of init files must
 \fInot\fP be separated from the \fB\-I\fP option by blanks, and it
 must be the first option.  Example:  The default behaviour corresponds
-to using -I,init (first the global file, then the file ~/.nn/init).
+to using \-I,init (first the global file, then the file ~/.nn/init).
 The global \fIsetup\fP file is still read as the first init file
-independently of the -I option used.
+independently of the \-I option used.
 .TP
 \-\fBk\fP	{\fBtoggle kill\fP}
 Do not [do] perform automatic kill and selection of articles.
@@ -4044,7 +4044,7 @@
 .TP
 \-\fBm\fP	{\fIno corresponding variable\fP}
 Merge all articles into one `meta group' instead of showing
-them one group at a time.  When -m is used, no articles will be marked
+them one group at a time.  When \-m is used, no articles will be marked
 as read.
 .TP
 \-\fBn\fP\fIWORD\fP
@@ -4099,7 +4099,7 @@
 Read/scan unsubscribed groups also.  Most useful when looking for
 a specific subject in all groups, e.g.
 .br
-   nn -mxX -sSubject all
+   nn \-mxX \-sSubject all
 .br
 .SH MACRO DEFINITIONS
 Practically any combination of commands and key strokes can be defined
@@ -4900,7 +4900,7 @@
 unset the flow-control variable if the tty is a pseudo-tty, the
 following conditional can be used:
 .nf
-	on [ -n "`tty | grep ttyp`" ]
+	on [ \-n "`tty | grep ttyp`" ]
 		unset flow-control
 	end
 .fi
@@ -5021,7 +5021,7 @@
 .nf
 	\fBon entry\fP comp.sources* alt.sources
 		:set cross-post on   # set before collection
-		:local auto-read-mode-limit -1   # set before showing menu
+		:local auto-read-mode-limit \-1   # set before showing menu
 		::unset cross-post   # set after collection
 	\fBend\fP
 .fi
@@ -5139,7 +5139,7 @@
 sequence.  The group itself (if it exists) is not included.
 Examples: "comp.", "comp.unix.".
 .TP
-.group.name
+\&.group.name
 Append the groups whose name ends with the specified name to the
 sequence.  Example: ".test".
 .TP
--- nn-6.7.3.orig/man/nnadmin.1m
+++ nn-6.7.3/man/nnadmin.1m
@@ -1,4 +1,4 @@
-.TH NNADMIN 1M "Release 6.6"
+.TH NNADMIN 1m "Release 6.6"
 .\" (c) Copyright 1988, 1990, Kim F. Storm.  All rights reserved.
 .UC 4
 .SH NAME
@@ -32,7 +32,7 @@
 argument will be used as a series of key-strokes which are interpreted
 exactly as if they were typed in from the keyboard in interactive
 mode.  For example, to stop the \fInnmaster\fP, the following
-invokation of nnadmin can be used:
+invocation of nnadmin can be used:
 .br
 	\fInnadmin\fP MK
 .br
@@ -451,7 +451,7 @@
 .TP
 initialized
 .br
-The time when the database was last rebuild using \fInnmaster\fP -I.
+The time when the database was last rebuild using \fInnmaster\fP \-I.
 .TP
 last_scan, last_size
 .br
@@ -619,7 +619,7 @@
 can use \fInnadmin\fP to send messages to the \fInnmaster\fP.
 However, to send a wakeup signal to the master, anybody can run
 .br
-	\fInnmaster\fP -w
+	\fInnmaster\fP \-w
 .SH BUGS
 The user interface is completely out of line with the rest of the
 \fInn\fP family, and the way to run \fInnadmin\fP in the
--- nn-6.7.3.orig/man/nncheck.1
+++ nn-6.7.3/man/nncheck.1
@@ -5,7 +5,7 @@
 nncheck \- check for unread articles
 .SH SYNOPSIS
 .B nncheck
-[ -Q -r -t ]  [ -f format ]
+[ \-Q \-r \-t ]  [ \-f format ]
 .SH DESCRIPTION
 .I nncheck
 will report if there are some articles on the system which you have not read.
@@ -54,13 +54,13 @@
 .TP
 \&\-\fBf\fP \fIformat\fP
 Output the number of unread articles using the specified format.  The
-format is a text that may contain the following %-escapes:
+format is a text that may contain the following %\-escapes:
 .sp 0.5v
 .DT
 .ta 1i 2i
 .\"ta 1 10 20
 .nf
-	\fB%-code\fP	\fBresulting output\fP
+	\fB%\-code\fP	\fBresulting output\fP
 .sp 0.5v
 	%u	"\fIuuu\fP unread articles"
 	%g	"\fIggg\fP groups"
--- nn-6.7.3.orig/man/nngrab.1
+++ nn-6.7.3/man/nngrab.1
@@ -11,7 +11,7 @@
 contain an instance of \fIkeyword\fP.  \fInngrab\fP is a fast
 equivalent for:
 .sp 0.5v
-	nn -mxX -s/\fIkeyword\fP all
+	nn \-mxX \-s/\fIkeyword\fP all
 .LP
 For example,
 .sp 0.5v
--- nn-6.7.3.orig/man/nngrep.1
+++ nn-6.7.3/man/nngrep.1
@@ -59,7 +59,7 @@
 You can use this to read a specific subset of news groups with
 \fInn\fP; for example
 .br
-	nn `nngrep -sp source`
+	nn `nngrep \-sp source`
 .SH LONG LISTING
 A \fIlong\fP listing of the matched groups can be requested with the
 \fB\-l\fP option.  It will include the following information:
--- nn-6.7.3.orig/man/nnmaster.8
+++ nn-6.7.3/man/nnmaster.8
@@ -13,7 +13,7 @@
 \fBnnmaster\fP \-\fBl\fP [ "\fIlock message\fP" ]
 .br
 \fBnnmaster\fP [ \fIoptions\fP ] [ \fIgroups\fP ]
-.br.
+.br
 \fBnnmaster\fP \-\fBF\fP [ \fIoptions\fP ] [ \fIgroups\fP ]
 .SH DESCRIPTION
 .I nnmaster
@@ -28,7 +28,7 @@
 .I nnmaster
 daemon:
 .sp 0.5v
-	$master/nnmaster -l -r -C
+	$master/nnmaster \-l \-r \-C
 .sp 0.5v
 where $master is the MASTER_DIRECTORY defined during configuration
 of \fInn\fP.
@@ -69,7 +69,7 @@
 to be collected.  For example, to collect everything but rec and misc,
 use the following command:
 .br
-	\fInnmaster\fP -r !rec !misc ""
+	\fInnmaster\fP \-r !rec !misc ""
 .br
 If the empty argument had been omitted, nothing would be collected,
 since the presence of any \fIgroups\fP arguments causes \fInnmaster\fP
@@ -79,14 +79,14 @@
 different sets of groups at different intervals or under different
 conditions:
 .br
-	\fInnmaster\fP -B -O14 rec misc sci -LBO -u
+	\fInnmaster\fP \-B \-O14 rec misc sci \-LBO \-u
 .br
-	\fInnmaster\fP !rec !misc !sci "" -u
+	\fInnmaster\fP !rec !misc !sci "" \-u
 .sp 0.5v
 Example 2: The group arguments are used in the given sequence, e.g. to
 leave out comp.sys, but still collect comp.sys.ibm.pc, use the command:
 .br
-	\fInnmaster\fP -r comp.sys.ibm.pc !comp.sys ""
+	\fInnmaster\fP \-r comp.sys.ibm.pc !comp.sys ""
 .sp 0.5v
 The use of the \-\fBu\fP option in the first example is essential,
 since each of the commands will update the active file time stamp
@@ -330,7 +330,7 @@
 3, this will produce a compact but still very informative trace of the
 collection or expire process directly on the terminal.  This is most
 useful when doing the first collection of articles after initializing
-the database with -I.  If \fIN\fP is 2 or 3, a trace of the NNTP
+the database with \-I.  If \fIN\fP is 2 or 3, a trace of the NNTP
 traffic is written to a file nnmaster.log in the TMP directory. This
 option disables \-\fBr\fP.
 .TP
@@ -455,7 +455,7 @@
 running because it may add new groups to the file.  After editing the
 GROUPS file, the command
 .br
-	\fInnmaster\fP -G
+	\fInnmaster\fP \-G
 .br
 must be run before restarting the \fInnmaster\fP to parse and verify
 the new GROUPS file.
--- nn-6.7.3.orig/man/nnstats.1m
+++ nn-6.7.3/man/nnstats.1m
@@ -1,4 +1,4 @@
-.TH NNSTATS 1M "Release 6.6"
+.TH NNSTATS 1m "Release 6.6"
 .\" (c) Copyright 1988, 1990, Kim F. Storm.  All rights reserved.
 .UC 4
 .SH NAME
@@ -32,9 +32,9 @@
 that date only is calculated and printed.
 .SH FILES
 .DT
-.ta \w'.../Log'u+3m
+.ta \w'\&../Log'u+3m
 .\"ta 0 20
-.../Log	The log file
+\&../Log	The log file
 .DT
 .SH SEE ALSO
 nn(1), nnusage(1M), nnadmin(1M), nnmaster(8)
--- nn-6.7.3.orig/man/nnusage.1m
+++ nn-6.7.3/man/nnusage.1m
@@ -1,4 +1,4 @@
-.TH NNUSAGE 1M "Release 6.6"
+.TH NNUSAGE 1m "Release 6.6"
 .\" (c) Copyright 1988, 1990, Kim F. Storm.  All rights reserved.
 .UC 4
 .SH NAME
@@ -23,9 +23,9 @@
 truly report the actual time spent on news reading.
 .SH FILES
 .DT
-.ta \w'.../Log'u+3m
+.ta \w'\&../Log'u+3m
 .\"ta 0 20
-.../Log	The log file
+\&../Log	The log file
 .DT
 .SH SEE ALSO
 nn(1), nncheck(1), nngoback(1), nngrep(1), nntidy(1)
--- nn-6.7.3.orig/menu.c
+++ nn-6.7.3/menu.c
@@ -811,7 +811,7 @@
 	}
 
 	if (again > 1)
-	    sprintf(delayed_msg, "Showing %d articles again", again);
+	    sprintf(delayed_msg, "Showing %ld articles again", again);
     } while (again);
 
     return MC_READGROUP;
--- nn-6.7.3.orig/newsrc.c
+++ nn-6.7.3/newsrc.c
@@ -1629,7 +1629,7 @@
 	newsrc_update_freq = 0;
 	dump_newsrc();
 	dump_select();
-	tprintf("NOTICE: Original files are saved with %s extention\n", bak_suffix);
+	tprintf("NOTICE: Original files are saved with %s extension\n", bak_suffix);
     }
 }
 
--- nn-6.7.3.orig/nntp.c
+++ nn-6.7.3/nntp.c
@@ -37,6 +37,10 @@
 #define NNTPCACHE	10
 #endif
 
+#ifndef MAXHOSTNAMELEN 
+#define MAXHOSTNAMELEN 255
+#endif
+
 #ifdef NNTP
 #include "nntp.h"
 #include "patchlevel.h"
@@ -915,7 +919,11 @@
 	server_real_name = hp->h_name;
     else
 	nn_exitmsg(1, "NNTPSERVER is invalid");
-    use_nntp = (strcmp(host_name, server_real_name) != 0);
+#ifdef USE_SPOOL
+    use_nntp = (strcasecmp(host, server_real_name) != 0);
+#else /* USE_SPOOL */
+    use_nntp = 1;
+#endif /* USE_SPOOL */
 
     if (use_nntp) {
 	freeobj(news_active);
--- nn-6.7.3.orig/prefix.c
+++ nn-6.7.3/prefix.c
@@ -73,7 +73,11 @@
     fprintf(f, "ACTIVE=%s/active\n", news_lib_directory);
 #endif
 
-    fprintf(f, "LOG=%s\n", log_file);
+	if (log_file == NULL) {
+		fprintf(f, "LOG=null\n");
+	} else {
+    	fprintf(f, "LOG=%s\n", log_file);
+	}
     fprintf(f, "TMP=${TMPDIR-%s}\n", tmp_directory);
     fprintf(f, "DB=%s\n", db_directory);
     fprintf(f, "BIN=%s\n", bin_directory);
--- nn-6.7.3.orig/xmakefile
+++ nn-6.7.3/xmakefile
@@ -77,16 +77,16 @@
 
 SHELL = /bin/sh
 
-MASTER = master.o collect.o expire.o proto.o hostname.o \
-	global.o options.o active.o db.o nntp.o \
+MASTER = master.o collect.o expire.o proto.o hostname.o \\
+	global.o options.o active.o db.o nntp.o \\
 	pack_date.o pack_name.o pack_subject.o news.o digest.o
 
-NN = 	nn.o admin.o proto.o global.o options.o db.o nntp.o \
-	init.o variable.o term.o keymap.o macro.o regexp.o \
-	menu.o more.o newsrc.o group.o folder.o dir.o aux.o \
-	sort.o articles.o sequence.o kill.o active.o fullname.o \
-	answer.o reroute.o hostname.o save.o unshar.o decode.o execute.o \
-	pack_date.o pack_name.o pack_subject.o news.o digest.o match.o \
+NN = 	nn.o admin.o proto.o global.o options.o db.o nntp.o \\
+	init.o variable.o term.o keymap.o macro.o regexp.o \\
+	menu.o more.o newsrc.o group.o folder.o dir.o aux.o \\
+	sort.o articles.o sequence.o kill.o active.o fullname.o \\
+	answer.o reroute.o hostname.o save.o unshar.o decode.o execute.o \\
+	pack_date.o pack_name.o pack_subject.o news.o digest.o match.o \\
 	chset.o printconf.o
 #ifdef NOV
 NOVOBJ = awksplit.o hash.o hdbm.o libnov.o split.o
@@ -189,75 +189,75 @@
 * dependencies
 *
 
-account.o:	account.c account.h config.h global.h execute.h options.h \
+account.o:	account.c account.h config.h global.h execute.h options.h \\
 		proto.h
-active.o:	active.c active.h config.h data.h global.h db.h master.h \
+active.o:	active.c active.h config.h data.h global.h db.h master.h \\
 		newsrc.h
-admin.o:	admin.c admin.h config.h data.h global.h db.h execute.h \
+admin.o:	admin.c admin.h config.h data.h global.h db.h execute.h \\
 		group.h keymap.h nn.h proto.h nn_term.h
-answer.o:	answer.c answer.h config.h data.h global.h aux.h db.h \
-		fullname.h group.h hostname.h init.h keymap.h kill.h \
-		match.h news.h nn.h nntp.h options.h printconf.h regexp.h \
+answer.o:	answer.c answer.h config.h data.h global.h aux.h db.h \\
+		fullname.h group.h hostname.h init.h keymap.h kill.h \\
+		match.h news.h nn.h nntp.h options.h printconf.h regexp.h \\
 		reroute.h nn_term.h variable.h
-articles.o:	articles.c articles.h config.h data.h global.h db.h keymap.h \
+articles.o:	articles.c articles.h config.h data.h global.h db.h keymap.h \\
 		kill.h match.h news.h newsrc.h regexp.h sort.h nn_term.h
-aux.o:		aux.c aux.h config.h data.h global.h chset.h execute.h \
+aux.o:		aux.c aux.h config.h data.h global.h chset.h execute.h \\
 		keymap.h news.h nn.h nntp.h reroute.h nn_term.h
 chset.o:	chset.c chset.h config.h
-collect.o:	collect.c collect.h config.h global.h db.h news.h digest.h \
+collect.o:	collect.c collect.h config.h global.h db.h news.h digest.h \\
 		master.h news.h nntp.h pack_date.h pack_name.h pack_subject.h
-db.o:		db.c db.h config.h data.h global.h answer.h articles.h \
-		keymap.h libnov.h nntp.h nn_term.h pack_date.h pack_name.h \
+db.o:		db.c db.h config.h data.h global.h answer.h articles.h \\
+		keymap.h libnov.h nntp.h nn_term.h pack_date.h pack_name.h \\
 		pack_subject.h hash.h newsoverview.h
-decode.o:	decode.c decode.h config.h data.h global.h keymap.h save.h \
+decode.o:	decode.c decode.h config.h data.h global.h keymap.h save.h \\
 		nn_term.h
-digest.o:	digest.c digest.h config.h data.h global.h debug.h keymap.h \
+digest.o:	digest.c digest.h config.h data.h global.h debug.h keymap.h \\
 		news.h pack_name.h nn_term.h
-dir.o:		dir.c dir.h config.h data.h global.h articles.h keymap.h \
+dir.o:		dir.c dir.h config.h data.h global.h articles.h keymap.h \\
 		nn_term.h
-execute.o:	execute.c execute.h config.h data.h global.h folder.h \
+execute.o:	execute.c execute.h config.h data.h global.h folder.h \\
 		keymap.h nn_term.h
-expire.o:	expire.c expire.h config.h global.h db.h keymap.h master.h \
+expire.o:	expire.c expire.h config.h global.h db.h keymap.h master.h \\
 		nntp.h nn_term.h
-folder.o:	folder.c folder.h config.h data.h global.h articles.h \
-		db.h digest.h dir.h keymap.h match.h menu.h news.h \
-		pack_date.h pack_name.h pack_subject.h regexp.h save.h \
+folder.o:	folder.c folder.h config.h data.h global.h articles.h \\
+		db.h digest.h dir.h keymap.h match.h menu.h news.h \\
+		pack_date.h pack_name.h pack_subject.h regexp.h save.h \\
 		sort.h nn_term.h
 fullname.o:	fullname.c fullname.h config.h data.h global.h
-global.o:	global.c data.h global.h config.h execute.h keymap.h nn.h \
+global.o:	global.c data.h global.h config.h execute.h keymap.h nn.h \\
 		patchlevel.h nn_term.h update.h
-group.o:	group.c group.h config.h data.h global.h articles.h db.h \
-		folder.h keymap.h macro.h match.h menu.h newsrc.h nn.h \
+group.o:	group.c group.h config.h data.h global.h articles.h db.h \\
+		folder.h keymap.h macro.h match.h menu.h newsrc.h nn.h \\
 		nntp.h regexp.h sort.h nn_term.h variable.h
 hostname.o:	hostname.c hostname.h config.h
-init.o:		init.c init.h config.h data.h global.h articles.h admin.h \
-		answer.h db.h execute.h folder.h group.h hostname.h \
-		keymap.h kill.h macro.h menu.h newsrc.h nn.h printconf.h \
+init.o:		init.c init.h config.h data.h global.h articles.h admin.h \\
+		answer.h db.h execute.h folder.h group.h hostname.h \\
+		keymap.h kill.h macro.h menu.h newsrc.h nn.h printconf.h \\
 		save.h sequence.h sort.h nn_term.h variable.h
 keymap.o:	keymap.c keymap.h config.h data.h global.h init.h nn_term.h
-kill.o:		kill.c kill.h config.h data.h global.h db.h keymap.h \
+kill.o:		kill.c kill.h config.h data.h global.h db.h keymap.h \\
 		match.h menu.h regexp.h nn_term.h
-macro.o:	macro.c macro.h config.h data.h global.h db.h init.h \
+macro.o:	macro.c macro.h config.h data.h global.h db.h init.h \\
 		keymap.h menu.h nn_term.h variable.h
-master.o:	master.c master.h config.h global.h active.h collect.h db.h \
+master.o:	master.c master.h config.h global.h active.h collect.h db.h \\
 		digest.h execute.h expire.h news.h nntp.h options.h proto.h
 match.o:	match.c match.h config.h data.h global.h regexp.h
-menu.o:		menu.c menu.h config.h data.h global.h articles.h \
-		answer.h db.h execute.h folder.h group.h init.h keymap.h \
-		kill.h macro.h match.h more.h newsrc.h regexp.h save.h \
+menu.o:		menu.c menu.h config.h data.h global.h articles.h \\
+		answer.h db.h execute.h folder.h group.h init.h keymap.h \\
+		kill.h macro.h match.h more.h newsrc.h regexp.h save.h \\
 		sort.h nn_term.h 
-more.o:		more.c more.h config.h data.h global.h articles.h answer.h \
-		db.h execute.h folder.h group.h init.h keymap.h kill.h \
+more.o:		more.c more.h config.h data.h global.h articles.h answer.h \\
+		db.h execute.h folder.h group.h init.h keymap.h kill.h \\
 		macro.h match.h menu.h news.h regexp.h save.h nn_term.h
 news.o:		news.c news.h config.h data.h global.h digest.h more.h nntp.h
-newsrc.o:	newsrc.c newsrc.h config.h data.h global.h articles.h \
+newsrc.o:	newsrc.c newsrc.h config.h data.h global.h articles.h \\
 		active.h db.h keymap.h nn.h options.h regexp.h nn_term.h
-nn.o:		nn.c nn.h config.h data.h global.h admin.h answer.h \
-		articles.h db.h execute.h folder.h group.h init.h keymap.h \
-		kill.h libnov.h macro.h match.h menu.h newsrc.h nntp.h \
+nn.o:		nn.c nn.h config.h data.h global.h admin.h answer.h \\
+		articles.h db.h execute.h folder.h group.h init.h keymap.h \\
+		kill.h libnov.h macro.h match.h menu.h newsrc.h nntp.h \\
 		options.h proto.h regexp.h sequence.h nn_term.h
-nntp.o:		nntp.c nntp.h config.h data.h global.h fullname.h hash.h \
-		hostname.h keymap.h libnov.h nn_term.h patchlevel.h \
+nntp.o:		nntp.c nntp.h config.h data.h global.h fullname.h hash.h \\
+		hostname.h keymap.h libnov.h nn_term.h patchlevel.h \\
 		newsoverview.h
 options.o:	options.c options.h config.h data.h global.h nn.h variable.h
 pack_date.o:	pack_date.c pack_date.h config.h data.h global.h
@@ -268,21 +268,21 @@
 proto.o:	proto.c proto.h config.h data.h global.h hostname.h
 regexp.o:	regexp.c regexp.h config.h data.h global.h keymap.h nn_term.h
 reroute.o:	reroute.c reroute.h config.h data.h global.h
-save.o:		save.c save.h config.h data.h global.h db.h decode.h \
+save.o:		save.c save.h config.h data.h global.h db.h decode.h \\
 		digest.h folder.h keymap.h more.h news.h nn_term.h unshar.h
-sequence.o:	sequence.c sequence.h config.h data.h global.h db.h \
+sequence.o:	sequence.c sequence.h config.h data.h global.h db.h \\
 		debug.h keymap.h macro.h nn.h nn_term.h variable.h
 sort.o:		sort.c sort.h config.h data.h global.h  articles.h
-term.o:		term.c nn_term.h config.h data.h global.h execute.h \
+term.o:		term.c nn_term.h config.h data.h global.h execute.h \\
 		folder.h keymap.h macro.h nn.h regexp.h
 unshar.o:	unshar.c unshar.h config.h data.h global.h keymap.h nn_term.h
-variable.o:	variable.c variable.h config.h data.h global.h chset.h \
+variable.o:	variable.c variable.h config.h data.h global.h chset.h \\
 		folder.h init.h keymap.h regexp.h sort.h nn_term.h
 
 awksplit.o:	awksplit.c awksplit.h config.h split.h
 hash.o:		hash.c hash.h config.h hdbm.h
 hdbm.o:		hdbm.c hdbm.h config.h hdbmint.h 
-libnov.o:	libnov.c libnov.h config.h data.h global.h awksplit.h \
+libnov.o:	libnov.c libnov.h config.h data.h global.h awksplit.h \\
 		digest.h hash.h newsoverview.h news.h nntp.h split.h
 split.o:	split.c split.h config.h