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 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757
|
2001-12-16 Chema Celorio <chema@celorio.com>
* configure.in (dnl): bump version to 0.11.0
2001-12-14 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_interfaces_set): simplified expression.
(xst_network_rh72_interface_delete): redhat-7.2's own version of this.
* network-conf.in (xml_parse): oops.
* parse.pl.in (xst_parse_expand): Copy the array before expanding
into it.
* network.pl.in (xst_network_sysconfig_dir_ifaces_get_existing): More
flexible ifcfg-* file matching.
* users-conf.in: Added redhat-7.2 to logindefs_dist_map.
* runlevel-conf.in: Added redhat-7.2 as a supported platform.
* network.pl.in (xst_network_xml_parse_interface): modernized.
Also, pass the whole hash to network_get_file.
(xst_network_get_broadcast_ping_cmd): redhat-7.2 was missing.
(xst_network_rh72_get_file): Red Hat 7.2 version.
* network-conf.in (xml_parse): modernized parse routines.
(xml_parse_network): same.
(xml_parse_statichost): same.
(xml_parse_dialing): same.
2001-12-11 Israel Escalante <israel@ximian.com>
* Release 0.10.0.
2001-12-13 Israel Escalante <israel@ximian.com>
* ishare.pl.in: Added R.H. 7.2 to the list of supported plataforms.
* internetsharing-conf.in: Added R.H. 7.2 to the list
of supported platforms.
2001-12-13 Arturo Espinosa Aldama <arturo@ximian.com>
* boot-grub.pl.in (xst_boot_grub_replace_label): fix: wrong regexp.
* util.pl.in (xst_item_is_in_list): style fix.
* general.pl.in (xst_directive_run): bugfix: the min arg count
was wrong.
* boot-lilo.pl.in (xst_boot_lilo_verify_entrylabel): Verify
an entry label's lilo.conf compliance. Uff: no docs on this in
the man page.
(xst_boot_lilo_verify): The lilo verification routine.
* boot-grub.pl.in (xst_boot_grub_verify): No verification
cases required for this to this moment. Just return success.
* boot-conf.in (verify_print): print verification result.
(verify): new verification directive. Other pertinent backends
should implement this too.
2001-12-12 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_interface_replace_table): Don't replace
in the network-script files.
* boot.pl.in (xst_boot_conf_get): Oops: redhat 72 was behaving
like 62 for testing.
(xst_boot_entry_set): Use the copy for replacing. Was contaminating
further iterations.
(xst_boot_conf_set): rh 72 behaving like 62 for testing.
* boot-grub.pl.in (xst_boot_grub_parse_other): Corrected this
function: wrong semantics.
(xst_boot_grub_replace_cmd_in_buff): beautify the output.
(xst_boot_grub_replace_other): use the correct semantics.
2001-12-11 Arturo Espinosa Aldama <arturo@ximian.com>
* xml.pl.in (xst_xml_print_structure): minor naming change.
* util.pl.in (xst_max): can't believe I needed this.
* report.pl.in (xst_report_stderr): Helps to trap
errors easily with the debugger.
* network.pl.in (xst_network_interface_active): return
undef instead of 0 if failed. This allows fallback.
(xst_network_interfaces_get): Use parse_expand here too.
(xst_network_get_interfaces_parse_table): In all distros,
fallback to trivial 0 if interface_active fails. RedHat 7.2
fallbacks trying with DEV then IFACE before using trivial 0.
(xst_network_get_interface_replace_table): redhat-7.2: also
replace in network-scripts file. *sigh*
* network-conf.in (xml_parse): minor style change.
* file.pl.in: Random style adjustments.
(xst_file_buffer_load_fd): load from an already open fd.
(xst_file_locate_tool): report locate tool failed for
absolute paths too.
* boot-lilo.pl: New file with the lilo stuff. Lots of
renaming and style changes. Some bug fixes. Should migrate
the entry stuff to a table-oriented structure.
* boot.pl.in: Migrated lilo stuff to new boot-lilo.pl.in.
Some renaming of fix functions that apply to all cases, not
only lilo. Implemented grub replace functions. All tables
are now oriented to the KEY as the key, instead of the label.
* boot-grub.pl.in: Too many changes to mention. Replacing
function. For code efficiency, migrated all parsing
functions to read buffer then scan, instead of using
fd's. Several rounds of bug fixing and reshaping.
* boot-conf.in (xml_parse): modernized style of all
xml parse functions.
(xml_print): removed print_entries: we now use print
structure for this. Prompt is now a 1/0 boolean scalar.
Removed global kws: last global kw prompt is now a scalar.
Some function renaming.
2001-12-04 Arturo Espinosa Aldama <arturo@ximian.com>
* Makefile.am (PERLBODY): Process boot-lilo too.
* boot-lilo.pl.in: Migrated functions from boot.pl.in.
2001-11-30 Arturo Espinosa Aldama <arturo@ximian.com>
* boot-conf.in (xml_print): Oops: prompt not a scalar.
* file.pl.in (xst_file_buffer_load_fd): Same with an already
open fd.
2001-12-10 Tambet Ingo <tambet@ximian.com>
* general.pl.in (xst_directive_run): Fixed it so it handles
varargs right.
* font.pl.in (font_test): Made it to be able to accept list
of directories (and/or files) to look fonts from.
* font-conf.in (test): Ditto.
2001-12-07 Tambet Ingo <tambet@ximian.com>
* font.pl.in: Added checks to get gnome-print's $DATADIR
and $SYSCONFDIR.
Changed internal font list structure from ARRAY to HASH.
This makes font-conf much faster and obsoletes functions:
(font_cmp_files): Removed.
(font_cmp): Removed.
(font_exists): Removed.
(font_delete): Removed.
2001-12-06 Tambet Ingo <tambet@ximian.com>
* font.pl.in (font_cmp_files): Implement.
(gp_run): Include aliases to font search.
(gp_read_fontmaps): Add new font to fontlist only
if it's not there already.
(x_get_fonts): Ditto.
(x_fonts_dir_parse): Check for all font file types
not just .pfb.
2001-12-05 Tambet Ingo <tambet@ximian.com>
* font.pl.in: Removed big chunks of old code.
(x_add_font): Fixed a bug which prevented
installing truetype fonts.
(xfs_add_fontpath): Implement.
2001-12-04 Tambet Ingo <tambet@ximian.com>
* Makefile.am (EXTRA_DIST): Added type1inst to build.
* type1inst: new file.
* font.pl.in: Now it's able to install font to X and
gnome-print. Font systems syncronisation work too.
(font_file_del): Disabled font deletion for now.
(font_remove): Ditto.
* font-conf.in: Removed debians from supported list since
we don't support xfs-tt yet.
(set): Enabled it.
2001-11-29 Arturo Espinosa Aldama <arturo@ximian.com>
* boot.pl.in: s/image/entry/ bugs: some "image" strs were
not supposed to be changed. :)
* xml.pl.in (xst_xml_print_hash): minor comment update.
* partition.pl.in (xst_partition_scan_info): Moved to the
top (scrolling past the id table is annoying).
* network.pl.in (xst_network_get_parse_table): Use the bare
numbers for parse_trivial entries: no need for quotes.
* boot-conf.in (xml_print): Removed unused scalars. Print
partition info.
* boot.pl.in (xst_boot_conf_get): Parse pixmap support
and pixmap file. mandrake-7.2's own table.
* boot-grub.pl.in (xst_boot_grub_parse_type): Part of
the hack below.
(xst_boot_grub_parse_pixmap): splashimage support.
* boot.pl.in (xst_boot_entries_get): Hack to pass
partition info into the entries parse table.
(xst_boot_get_entries_parse_table): Part of the hack.
2001-11-28 Arturo Espinosa Aldama <arturo@ximian.com>
* boot.pl.in (xst_boot_entries_get): pass param of where
the grub.conf file is to the entries_get proc.
Use double quotes instead of single for hash indexes and
table entries: this makes string search easier.
* boot-grub.pl.in: fixed a lot of bugs. Implemented missing
grub functions: image, other, append.
2001-11-28 Hans Petter Jansson <hpj@ximian.com>
* filesys.pl.in (xst_filesys_mount_sync_all): Use the
fstab entry for mount optoins, if it exists.
* shares-conf.in (set): Mount/unmount after fstab updated.
2001-11-27 Arturo Espinosa Aldama <arturo@ximian.com>
* boot-grub.pl.in (xst_boot_grub_parse_cmd): use
xst_boot_grub_search_entry.
(xst_boot_grub_parse_root): Infer the root.
* partition.pl.in (xst_partition_scan_info): renamed.
* boot-grub.pl.in (xst_boot_grub_get_next_entry): Read
until a title cmd or EOF is found.
(xst_boot_grub_search_entry): Use get_next_entry to get
a specified entry.
(xst_boot_grub_get_entries): Now use get_next_entry.
(xst_boot_grub_parse_type): Parse the type from the
grub.conf or deduct from the partition id.
* boot.pl.in: renamed a bunch of stuff, made the
XstEntryType key be "type" only instead.
2001-11-27 Hans Petter Jansson <hpj@ximian.com>
* service.pl.in (xst_service_proc_get_owner): Implement.
(xst_service_proc_stop): Implement.
(xst_service_proc_start): Implement.
* time-conf.in (time_set_local_time): Stop xscreensaver before
setting clock, start it up again with the same owner afterwards.
2001-11-27 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (xml_parse_import): Make sure NFS imports are
soft mounted, so we don't risk hanging indefinitely. Fixes
Ximian bug 4599.
2001-11-26 Arturo Espinosa Aldama <arturo@ximian.com>
* file.pl.in (xst_file_run_pipe): Use FILE_READ
as default mode_mask.
* Makefile.am (PERLBODY): Added partition.pl.in.
* partition.pl.in: Stuff related to hd partitions.
(xst_filesys_scan_types): Run sfdisk -d and give all
available info related to partitions.
* report.pl.in (xst_report): Added sfdisk_failed report.
* parse.pl.in (xst_parse_trivial): avoiding $#arr notation.
2001-11-24 Tambet Ingo <tambet@ximian.com>
* font.pl.in: Implemented infrastructure and two modules:
gnome-print module and XFree module.
* file.pl.in: Fixed some typos.
* Makefile.am: Added font-conf to build.
2001-11-23 Arturo Espinosa Aldama <arturo@ximian.com>
* boot-grub.pl.in: s/image/entry/, for a more consistent
notation.
* boot-conf.in: same.
* boot.pl.in: same.
* network.pl.in (xst_network_interfaces_get) use parse_expand
now.
* parse.pl.in (xst_parse_expand): Abstracted from a network.pl
routine.
2001-11-22 Hans Petter Jansson <hpj@ximian.com>
* time-conf.in (xml_parse_time): Pass ref to master hash to
xml_parse_sync().
(xml_parse_sync): Store sync_active flag in the master hash,
not at the head of the server list.
(xml_print): Get the sync_active flag from master hash.
2001-11-19 Arturo Espinosa Aldama <arturo@ximian.com>
* boot.pl.in (xst_boot_conf_get): removed 'root' global param
support. Include boot-grub.pl.in. Some function renaming and
repositioning.
* Makefile.am (PERLBODY): added boot-grub.pl.in
* boot-grub.pl.in: File that contains all grub-related code.
2001-11-16 Arturo Espinosa Aldama <arturo@ximian.com>
* boot-conf.in: Added redhat-7.2 as a supported distro, but this is
not finished yet.
* boot.pl.in: working on Grub support, needed by RedHat and Mandrake.
2001-11-15 Hans Petter Jansson <hpj@ximian.com>
* time-conf.in (xst_parse_local_time): Return the right reference.
(time_get_local_time): Return right year, not relative to 1900.
(time_set_local_time): Correct report output.
(conf_get_replace_table): Set time after timezone in all tables.
2001-11-15 israel <chema@celorio.com>
* time-conf.in (conf_get_parse_table): Added redhat 7.2 support
identical to 7.1
2001-11-14 Arturo Espinosa Aldama <arturo@ximian.com>
* display-conf.in: Added redhat-7.2 support: identical to 7.1.
* shares-conf.in: Added redhat-7.2 support: identical to 7.1.
* time-conf.in: Added redhat-7.2 support: identical to 7.1.
* network.pl.in (xst_network_get_interfaces_parse_table): If
interface has no NAME variable, use the IFACE: that's the new
Red Hat 7.2 way.
* users-conf.in: Added redhat-7.2 as a supported platform.
2001-11-13 Arturo Espinosa Aldama <arturo@ximian.com>
* platform.pl.in: Added redhat-7.2 platform info.
* service.pl.in (xst_service_sysv_get_runlevels): Added redhat-7.2.
(xst_service_sysv_get_paths): same.
Mon Nov 5 22:03:17 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_interface_replace_table):
replace tables for rh72.
(xst_network_get_replace_table): same.
* replace.pl.in (xst_replace_run_entry): Converse of
xst_parse_run_entry.
* xml.pl.in (xst_xml_unquote): When unquoting, unquote any
&#num; entities.
2001-11-06 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_interfaces_expand_iface): bug fix.
(xst_network_interfaces_get): Pass the interface.
* util.pl.in (xst_arr_merge): Merges scr array into dest array.
* network.pl.in (xst_network_sysconfig_rh72_ifaces_get_existing):
rh72 method to get all existing interfaces. Calls a redhat prog
to migrate from network-scripts to networking.
(xst_network_sysconfig_dir_ifaces_get_existing): Abstraction
of previous network-scripts specific code.
(xst_network_sysconfig_rh62_ifaces_get_existing): Use new
abstraction.
* network-conf.in: Added redhat-7.2 as a supported platform.
* network.pl.in (xst_network_interfaces_expand_iface): The
#ifaces# expansion hack, but for array also.
(xst_network_interfaces_get): Use this new function.
2001-11-05 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_parse_table): Created
parse table for Red Hat 7.2.
* parse.pl.in (xst_parse_run_entry): This one is powerful.
["user", \&xst_parse_foo, [0, 1], [2, 3] ] will parse
using the combinatory of [0, 1]x[2, 3] until a result
ne undef is given. Check RedHat 7.2's parse table for
further enlightenment.
(xst_parse_from_table): xst_parse_run_entry called from
here to get this new behaviour. Useful for distros that
put their stuff in different places (RH72).
2001-11-02 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_xml_parse_serverlayout_screen): Implement.
(x_xml_print_serverlayout_screen): Changed xml format to support multihead setups.
(x_parse_serverlayout_screen): There could me more than one active screen.
2001-11-01 Tambet Ingo <tambet@ximian.com>
* xml.pl.in (xst_xml_print_pcdata): Added missing '&' to functions.
(xst_xml_format_state_tag): Ditto.
(xst_xml_print_state_tag): ditto.
2001-10-12 Tambet Ingo <tambet@ximian.com>
* xml.pl.in (xst_xml_scan_make_kid_array): Rewrote to support xml attribute
values with spaces.
2001-10-16 Arturo Espinosa Aldama <arturo@ximian.com>
* platform.pl.in (xst_platform_guess): Take the distro from the
environment.
* report.pl.in (xst_report_escape): Escapes a report using the report
line format.
* general.pl.in (xst_directive_parse_line): This sepparates a line
in args by the directive line format.
* report.pl.in (xst_report): removed platform_list report.
Changed platform_success format.
* platform.pl.in (xst_platform_ensure_supported): no need
to list the supported platforms using reports. platform_success
report now requires the platform description too.
(xst_platform_set): same regarding report.
2001-10-15 Arturo Espinosa Aldama <arturo@ximian.com>
* platform.pl.in: Typo in PLATFORM_INFO and the codename
for mdk-8.0.
* general.pl.in (xst_merge_std_directives): Added the
"platforms" directive.
* platform.pl.in (xst_platform_print_list): Print an XML of
the supported platforms.
(xst_platform_list): Directive handler.
* xml.pl.in (xst_xml_print_begin): Removed cosmetic comments.
(xst_xml_print_end): same.
2001-10-06 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_interfaces_get_info): It's better
to say an interface is up if it has an IP address.
2001-10-05 Arturo Espinosa Aldama <arturo@ximian.com>
* xml.pl.in (xst_xml_print_request_end): don't use print_comment:
this breaks the protocol. Not even using xst_xml_print_string, to
avoid the terminator getting into the debugs or the archiver.
2001-10-05 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_version): Fixed hacky way to find X binary, save it
in main hash to cache it.
(x_get_active_screen): Much more robust, should work now in any
case (X4, X3 with or without ServerLayout).
(x_probe): Oops, forgot to uncomment this!
2001-10-03 Tambet Ingo <tambet@ximian.com>
* users-conf.in (logindefs_add_defaults): Return the hash we fill :)
(read_logindefs): assign the return value to something, don't just
pretend you're interested in it! :)
* x.pl.in (x_parse_unique_int): Added check for uniqueness.
(x_parse_unique_string): Ditto.
* users-conf.in: Override new values found from logindefs
and not in profiles. Removed xst_progress remains.
Added reporting. Backups all files it (remotely) touches.
2001-10-02 Arturo Espinosa Aldama <arturo@ximian.com>
* network-conf.in (list_ifaces): directive that lists
instantaneous info about all interfaces (ifconfig -a).
* network.pl.in (xst_network_interfaces_get_info): Collect
more info: active and dev, and include inactive interfaces.
2001-10-02 Tambet Ingo <tambet@ximian.com>
* x.pl.in: Use full paths to XFree86, don't try to depend on links.
(x_update_list_string): Emptry string is valid string! doh!
(x_add_unique_string): Ditto.
* users-conf.in: Rewrote profiles and login.defs stuff.
Removed/exchanged all old cruft so now it seems more like
other 'up-to-date' backends.
* xml.pl.in (xst_xml_format_pcdata): Don't use if ($name) conditions
if 0 or empty string are valid values. Use if (defined ($name))
instead.
(xst_xml_print_comment): Implement.
2001-10-01 Arturo Espinosa Aldama <arturo@ximian.com>
* display-conf.in: Added mandrake-7.2 to the list of supported
platforms.
* network.pl.in (xst_network_rh62_parse_bootproto): typo caused
bootproto to always be "none".
2001-09-28 Tambet Ingo <tambet@ximian.com>
* font.pl.in: Implemented addition and removal of TrueType and
Type1 fonts for X. Currently works only with RH and derivates.
(xfs_parse): Implementet xfs parser.
* file.pl.in (xst_file_create_path): Added new parameter with nice
default to set permissions.
(xst_file_create_path_for_file): Ditto.
2001-09-27 Tambet Ingo <tambet@ximian.com>
* util.pl.in (xst_process_result_collect): Handle errors a bit better.
* x.pl.in (x_probe_scan): Oops! I had two functions with same name
and perl didin't even warn me about it! Removed one.
2001-09-25 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_rh_get_smb_desc): This removes
the default "Samba Server" smb.conf string from redhat-like
distros.
2001-09-24 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_xml_parse): Use standard report message for
unexpected xml tag.
* users-conf.in: Typos happen.
* x.pl.in (x_parse_serverlayout_screen): Rewrote.
Fixes bug #10790.
* users-conf.in: Added missing report keywords. Moved one
here from report.pl.in.
2001-09-21 Tambet Ingo <tambet@ximian.com>
* x.pl.in: Found and fixed some small typos.
2001-09-21 Arturo Espinosa Aldama <arturo@ximian.com>
* util.pl.in (xst_process_result_collect): Exhaust buffer.
2001-09-21 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_probe_collect): Use xst_process_result_collect.
* util.pl.in (xst_process_result_collect): Implemented to hide
implementation details.
* x.pl.in (x_probe_scan): Return array.
* util.pl.in (xst_process_list_check_ready): Don't force second
argument to array. Make an array of it if needed.
(xst_process_fork): Taught to deal with arrays also.
* x.pl.in (x_probe_run): Fork new X processes to avoid lockups.
(x_probe_collect): Implement.
(x_probe_scan): Implement.
Tue Sep 18 11:46:35 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* service.pl.in (xst_service_sysv_install_script): reversed
return value interpretation of copy.
* report.pl.in: typo in new file_copy_failed entry.
(xst_report): validate major, and better unk minor handling.
(xst_report): also spit reports if they have debug major.
* service.pl.in (xst_service_sysv_install_script): Oops: chmod
the installed initd script, not the resource file! :)
Mon Sep 17 11:36:47 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* Other Perl style changes in xml, network, service and other
places.
* file.pl.in (xst_file_rmtree): Got "Bad symbol for filehandle"
fatal error with this code in Debian. Dunno why it appeared now,
so I used something more "standard". Any comments on this?
* ishare.pl.in: Ported to debian-2.2. Untested.
* service.pl.in (xst_service_sysv_install_script): installs an
initd script from the filesdir.
* Makefile.am: Replace filesdir too.
* service.pl.in (xst_service_sysv_set_links_active): Use %02d
to format the priority number of the link.
(xst_service_sysv_set_links_inactive): same.
* util.pl.in (xst_util_read_boolean): Added "1" as a valid
"true" representation.
* replace.pl.in (xst_replace_sh_bool): Added optional parameters
for true/false value representation.
(xst_replace_sh_export_bool): same.
2001-09-19 Arturo Espinosa Aldama <arturo@ximian.com>
* Makefile.am (backends): Process runlevel-conf instead of sysv-conf.
* sysv-conf.in -> runlevel-conf.in: Hans Petter said he didn't
like the name, and I didn't like it either.
2001-09-19 Tambet Ingo <tambet@ximian.com>
* display-conf.in (distro_file): Rewrote to support possible irregular
file config file locations in the future.
Sun Sep 16 13:30:28 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* configure.in: set filesdir variable too.
Wed Sep 12 21:42:03 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* sysv-conf.in (xml_parse_services): Parse array of available
services.
(xml_print): Print services array.
(get): get available services array.
2001-09-18 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_rh62_parse_bootproto): If the
bootproto is unknown, report error, default to none.
(xst_network_suse70_parse_bootproto): same.
* service.pl.in (xst_service_sysv_get_runlevels): added missing
supported distros and removed bogus ones. Report an error if
distro is not listed.
2001-09-17 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_update_section): Fixed bug which messed up config file
when adding new (sub)sections.
2001-09-16 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_update_section): Fixed problem where more than one section
with same name existed.
Tue Sep 11 20:48:25 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* Makefile.am (backends): added sysv-conf backend.
* report.pl.in (xst_report): Added report for unsupported
platforms for sysv init scripts.
* sysv-conf.in: A new backend for SystemV init script control
and service activation. Only get operation ready.
* service.pl.in (xst_service_sysv_installed): missing my
declarations.
(xst_service_sysv_get_paths): report unsupported distros.
(xst_service_sysv_list_dir): return a list ref of the services
in a sysv directory.
(xst_service_sysv_list_available): list those services in
the init.d directory.
(xst_service_sysv_get_level_info): return structure with service
info on a sysv directory.
(xst_service_sysv_get_tree): return array of structures for
all the runlevel directories.
* *.pl.in: changed SCRIPTSDIR that was broken in principle,
although in practice didn't matter.
2001-09-13 Arturo Espinosa Aldama <arturo@ximian.com>
* ishare.pl.in: Too many changes to ennumerate: a general
rearrangement for a more intensive parse/replace table
usage. This will make the porting process much simpler.
* service.pl.in (xst_service_sysv_set_status_do): missing
my declaration.
* general.pl.in (xst_end_directive): The end directive sends
all the standard directive reports before terminating backend.
(xst_directive_run): removed exceptions for "end" directive.
(xst_terminate): finishes the backend, no reports.
(xst_run): call xst_terminate instead of running the end directive.
2001-09-12 Arturo Espinosa Aldama <arturo@ximian.com>
* service.pl.in (xst_service_sysv_force_status): New function
that forces start/stop.
* file.pl.in (xst_file_exists): Return 1/0 depending on file
existance.
* network.pl.in (xst_network_dialing_set): Set /etc/wvdial.conf
or equivalent to 600 permissions: isp info was visible!
* ishare.pl.in (xst_ishare_conf_set): random paste stopped
ipchains service!
* file.pl.in (xst_file_backup_rotate_dirs): Just unlink dir 9
if it's a symbolic link.
2001-09-12 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_probe): Improved. Reports now if probe is required.
Misc bug fixes on updating.
2001-09-12 Hans Petter Jansson <hpj@ximian.com>
* filesys.pl.in (xst_filesys_mount_off): Fix format of unmount messages.
* report.pl.in: Ditto.
2001-09-11 Tambet Ingo <tambet@ximian.com>
* x.pl.in: 1000 little fixed bugs.
2001-09-10 Arturo Espinosa Aldama <arturo@ximian.com>
* file.pl.in (xst_file_rmtree): replicated File::Path::rmtree,
because it has a bug that prevents it from removing directories.
Any suggestions for an alternative?
(xst_file_backup_rotate_dirs): use replacement.
* debug.pl.in (xst_debug_rotate_try): same.
2001-09-05 Tambet Ingo <tambet@ximian.com>
* time-conf.in: Use perl functions to copy, move and delete.
* file.pl.in: ditto.
* debug.pl.in (xst_debug_rotate_try): ditto.
* x.pl.in: s/TODO (reporting)/Implement $1/g;
* report.pl.in (xst_report): Implement.
(xst_report): use dynamical report message table.
* display-conf.in (distro_file): Determine config file from X version.
* x.pl.in: Line based to token based parser. Rewrite.
2001-08-30 Arturo Espinosa Aldama <arturo@ximian.com>
* internetsharing-conf.in (get_interfaces): new directive.
* ishare.pl.in (xst_ishare_get_linux22_forward_support):
Changed masquerading support to check for /proc/net/ip_masquerade.
2001-08-28 Arturo Espinosa Aldama <arturo@ximian.com>
* ishare.pl.in (xst_ishare_fwrules_get_ipchains): typo
- $$hash{"kerneltool"} -> $hash{"kerneltool"}.
Do set the "active" key, even if it's not configured.
Wed Aug 22 22:16:03 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* *{pl,-conf}.in: Oops, forgot about the .in suffix of files
that haven't been processed. Put the prefix if the backend is
the .in version.
* *.pl.in: Ah, change had to go here too.
* *-conf.in: Check for ___scriptsdir___ value. If it is
___scriptsdir__, then require files on the pwd. This way we
can call backend-conf.in directly, and without make installing.
2001-08-23 Hans Petter Jansson <hpj@ximian.com>
* report.pl.in: Add report messages for filesys mount/unmount.
Fix a random typo I noticed.
* filesys.pl.in (xst_filesys_mount_on): Add error reporting.
(xst_filesys_mount_off): Add error reporting.
2001-08-22 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_probe_load): use xst_file_* instead of open.
(x_probe_store): ditto.
Disable modelines for now. Misc updates.
(x_probe_run): Removed some debugging messages.
2001-08-21 Arturo Espinosa Aldama <arturo@ximian.com>
* general.pl.in (xst_directive_run): Report the directive that
is being processed.
(xst_end_directive): close all debug before exit. Just paranoic.
2001-08-20 Tambet Ingo <tambet@ximian.com>
* x.pl.in: Made probe caching. Removed some debugging messages.
Continued work on probe_* functions.
* display-conf.in: Use portable copy and delete functions.
(test): Get better temp file.
(probe): Probe could have arguments.
2001-08-17 Arturo Espinosa Aldama <arturo@ximian.com>
* boot.pl.in (xst_boot_parse_global_kw): Report that no lilo.conf
was found.
(xst_boot_parse_global): same.
(xst_boot_parse_images): same.
* general.pl.in (xst_directive_run): Send a begin report whenever
a directive is run, except for "end".
Some other function name changes.
* *.in: s/&xst_end (/&xst_report_end (/;
* report.pl.in (xst_report_begin): Moved from general.pl.in:xst_begin.
(xst_report_end): same.
Thu Aug 16 02:02:18 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* platform.pl.in (xst_platform_ensure_supported): Removed extra
xst_end calls.
* report.pl.in (xst_report): Report major too.
2001-08-16 Arturo Espinosa Aldama <arturo@ximian.com>
* ishare.pl.in (xst_ishare_dhcp_conf_add_interface): Oops:
missing semicolons here.
2001-08-15 Arturo Espinosa Aldama <arturo@ximian.com>
* boot.pl.in: Removed use strict until we can honour this
clause.
2001-08-15 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_probe): Added X probing functions.
Added Modeline functions. Added ability to add new sections.
2001-08-14 Arturo Espinosa Aldama <arturo@ximian.com>
* general.pl.in (xst_directive_fail): Some functions that
have to be called every time a directive fails for different
reasons.
(xst_directive_run): Use this new thing, which now sends
the end directive and the end of request string, so frontend
doesn't hang. Renamed from xst_run_directive.
(xst_run): Use directive_run.
2001-08-13 Arturo Espinosa Aldama <arturo@ximian.com>
* file.pl.in (xst_file_close): New abstraction for close.
I got some errors for doing close undef (although perl -d has
no trouble with that expression), so we're using this now, for
simplicity.
* *.in: changed all calls to close $var to &xst_file_close ($var).
2001-08-13 Tambet Ingo <tambet@ximian.com>
* configure.in: Fixed capitalization.
2001-08-09 Arturo Espinosa Aldama <arturo@ximian.com>
* ishare.pl.in (xst_ishare_fwrules_get_ipchains): Small
correction to "configured" ipchains tag.
* xml.pl.in (xst_xml_print_array): Use xst_xml_print_structure.
(xst_xml_print_hash): same.
(xst_xml_print_structure): Call the corresponding function
depending on the reference type of $s. If just a scalar, print
<$tag>$s</$tag>.
* internetsharing-conf.in (xml_parse_fwrules): "overwrite"
tag support for ipchains too.
* ishare.pl.in (xst_ishare_dhcp_isc_save): Oops. The
required argument is the hwaddr, only.
(xst_ishare_dhcp_isc_set): Activate the dhcpd service:
not ipchains (here).
(xst_ishare_fwrules_set_ipchains): "overwrite" tag
support for ipchains too.
* service.pl.in (xst_service_sysv_get_status): little
typo here.
* ishare.pl.in (xst_ishare_fwrules_get_ipchains): The
proc file for ipchains is in /proc/net, not /proc/sys/net.
(xst_ishare_ipchains_save): typo. What was I thinking of?
2001-08-09 Christian Rose <menthos@menthos.com>
* report.pl.in: Fixed a typo.
2001-08-07 Arturo Espinosa Aldama <arturo@ximian.com>
* internetsharing-conf.in (xml_parse_dhcp): Support
for "overwrite" tag.
* ishare.pl.in (xst_ishare_dhcp_isc_save): Overwrite
dhcp.conf with our own configuration, generated from
the given XML.
(xst_ishare_dhcp_conf_add_interface): Adds a subnet
section to a buffer with the contents of the new
dhcp.conf.
(xst_ishare_dhcp_isc_set): Sets up dhcp configuration
and activates if required.
* file.pl.in (xst_file_run_backtick): New function
that takes advantage of the path search functionality,
and behaves just like ``.
* service.pl.in (xst_service_sysv_get_status): Use
xst_run_backtick to get pidof.
* network.pl.in (xst_network_active_interfaces_get_info): Added
hwaddr support.
* xml.pl.in (xst_xml_print_array): Don't do anything
if array is empty.
* ishare.pl.in (xst_ishare_ipchains_save): Replace
current ipchains state MASQ rules with those
required for network masquerading for each landev.
(xst_ishare_fwrules_set_ipchains): save ipchains
rules and start/stop service, setup init.d links.
* internetsharing-conf.in (xml_parse_fwrules): Parse
the new tag.
* ishare.pl.in (xst_ishare_fwrules_get_ipchains): Check
for kernel ipchains support. New "kerneltool" tag.
2001-08-06 Arturo Espinosa Aldama <arturo@ximian.com>
* xml.pl.in (xst_xml_print_array): Another print
utility function.
(xst_xml_print_hash): Be recursive. Print hash refs
with this same function and array refs with print_array.
* internetsharing-conf.in (xml_parse_fwrules): landev
tag support, to set which devices are attached to lans
we want to masquerade to the exterior.
* Makefile.am (PERLBODY): Generate ishare.pl.
* ishare.pl.in: Added. Moved all xst_ishare* functions
from internetsharing-conf.in.
* file.pl.in (xst_file_get_base_path): Store setup and
backups in /var/cache/setup-tool-backends.
* files/Makefile.am, files/ChangeLog: created directory
where files to be installed at run-time will reside.
* configure.in: Generate files/Makefile.
Sun Aug 5 20:26:03 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* file.pl.in (xst_file_run_pipe_write): The write version
of run_pipe_read.
(xst_file_run_pipe): And then some abstraction occurs.
Fri Aug 3 22:32:38 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* network-conf.in (xml_parse_network): Call xst_network_xml_parse_interface,
which used to be xml_parse_interface.
* network.pl.in (xst_network_xml_parse_interface):
Relocated so it can be shared with internetsharing.
2001-08-03 Arturo Espinosa Aldama <arturo@ximian.com>
* internetsharing-conf.in (xst_ishare_fwrules_get_ipchains): Get
ipchains-related information.
(xst_ishare_dhcp_mdk72_get): New. Used mdk72 because that's our base
platform.
(xst_ishare_get_linux22_support): Check for kernel support.
(xst_ishare_get_linux22_support_active): Check if kernel support is active.
Added mdk 7.2 as supported platform.
* file.pl.in (xst_file_run_pipe_read): New utility to run commands
that will be piped for reading.
(xst_file_run): use xst_file_get_cmd_path now.
(xst_file_get_cmd_path): Taken from xst_file_run to generate command.
* *.in: Replaced a bunch of open "blah|" calls with xst_file_run_pipe_read.
2001-07-30 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_known_var): Deal only with selected list of keywords.
(xst_boot_conf_edit_image): Rewrote it. It's now much safer since it doesn't
touch anything else than really needed (value part).
(xst_boot_conf_set_images): Match images based on key, not name and image location.
(xst_boot_set_global): Improved quoting of values with spaces or with '='.
* boot-conf.in (xml_parse_boot): Removed some unused keywords.
2001-07-28 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_update_display_mode): Chop off additional space.
* boot.pl.in (xst_boot_conf_is_image): Try default label also.
(xst_boot_conf_delete_image): Fixed bug of deletion of last image.
(xst_boot_conf_edit_image): Quote values which have '=' mark.
(xst_boot_conf_add_image): Ditto.
(_lilo_fix_images): New. Add 'label' field if it's missing.
(xst_boot_conf_fix): New.
* boot-conf.in (set): Don't flush conf file if XML was invalid or missing.
2001-07-26 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_update_display_mode): Remove extra space from we added before.
2001-07-26 Hans Petter Jansson <hpj@ximian.com>
* display-conf.in: Add debian-2.2 to supported platforms. Tested and
working.
* print-conf.in: Remove debian-2.2 from supported platforms. This
is officially not supported yet.
2001-07-26 Tambet Ingo <tambet@ximian.com>
* display-conf.in (test): Oops, forogt that.
* x.pl.in (x_config_fix): Support XFree86 v3 also.
* display-conf.in (xml_print): ditto.
Wed Jul 25 03:45:51 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* package-conf.in (get_package): missing comma.
* mouse-conf.in: mouse.pl doesn't exist. Can't require it.
* Makefile.am: Also s/___version___/$(VERSION)/.
* *-conf.in: Removed arbitrary value for $version and
assigned "___version___" instead. #3090 fixed.
* boot.pl.in (xst_boot_conf_edit_image): Removed append
key special case for quoting. Quote values only if they
contain spaces and are not already quoted.
(xst_boot_conf_add_image): same.
* replace.pl.in (xst_replace_from_table): If interpolation
failed, go to next feature. Failed interpolations return
arguments that make no sense.
(xst_replace_kw): Wasn't getting $value arg (!). This affected
Debian ppp option replacing and possibly other places.
* parse.pl.in (xst_parse_replace_hash_values): Return 1/0
if interpolation succeeded.
(xst_parse_from_table): If interpolation failed, go to next
feature.
* network.pl.in (xst_network_get_parse_table): Removed
domainname tag support.
(xst_network_get_replace_table): same.
* network-conf.in (xml_parse_network): Removed domainname
tag support.
(xml_print): same.
* replace.pl.in (xst_replace_split): Eliminate empty elements
from value array. This will delete features whose XML tags are
empty, but existent.
* network.pl.in (xst_network_pump_get_nodns): Only omit
updatedns tag if pump doesn't support it, or information will
be lost.
* parse.pl.in (xst_parse_interfaces_option_kw_not): Minor bug:
undef ne 0.
* network.pl.in (xst_network_interface_ensure_broadcast_and_network):
Oops: forgot to receive the arguments.
(xst_network_interface_changed): more intelligent network interface
info comparison.
(xst_network_rh62_interface_activate): Use this function here, getting
rid of weird criterion.
(xst_network_suse70_interface_activate): same.
2001-07-24 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_interface_ensure_broadcast_and_network):
if the interface has address and netmask, calculate the broadcast
and subnet.
(xst_network_interfaces_get): call this function per iface.
2001-07-24 Hans Petter Jansson <hpj@ximian.com>
* time-conf.in (time_sync_hw_from_sys): Implement.
(conf_set): Sync hardware clock.
2001-07-24 Tambet Ingo <tambet@ximian.com>
* x.pl.in (parse_range_hz): Seems like spaces are allowed everywhere.
* boot-conf.in (set): Removed some old cruft.
* x.pl.in: we use strict from now on. Only for this file.
Fixed damned bug that ruined $sections variable and crashed
display tool.
2001-07-20 Arturo Espinosa Aldama <arturo@ximian.com>
* platform.pl.in (xst_platform_ensure_supported): Don't
exit after listing the platforms.
* general.pl.in (xst_merge_std_directives): Added standard
"platform_set" directive.
* platform.pl.in (xst_platform_ensure_supported): Send
end of report before returning.
(xst_platform_set): A directive handler that sets the
currently selected platform.
2001-07-20 Hans Petter Jansson <hpj@ximian.com>
* replace.pl.in (xst_replace_alchemist_ensure_list_types): Implement.
(xst_replace_alchemist): Set required alchemist branch attributes.
(xst_replace_alchemist_print): Set required alchemist branch attributes.
(xst_replace_alchemist_print_option): Set required alchemist branch
attributes.
2001-07-20 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_model_save): Implement.
* replace.pl.in (xst_replace_xml_pcdata): Use xst_xml_model_save ().
(xst_replace_xml_attribute): Ditto.
(xst_replace_xml_pcdata_with_type): Ditto.
(xst_replace_xml_attribute_with_type): Ditto.
(xst_replace_xml_alchemist_print_option): Ditto.
2001-07-19 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_scan_make_kid_array): Accept '.' in attribute values.
(xst_xml_model_ensure): Simplify slightly.
* parse.pl.in (xst_xml_parse_alchemist_print_option): The variable naming
the XML node to get attribute from was wrong.
* replace.pl.in (xst_xml_replace_alchemist_print_option): The variable
naming the XML node to set attribute on was wrong.
* print.pl.in (xst_print_remove_printer_rh71): Implement empty shell for
now.
(xst_print_get_printer_parse_table): Additions and fixes.
(xst_print_get_printer_replace_table): Ditto.
2001-07-19 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_xml_child_names): Return array, not reference.
Fixed comparison to be against input list, not output.
(xst_parse_alchemist): Set args. Alchemist attr is always VALUE.
(xst_parse_alchemist_print): Ditto.
(xst_parse_alchemist_print_option): Ditto.
* print.pl.in (xst_print_get_printer_parse_table): Some fixes, additions.
2001-07-19 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_model_get_children): Implement.
* parse.pl.in (xst_parse_xml): Use new return convention of
xst_xml_model_scan ().
(xst_parse_xml_child_names): Renamed from xst_parse_xml_children ().
Use new return convention of xst_xml_model_scan ().
(xst_parse_alchemist): Implement.
(xst_parse_alchemist_print): Implement.
(xst_parse_alchemist_print_option): Implement.
* replace.pl.in (xst_replace_alchemist): Add in alchemist's base data path.
(xst_replace_alchemist_print): Implement.
(xst_replace_alchemist_print_option): Implement.
* print.pl.in (xst_print_printers_get_rh71): Use
xst_parse_xml_child_names ().
(xst_print_get_printer_parse_table): Begin rh71 table, not complete yet.
(xst_print_get_printer_replace_table): Begin rh71 table, not complete yet.
2001-07-18 Arturo Espinosa Aldama <arturo@ximian.com>
* file.pl.in (xst_file_run): Accept a flag arg $background
that will run the command on background.
(xst_file_run_bg): Wrapper to this.
* users-conf.in (set): Call write_profiles.
(xml_parse): Call xml_parse_profiles.
(xml_parse_profiles): Get "profiles" tag contents from read
xml document and set it in "profiles" key of data hash.
(write_profiles): If $$hash{"profiles"} is not empty,
save it to profiles.xml location.
(xml_parse_users): Ignore profiles tag.
(xml_parse_profiles): Profiles record is a ref to an array.
* xml.pl.in (xst_xml_scan_recurse): Removed use of global
array xst_xml_scan_list.
(xst_xml_scan): Now optionally receives a tool structure.
The read document is stored inside the tool structure.
* users-conf.in (add_user): mkdir -p the parent directories
of the new user.
(get): receive tool as argument. This structure is passed
to all directive handlers by xml_run_directive as the first
argument.
(set): same. Pass it to xml_parse.
(filter): same.
2001-07-18 Hans Petter Jansson <hpj@ximian.com>
* replace.pl.in (xst_replace_alchemist): Implement. Top-level function
for replacing alchemist data.
2001-07-18 Hans Petter Jansson <hpj@ximian.com>
* replace.pl.in (xst_replace_xml_pcdata_with_type): Implement.
(xst_replace_xml_attribute_with_type): Implement. These are helper
functions for alchemist-like XML files.
2001-07-18 Arturo Espinosa Aldama <arturo@ximian.com>
* users-conf.in (add_user): mkdir -p the parent directories
of the new user.
2001-07-17 Arturo Espinosa Aldama <arturo@ximian.com>
* users-conf.in (write_logindefs): Old xst_report_warning
call that slipped.
Enabled command reporting.
Removed all global data variables in the backend. Delete
user no works. Style corrections. This thing is old.
Sun Jul 15 07:46:23 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_parse_table): userifacectl
reveals if distro is capable of letting mortal users to control
interface activation.
2001-07-17 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_file_open_write_compressed): Implement.
* replace.pl.in (xst_replace_xml_pcdata): Allow compressed files.
(xst_replace_xml_attribute): Ditto.
* xml.pl.in (xst_xml_model_scan): Ditto.
2001-07-16 Hans Petter Jansson <hpj@ximian.com>
* print.pl.in (xst_print_printers_get_rh71): Implement.
* xml.pl.in (xst_xml_read_compressed_file): Implement.
(xst_xml_model_scan): Read compressed files.
2001-07-16 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_xml_children): Implement.
* print.pl.in (xst_print_printers_get): Rename to
xst_print_printers_get_rh70. Update tables to use this.
* replace.pl.in (xst_replace_xml_pcdata): Implement.
(xst_replace_xml_attribute): Implement.
Sat Jul 14 11:54:50 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* file.pl.in (xst_file_run): Escape ($) in system call, heheh.
* network-conf.in (enable_iface): Cosmetic description change.
* file.pl.in (xst_file_run): Added PATH=$PATH:/sbin:/usr/sbin
to the running command, as these important routes may not be
set by the mortal user, and the executed scripts may fail (ie
debian's ifup/ifdown fail when tool run by normal user).
* network-conf.in (enable_iface): A directive handler that
ifup/ifdowns a given interface.
$directives: added directive entry, params and description.
* report.pl.in (xst_report): New warning "platform_no_table",
used now in all backends when no table for the detected dist
is available (shouldn't happen, but typos happen).
* network.pl.in (xst_network_debian_woody_set_auto): Removed
debian-potato compatibility, because noauto is not compatible
with auto stanzas.
(xst_network_debian_woody_get_auto): same.
Fri Jul 13 14:58:00 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* general.pl.in (xst_run_directive): Flush debug files after
every run directive.
* debug.pl.in (xst_debug_close_all): Function to make the
debug files close (and so, flush).
* network.pl.in (xst_network_interface_set): Maybe I don't
understand myself, but don't force interface activation.
(xst_network_ensure_loopback_interface): Add update_dns
property to default loopback prefs.
* xml.pl.in (xst_xml_read_stdin): Last if no more input is
available. This fixes the tool waiting for the end of request
string when using a file as stdin. (backend --set < in.xml).
* network.pl.in (xst_network_set_ppp_options_re): if you found
the matching line, last.
(xst_network_set_ppp_options_unsup): These functions are hacky.
Take the unsupported options and format them one by line.
Don't chomp lines: this corrupted the file.
2001-07-15 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_conf_edit_image): Always quote 'append' lines.
(xst_boot_set_global): ditto. Fixes bug #3805.
Thu Jul 12 12:44:15 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* report.pl.in (xst_report): Better reporting of errors.
* platform.pl.in (xst_platform_ensure_supported): Use the
$tool structure to get the dist.
* hardware-conf.in: Well, this code is useless, but it had
some spurious code here I found during a "grande grep".
* platform.pl.in (xst_platform_ensure_supported): Removed
explicit STDERR debug output: error reports are now forced
to STDERR.
* xml.pl.in (xst_xml_print_request_end): The request end
string starts with a new line.
2001-07-13 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_model_get_pcdata): Implement.
(xst_xml_model_set_pcdata): Implement.
(xst_xml_model_get_attribute): Implement.
(xst_xml_model_set_attribute): Implement.
2001-07-13 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_model_add): Implement.
(xst_xml_model_ensure): Implement.
(xst_xml_model_remove): Implement.
2001-07-13 Tambet Ingo <tambet@ximian.com>
* display-conf.in (check_version): Implement. Check version
and bail out on versions lower than 4.0.0
* x.pl.in (x_version): Now it actually works.
2001-07-12 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_rh62_interface_activate_by_dev):
Don't do ifdown on the background. ifdown is fast enough, and
launching ifup/ifdown almost at the same time doesn't seem like
a good idea.
(xst_network_suse70_interface_activate_by_dev): same.
(xst_network_suse70_ppp_iface_activate): same.
Print ifup/ifdown debug reports to STDERR to track problems.
(xst_network_debian_woody_get_auto): Got confused by the double
negation of "noauto". Fixed (#4538)
* users-conf.in (xml_parse_users): Ignore files and shells
tags when parsing, instead of complaining.
(xml_parse_login_defs): files tag should be ignored here.
* file.pl.in (xst_file_open_write_from_names): Wrong report
call.
2001-07-11 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_interfaces_parse_table):
Commented out dns[12] unsupported tags for debians.
(xst_network_debian_woody_set_auto): Dunno what I was
thinking when I first coded this. Fixed now.
* parse.pl.in (xst_parse_trivial): Return undef if 0 args.
2001-07-12 Chema Celorio <chema@celorio.com>
* configure.in (dnl): try again
2001-07-12 Tambet Ingo <tambet@ximian.com>
* AUTHORS: Fixed my mail address :)
* x.pl.in (x_add_keyword): Fixed stupid bug I introduced
in my last commit. (new resolutions didn't get added).
* display-conf.in (xml_parse): Fixed very strange bug:
if run with new style "set" then everything worked, but
not when run with --set. The problem was that $tree array
had one extra empty element as a first one int the list.
Other tools may suffer the same thing.
(xml_parse): Added optional argument to parse from.
(parse): Removed, was a single line nonsense.
(test): Implement. Tests if X can start up and whether it's
picture is readable.
2001-07-12 Chema Celorio <chema@celorio.com>
* configure.in (dnl): fix the scriptdirs thing
2001-07-11 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_model_find): Implement.
* parse.pl.in (xst_parse_xml): Use xst_xml_model_find().
2001-07-11 Hans Petter Jansson <hpj@ximian.com>
This implements an exact internal representation of XML, which can
be scanned to and printed out from.
* xml.pl.in (xst_xml_model_print_attributes): Implement.
(xst_xml_model_print_recurse): Implement.
(xst_xml_model_print): Implement.
(xst_xml_scan_make_kid_array): Accept more characters in attributes.
(xst_xml_model_scan_recurse): Implement.
(xst_xml_model_scan): Implement in full.
* parse.pl.in (xst_parse_xml): Use xst_xml_model_scan().
2001-07-11 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_replace_table): Typos.
(xst_network_route_set_default_gw): The gatewaydev also
counts to check if the default route should change.
2001-07-11 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_version): Beginnings of X version detection.
(parse_modeline): Finished to support "ModeLine" entries.
(x_xml_print_modelines): Implement.
(x_parse_section): Fixed options parsing bug.
2001-07-10 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_replace_table): Oops:
support gatewaydev for replacing too.
(xst_network_route_set_default_gw): Run route to set
default gw as required.
* network-conf.in (xml_print): Print the gwdevunsup
tag as well.
* network.pl.in (xst_network_get_parse_table): Added
gwdevunsup for those platforms that don't support this.
2001-07-10 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_get_attribute): Implement.
* parse.pl.in (xst_parse_xml): Implement in full.
2001-07-09 Arturo Espinosa Aldama <arturo@ximian.com>
* network-conf.in (xml_print): gatewaydev support.
(xml_parse_network): same.
* network.pl.in (xst_network_get_parse_table): new gatewaydev
feature required to avoid ambiguous situations. RedHat-only
for the moment. SuSE doesn't need it (well, doesn't use it).
(xst_network_get_replace_table): same.
TODO: investigate what to do for Debian.
2001-07-09 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_update_display_mode): Implement.
(x_update_kw_list): Implement, has it's own function now.
(xml_parse_display_modes): Implement.
2001-07-06 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_lookup_address_collect):
Improved reusability by taking out xst_process_list_check_ready.
(xst_network_lookup_address): Put that call here.
* share.pl.in (xst_share_get_smbclient_list_cmd): Get
smbclient command to get a list of shares from a host.
(xst_share_scan_smb_host_call): Function to be called
from xst_process_fork.
(xst_share_scan_smb_start): Spawn an smbclient for
every host.
(xst_share_scan_nfs_host_call): Analogue.
(xst_share_scan_nfs_start): Same.
(xst_share_scan_share_collect): Get strings from
children and return hash with host => [ @dirs ].
(xst_share_scan_network): Finished, not tested. Launches
all processes in parallel, after the bcast ping, including
name lookups. Returns hash with information.
2001-07-06 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_xml): Begin XML config parser.
2001-07-06 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_address_lookup_call): A
function to be called by xst_process_fork.
(xst_network_lookup_address_start): Now calls
xst_process_fork.
(xst_network_lookup_address_collect): Now calls
xst_process_list_check_ready and inspects "ready" key.
(xst_network_active_interfaces_get_info): Run ifconfig,
getting addr, bcast and mask info for all ifaces in a hash.
(xst_network_get_broadcast_ping_cmd): Code that selects
the right command to ping a given broadcast.
(xst_network_ping_broadcast_call): Runs a broadcast ping and
returns string containing replying hosts.
(xst_network_find_hosts): Return an array of IPs of the hosts
in all the adjacent local networks.
* util.pl.in (xst_process_fork): Do a pipe, fork
a process where the child executes a given function,
return process info (pid, fd) in the parent.
(xst_process_kill): Kill process, close pipe.
(xst_process_list_check_ready): With a timeout, do
a select over all of the pipe fd's of a list of procs.
2001-07-05 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_ipv4_str2vec): Routines
for ipv4 mannipulations.
(xst_network_ipv4_vec2str): Converse.
(xst_network_ipv4_calc_subnet_vec): Subnet, bitmap.
(xst_network_ipv4_calc_subnet): Returns str version.
(xst_network_ipv4_calc_bcast_vec): Broadcast, bitmap.
(xst_network_ipv4_calc_bcast): And the str version.
(xst_network_active_interfaces_get): Why am I using sed
here? Changed to s///.
(xst_network_lookup_address_start): Does all the forking
and returns ref to proc list.
(xst_network_lookup_address_collect): Collects all the
info from the proclist available before timeout.
(xst_network_lookup_address): Split this function in
these two processes.
2001-07-04 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_lookup_address): Modified
function so it can resolve multiple addresses in
paralel.
(xst_network_fork_address_lookup): Abstracted this
process.
* *-conf.in: Put require instructions inside a BEGIN
block, which make it easier to start debugging the backends.
2001-07-04 Hans Petter Jansson <hpj@ximian.com>
* rhprinterdb2xstxml.pl: Added script to translate the RH printerdb to
XML.
2001-07-04 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_add_keyword): Quote new values if neccesary.
2001-07-03 Tambet Ingo <tambet@ximian.com>
* x.pl.in (general_parse_section): Split lines with
Text::ParseWords (right way).
Added additional field and comments to control struct $sections.
(parse_kw_list): Add to the end of list only if defined.
(x_update_keyword): Quote new values if neccesary.
(x_update_keyword): Check that new values have at least
on space between.
2001-07-03 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_lookup_address): A nice
address lookup routine, with timeout (using fork).
(xst_network_lookup_address_block): For those who have
a block fetish.
2001-07-02 Arturo Espinosa Aldama <arturo@ximian.com>
* shares-conf.in (xml_print): imports and exports tags
only appear if there is info to display. This allows me
to reuse it for network scanning.
2001-07-02 Tambet Ingo <tambet@ximian.com>
* display-conf.in (xml_parse): Removed extra 'shift'.
* x.pl.in (parse_serverlayout_screen): Implement.
(x_xml_print_serverlayout_screen): Implement.
2001-06-29 Hans Petter Jansson <hpj@ximian.com>
* print-conf.in: Make XML parsing and options writing work.
Both get and set now seem to work as expected.
2001-06-29 Arturo Espinosa Aldama <arturo@ximian.com>
* users-conf.in (my_system): use xst_file_run, only send
debug strings if $DEBUG & 2, and to STDERR, not STDOUT.
* xml.pl.in (xst_xml_read_stdin): Like, a precedence bug.
* users-conf.in (xml_parse): Use standard xst_xml_scan.
This bug comes since the no-shared-code days! It slipped!
(xml_scan): This should have been removed ages ago.
2001-06-29 Tambet Ingo <tambet@ximian.com>
* x.pl.in (x_config_set): Give up if something is wrong.
Remove Modelines from $sections list.
* display-conf.in (xml_parse): Write conf when asked to.
Bad bad typo!
* x.pl.in (x_update_section): Now we can write XF86Config files too.
2001-06-27 Tambet Ingo <tambet@ximian.com>
* util.pl.in (xst_ignore_line): Allow spaces before comments at
the start of a line.
2001-06-29 Hans Petter Jansson <hpj@ximian.com>
This implements printer settings replacement and makes more code
shared between parsing and replacement functions.
* parse.pl.in (xst_parse_printcap_buffer_load): Insert.
(xst_parse_printcap_get_next_stanza): Insert.
(xst_parse_printcap_get_next_option): Insert.
(xst_parse_printcap_parse_stanza): Insert.
(xst_parse_printcap_parse_option): Insert.
(xst_parse_printcap_find_stanza): Insert.
(xst_parse_printcap_find_option): Insert.
(xst_parse_printcap): Implement.
(xst_parse_printcap_bool): Implement.
* replace.pl.in (xst_replace_printcap_buffer_load): Remove.
(xst_replace_printcap_get_next_stanza): Remove.
(xst_replace_printcap_get_next_option): Remove.
(xst_replace_printcap_parse_stanza): Remove.
(xst_replace_printcap_parse_option): Remove.
(xst_replace_printcap_find_stanza): Remove.
(xst_replace_printcap_find_option): Remove.
(xst_replace_printcap_add_stanza): Use xst_parse_printcap_*() funcs.
(xst_replace_printcap): Use xst_parse_printcap_*() funcs.
* print.pl.in (xst_print_conf_get): Remove stray variable.
(xst_print_conf_set): Implement.
(xst_print_get_printer_parse_table): Use xst_parse_printcap(), not
generic xst_parse_cap().
(xst_print_get_printer_replace_table): Implement.
2001-06-29 Chema Celorio <chema@celorio.com>
* network-conf.in: add suport for turbolinux 7.0
2001-06-28 Hans Petter Jansson <hpj@ximian.com>
* replace.pl.in (xst_replace_printcap_print_stanza): Implement.
(xst_replace_printcap_print_option): Implement.
(xst_replace_printcap_add_stanza): Implement.
(xst_replace_printcap_add_option_slot): Implement.
(xst_replace_printcap_remove_stanza_from_buf): Implement.
(xst_replace_printcap_remove_option_slot): Implement.
(xst_replace_printcap_remove_printer): Implement.
(xst_replace_printcap): Add stanzas and options that are referred
to but not present.
2001-06-27 Hans Petter Jansson <hpj@ximian.com>
* replace.pl.in (xst_replace_cap): Comment out for now, we've got
something better up our sleeves.
(xst_replace_printcap_buffer_load): Implement.
(xst_replace_printcap_buffer_save): Implement.
(xst_replace_printcap_get_next_stanza): Implement.
(xst_replace_printcap_get_next_option): Implement.
(xst_replace_printcap_parse_stanza): Implement.
(xst_replace_printcap_parse_option): Implement.
(xst_replace_printcap_find_stanza): Implement.
(xst_replace_printcap_find_option): Implement.
(xst_replace_printcap): Implement.
2001-06-27 Arturo Espinosa Aldama <arturo@ximian.com>
* xml.pl.in (xst_xml_read_file): Code readability.
(xst_xml_read_stdin): same, and wait for magic string to stop
reading.
(xst_xml_scan): readability.
* general.pl.in (xst_run_directive): Print the request end string
after every directive. This doesn't happen for the "end" directive,
which terminates the process.
* xml.pl.in (xst_xml_print_request_end): Print a request end string,
encapsulated in an XML comment. This is for the frontends to know when
the backend is ready for new input.
* memory-conf.in (xml_print): No prototypes, thank-you. Read
http://www.perl.com/pub/language/misc/fmproto.html for enlightening.
(xml_print): Use xst_xml_print_{begin,end}.
* x.pl.in: same. Prototypes were invented to allow people to
call procedures as if they were Perl special functions. That's not
what we want to do with these functions. Perl is ugly, let's choose
"features" more carefuly. Same for shift and other abuses of the
implicit variable, but I'll kill those on the run.
2001-06-21 Arturo Espinosa Aldama <arturo@ximian.com>
* general.pl.in (xst_print_interface): sort the keys to get a better
result.
Tue Jun 12 04:41:33 2001 Arturo Espinosa <arturo@ximian.com>
* xml.pl.in (xst_xml_print_hash_hash): Sort the tags to print, to
make schema documentation easier.
(xst_xml_print_hash): same
(xst_xml_print_arrays): same
(xst_xml_print_scalars): same
2001-06-27 Hans Petter Jansson <hpj@ximian.com>
* print-conf.in: Update supported platforms.
* print.pl.in: Ditto.
* replace.pl.in (xst_replace_sh_export): Implement.
(xst_replace_sh_export_bool): Implement.
(xst_replace_cap): Implement.
(xst_replace_remove_cap_section): Implement.
2001-06-26 Tambet Ingo <tambet@ximian.com>
* xml.pl.in (xst_xml_get_text): ref safe now. Don't return 'ARRAY'
if it's reference to array, send reference.
2001-06-22 Tambet Ingo <tambet@ximian.com>
* x.pl.in (parse_modeline): Implement. Doesn't work right yet.
2001-06-21 Tambet Ingo <tambet@ximian.com>
* x.pl.in (xst_xfree4_conf_get): Added support for "SubSection"s,
improved readability A LOT, alomst a rewrite.
2001-06-20 Bradford Hovinen <hovinen@ximian.com>
* general.pl.in (xst_set_location): remove xst_archive_data
* xml.pl.in (xst_xml_scan): Don't archive XML data
2001-06-20 Tambet Ingo <tambet@ximian.com>
* general.pl.in (xst_init): Use "SET_ME_UP_HARDER" env variable to
turn on debugging (just like frontends do).
2001-06-19 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_sh_export_bool): Implement.
(xst_parse_cap): Implement.
(xst_parse_cap_bool): Implement.
* print.pl.in (xst_print_conf_get): Rewrite.
(xst_printcap_read): Eliminate.
(xst_print_printers_get): Implement.
(xst_print_get_printer_parse_table): Implement.
2001-06-15 Arturo Espinosa Aldama <arturo@ximian.com>
* general.pl.in: Deprecated some globals that come now inside a hash
structure. Those that are in a more general use should be passed to
this hash in a future "no globals!" crusade.
(xst_print_usage_synopsis): Prints the synopsis, adding get, set
and filter functions only if they are present in the directives.
(xst_print_usage_generic): The more explanatory text, with the
same rationale as above. Added explanations for the new -i and -d args.
(xst_print_usage): Simplified. May exit if requested.
(xst_print_version): Use new hash structure to get info. May exit
if requested.
(xst_set_operation): Use new structure.
(xst_set_with_param): Helper.
(xst_set_op_directive): Sets the directive, taken from cmd arg.
(xst_set_prefix): Sets the prefix.
(xst_set_dist): And the distro.
(xst_set_location): The location here.
(xst_merge_std_directives): Adds the directives supported by all
backends: end and interface. interface reveals the supported
directives in an XML format to the frontend.
(xst_init): Lots of cleanup, the new structure, and a little change
in the order of the startup sequence.
(xst_print_interface_comment): Print the directive comment in XML.
(xst_print_interface): Print the interface XML, based on the directives hash.
(xst_run_directive): The directives engine. Checks the number of
params passed and calls the corresponding function.
See the documentation on the new stuff here.
(xst_run): The function that makes the backend enter interactive
mode, or executes a directive, if given with -d at the prompt.
* *-conf.in: Changed the "main" stuff with new boilerplate.
2001-06-14 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_cap_line_clean): Implement.
(xst_parse_cap_line_read): Implement.
(xst_parse_cap_sections): Implement.
2001-06-14 Arturo Espinosa Aldama <arturo@ximian.com>
* font.pl.in (regexp_cmp_foreach): helper.
(xst_font_info_get_foundry_from_notice): Deduct foundry from copyright.
(xst_font_info_get_setwidth_from_label): Deduct setwidth from font name.
(xst_font_info_deduct_extras): From the information obtained, try to
find implicit info.
(xst_font_info_get_from_afm_buff): Parse an afm buffer, return font_info.
(xst_font_info_get_from_afm_str): Split string in \n, parse buffer.
(xst_font_info_get_from_afm): Read file into buffer, parse.
(xst_font_info_get_from_ttf2pt1): Run ttf2pt1 -A, pipe into buffer, parse.
(namerec_value): Helper for ttf routines.
(xst_font_info_get_from_ttf): Use Font::TTF to get font_info from ttf.
(xst_font_info_to_fontdir): Return fontdir line from font_info.
2001-06-13 Tambet Ingo <tambet@ximian.com>
* Makefile.am (backends): s/xconf/display/
* x.pl.in: Many improvemets, parser works.
* display-conf.in: Renamed from misnamed xconf-conf.in
Mucho improvements.
2001-06-12 Richard Bos <allabos@freeler.nl>
* platform.pl.in (check_solaris): Add Solaris check.
(xst_platform_guess): Allow for Solaris.
* hardware-conf.in: Add required requires. Make it work.
2001-06-06 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (xml_print_import_smb): Don't print tags for user and
password if they are empty/unknown.
2001-06-06 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (xml_print_import_smb): Print <user> and <password> tags.
Fixes bug #3222.
2001-06-06 Arturo Espinosa Aldama <arturo@ximian.com>
* package-conf.in: contributed by Richard Bos <allabos@freeler.nl>
* Makefile.am: added pertinent entries for package backend.
2001-06-05 Tambet Ingo <tambet@ximian.com>
* users-conf.in (change_user_chfn): Little fix.
2001-06-04 Hans Petter Jansson <hpj@ximian.com>
* disks-conf.in (get_fdisk): Know more about extended partitions.
2001-06-04 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (set): Merge things properly, so old options are kept.
* filesys.pl.in (xst_filesys_table_merge_subset): Fix doc text.
2001-06-04 Hans Petter Jansson <hpj@ximian.com>
* filesys.pl.in (xst_filesys_info_set_network_host): Nicen input slightly.
(xst_filesys_info_set_network_path): Nicen input slightly.
(xst_filesys_info_get_dump): Return 0 if empty.
(xst_filesys_info_get_priority): Return 0 if empty.
(xst_filesys_entry_identify): Ensure return values agree with changes
in xst_filesys_info_set_network_*().
2001-06-04 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (remove_shares_from_filesys_table): Implement.
(set): Remove shares from filesys table.
2001-06-04 Tambet Ingo <tambet@ximian.com>
* x.pl.in: Add
* xconf-conf.pl.in: Add
2001-06-04 Tambet Ingo <tambet@ximian.com>
* users-conf.in (change_user_chfn): Added hack to support Debian's chfn.
2001-06-01 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_dialing_set): Remove old sections
that are not in the new values.
(xst_network_suse70_set_ppp): Remove dialing hash entries,
instead of removing in the file: this is done in dialing_get.
(xst_network_iface2dial): don't overwrite login, phone and
password: that's done at frontend level.
Typo fixes.
Lots of other typo fixes in network.pl.in. Basicly, I left
SuSE 7.0 ppp management working, and did a lot of testing to
make sure of that.
2001-06-01 Hans Petter Jansson <hpj@ximian.com>
Implement inline replacing of NFS entries and options.
* share.pl.in (xst_share_nfs_info_dup): Implement.
(xst_share_nfs_info_match_data): Implement.
(xst_share_nfs_table_dup): Implement.
(xst_share_nfs_table_find): Implement.
(xst_share_nfs_table_find_info_equivalent): Implement.
(xst_share_nfs_client_info_dup): Implement.
(xst_share_nfs_client_table_dup): Implement.
(xst_share_nfs_exports_get_next_entry_line): Implement.
(xst_share_nfs_exports_get_entry_line_fields): Implement.
(xst_share_nfs_info_print_clients): Implement.
(xst_share_nfs_info_print_entry): Implement.
(xst_share_nfs_client_print_option_hash): Implement.
(xst_share_nfs_info_print_synthesized_entry): Implement.
(xst_share_nfs_exports_add_entry): Implement.
(xst_share_nfs_exports_update_entry): Implement.
(xst_share_nfs_exports_remove_entry): Implement.
(xst_share_nfs_exports_get_entry_line_point): Implement.
(xst_share_replace_nfs_exports): Re-implement.
2001-05-31 Arturo Espinosa Aldama <arturo@ximian.com>
* replace.pl.in (xst_replace_remove_ini_section): remove lines
if they're left empty. This is nicer.
* network.pl.in: Multiple fixes to new SuSE 70 ppp stuff. Did
some testing. Still one bug in output remaining.
2001-05-30 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_iface2dial): To merge ppp interface
information with dialing stuff.
(xst_network_suse70_set_ppp): Implemented, with some trickery.
(xst_network_suse70_ppp_iface_activate): Takes care of SuSE 70
ppp interface activation.
(xst_network_suse70_activate_ppp): same.
* parse.pl.in (xst_parse_replace_hash_values): If replaced value
is a reference, set that as the interpolated value, not the
string representation.
* replace.pl.in (xst_replace_ini_bool_onoff): not required any more.
* network.pl.in (xst_network_get_interface_replace_table): A typo.
Bug 3133.
(xst_network_dialing_get): Added new wvdial capabilities SuSE 70
requires.
(xst_network_dialing_set): same.
(xst_network_get_new_dialing_dev): Get the latest device from the
dialing hash.
(xst_network_dial2iface): Convert a dialing profile into a ppp
interface, for SuSE 7.0.
(xst_network_suse70_get_ppp): Get ppp interfaces from dialing info.
2001-05-30 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_set_global_kw): Made it sane.
(xst_boot_set_global): ditto.
* file.pl.in (xst_file_buffer_save): Treat $buffer as scalar only if it is scalar.
2001-05-29 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_set_ppp_options_re): Respect
comments and spacing in ppp files.
(xst_network_set_ppp_options_unsup): Same.
2001-05-29 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in (xst_network_get_replace_table): Remove RESOLV_CONF
in SuSE 7.0: it's created by SuSEconfig.
* file.pl.in (xst_file_remove): Removes a file.
2001-05-29 Tambet Ingo <tambet@ximian.com>
* users-conf.in (change_user_chfn): Implement. use chfn to set finger infromation.
(add_user): use (change_user_chfn).
(change_user): ditto.
2001-05-28 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_parse_images): Preserve leading spaces of images.
(xst_boot_parse_global): Don't double escape quotes.
(xst_boot_conf_edit_image): Fixed bug where XstPartitionType lines got wrong.
(xst_boot_conf_add_image): ditto.
2001-05-25 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_file_backup_rotate_dirs): Create the 'First' directory on
the first invocation, and provide a symlink to it which is rotated with
the other dirs. Fixes bug #2732.
2001-05-25 Arturo Espinosa Aldama <arturo@ximian.com>
* service.pl.in (xst_service_sysv_get_paths): Added redhat-7.1.
* parse.pl.in (xst_parse_shell_escape): Some special chars
are escaped when surrounded by quotes, so let's apply quotes
if they appear, and not escape them with '\', as they may
be latter surrounded by quotes and make the backslash appear.
* parse.pl.in: More comment documentation.
* replace.pl.in: same.
2001-05-25 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_conf_set_images): Reimplement.
(xst_boot_conf_add_image): Helper function for (xst_boot_conf_set_images).
(xst_boot_conf_edit_image): ditto.
(xst_boot_conf_delete_image): ditto.
(xst_boot_conf_is_image): ditto.
(xst_boot_conf_find_image): ditto.
2001-05-25 Chema Celorio <chema@celorio.com>
* boot-conf.in (xml_print_global_kws): remove print. duh !
* boot.pl.in (xst_boot_parse_global): ditto
2001-05-24 Arturo Espinosa Aldama <arturo@ximian.com>
* 0.5 RELEASE
2001-05-24 Arturo Espinosa Aldama <arturo@ximian.com>
* share.pl.in (xst_share_parse_nfs_exports): If the pattern
for a client_info is empty, assume 0.0.0.0/0.
* network.pl.in (xst_network_suse70_interface_activate): Fixed
bug that prevented ifaces from activation/deactivation in suse70.
(xst_network_interface_set): Force activation setup of interfaces.
Implemented force macanism in other activation functions.
* parse.pl.in (xst_parse_replace_files): return () if $values
is undef.
(xst_parse_from_table): Don't unshift files if none were passed.
* replace.pl.in (xst_replace_from_table): same.
* report.pl.in (xst_report_enter): Ugly hack to avoid po warnings.
2001-05-23 Arturo Espinosa Aldama <arturo@ximian.com>
* replace.pl.in (xst_replace_pump_get_next_option): More pump
stuff.
(xst_replace_pump_option_locate): Implemented.
(xst_replace_pump_get_device): Implemented.
(xst_replace_pump_add_device): Implemented.
(xst_replace_pump_iface_option_str): Implemented.
(xst_replace_pump_iface_kw): Implemented.
(xst_replace_pump_iface_kw_not): Implemented.
* parse.pl.in (xst_parse_from_table): eliminated dumb paranoia.
(xst_parse_shell_unescape): Name change. This function unescapes.
(xst_parse_shell_escape): Taken for replace, to use in other places.
Pump stuff that may be useful for dhcpd.conf some day:
(xst_parse_pump_get_next_option): Implemented.
(xst_parse_pump_get_device): Implemented.
(xst_parse_pump_get_iface_option_ref): Implemented.
(xst_parse_pump_get_iface_kw): Implemented.
(xst_parse_pump_get_iface_kw_not): Implemented.
* network.pl.in (xst_network_pump_iface_supported): check if
the iface is a type that pump supports.
(xst_network_pump_get_nodns): Implemented.
(xst_network_pump_set_nodns): Implemented.
Added pump support to all distros that make use of it. peerdns
inteface tag deprecated.
* network-conf.in (xml_print): print new tag smartdhcpcd.
2001-05-23 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in: XML tags: browseable -> browse, writable -> write.
2001-05-24 Chema Celorio <chema@celorio.com>
* network.pl.in (xst_network_get_interface_replace_table): added
RH 7.1 based on RH 7.0
* network-conf.in: added RH 7.1
2001-05-23 Chema Celorio <chema@celorio.com>
* users-conf.in: added RH 7.1
2001-05-23 Arturo Espinosa <arturo@ximian.com>
* network.pl.in (xst_network_debian_woody_set_auto): Fixed
invariant bug in while loop (bug 2714 fixed).
2001-05-23 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_set_global): Quote globals with spaces
if neccecary.
(xst_boot_conf_replace_image): Reverted from 1.23 changes,
fixes bugs 2986 and 2989.
2001-05-22 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (xml_parse_conf): It's path, not point.
2001-05-20 Theo van Klaveren <t.vanklaveren@student.utwente.nl>
* filesys.pl.in (xst_filesys_mount_cmd_parse): New function,
parses output from 'mount -p' on FreeBSD.
* platform.pl.in (check_freebsd): New function, double-checks
FreeBSD version by querying the sysctl kern.version.
(xst_platform_guess): Also check for FreeBSD.
* shares-conf.in: Add FreeBSD to supported platforms.
* users-conf.in: Add FreeBSD to supported platforms. Add paths
for shadow_names, login_defs_names and skel_dir on FreeBSD.
(read_passwd_shadow): Munge shell comments from passwd and
shadow_passwd.
2001-05-21 Arturo Espinosa Aldama <arturo@ximian.com>
* xml.pl.in (xst_xml_scan): Use new debug_print_log func.
* users-conf.in (change_user): Just changed arg order to
make it easier to compare it with man page when checking
compatibility.
* replace.pl.in (xst_replace_sh): Changed behaviour so that
shell var will be expunged from file if $value eq "".
(xst_replace_sh_join): Implemented. Required by network:suse70
* platform.pl.in (check_lsb): Check through lsb file, which
may make our lives easier in the near future.
check_*: use $xst_prefix to check platform too.
* network.pl.in (xst_network_suse70_active_interfaces_get):
Don't list "lo" as an active interface.
(xst_network_suse70_ifaces_get_existing): Better code:
finds all NETDEV vars in rc.config and takes values from there.
(xst_network_suse70_parse_iface_num): Braking the 4
interface barrier here too. SuSE 7.0 scripts are broken, still.
(xst_network_suse70_set_ifconfig_arg): Beautified output.
(xst_network_suse70_get_file): Completly missed implemening
this one. New interfaces weren't getting a NETDEV number.
(xst_network_get_file): "suse-7.0" entry added.
(xst_network_suse70_interface_delete): Was calling activate
_by_dev with wrong value for $dev.
(xst_network_suse70_interface_delete): Oops. Use "_" between
var type and $dev.
(xst_network_ensure_loopback_interface): Those distros that
map to "" are not "ensured".
(xst_network_get_interfaces_parse_table): Changed from XST_NAME
to XST_IFACE_NAME, which is more verbose.
(xst_network_get_interface_replace_table): same.
* debug.pl.in (xst_debug_print_log_to_file): Seems like
print can't handle strings larger than 4096 bytes. This
routine is for printing large strings that may contain
\n's inside (like in.xml).
2001-05-18 Arturo Espinosa Aldama <arturo@ximian.com>
* replace.pl.in (xst_replace_sh_set_hostname): Wasn't
receiving @_ values.
(xst_replace_sh_set_domain): same.
* parse.pl.in (xst_parse_sh_get_domain): Wasn't receiving
@_ values. duh.
(xst_parse_sh_get_hostname): same, and a typo.
* network.pl.in (xst_network_suse70_active_interfaces_get):
translate from SuSE interface numbers to actual devices.
(xst_network_interface_active): Comparison was numerical.
Changed to string cmp.
(xst_network_suse70_parse_iface_sh): Interpolation wasn't
working fine here. Added explicit braces.
(xst_network_suse70_replace_iface_sh): same.
(xst_network_suse70_get_ifconfig_arg): Returned value was
1/undef, and not $1, as thought. Fixed.
(xst_network_suse70_set_ifconfig_arg): Precedence bug.
(xst_network_suse70_set_ifconfig_ip): same.
Using a more flexible regexp for HOST_CONF order parsing.
* network-conf.in: Added suse-7.0 to @platforms.
* users-conf.in: Added suse-7.0
* service.pl.in (xst_service_sysv_get_paths): an
explanation comment I found useful to set.
* replace.pl.in (xst_replace_sh_set_hostname): Implemented.
(xst_replace_sh_set_domain): Implemented.
* parse.pl.in (xst_parse_sh_split): Implemented. After
taking a sh value, it splits it, returning ref to arr.
(xst_parse_sh_get_hostname): Implemented.
(xst_parse_sh_get_domain): Implemented.
* network.pl.in (xst_network_suse70_ifaces_get_existing):
Implemented.
(xst_network_suse70_parse_iface_num): Implemented. Not used.
(xst_network_suse70_parse_iface_auto): Implemented.
(xst_network_suse70_replace_iface_auto): Implemented.
(xst_network_suse70_parse_iface_sh): Implemented.
(xst_network_suse70_replace_iface_sh): Implemented.
(xst_network_suse70_get_ifconfig_arg): Implemented.
(xst_network_suse70_set_ifconfig_arg): Implemented.
(xst_network_suse70_set_ifconfig_ip): Implemented.
(xst_network_suse70_interface_activate_by_dev): Implemented.
(xst_network_suse70_interface_activate): Implemented.
(xst_network_suse70_interface_delete): Implemented.
(xst_network_suse70_parse_bootproto): Implemented.
(xst_network_suse70_replace_bootproto): Guess what? Implemented.
suse-7.0 parse/replace tables implemented too.
* network-conf.in (xml_print, xml_parse): Got rid of "forward"
option, and added "gateway" option, for those broken distros.
* file.pl.in (xst_file_run): Trivial style changes.
2001-05-17 Hans Petter Jansson <hpj@ximian.com>
* disks-conf.in (get_fdisk): Omit entries for extended partitions.
2001-05-17 Hans Petter Jansson <hpj@ximian.com>
* gettext.pl.in (_): This manner of gettexting disabled due to speed
considerations.
2001-05-17 Arturo Espinosa Aldama <arturo@ximian.com>
* service.pl.in (xst_service_sysv_get_paths): Added woody and
suse 7.0 paths.
* *-conf.in: Added suse 7.0, except for network and users.
* time-conf.in: Added suse 7.0 table, and missing woody entries.
2001-05-17 Tambet Ingo <tambet@ximian.com>
* users-conf.in (read_skel_dir): Implement.
(xml_print): Print out files for Profiles.
2001-05-16 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (xml_print_export_nfs): Add (unset) names to NFS exports.
(xml_print_export_smb): Add export name to XML output.
2001-05-16 Hans Petter Jansson <hpj@ximian.com>
* filesys.pl.in (xst_filesys_info_settings_to_options): Implement.
(xst_filesys_info_remove_option): Implement.
* shares-conf.in (set): Add "noauto" to non-mount shares.
2001-05-16 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in: Multiplatformize.
(distro_file): Implement.
(remove_local_from_filesys_table): Remove.
(remove_network_from_filesys_table): Remove.
2001-05-16 Hans Petter Jansson <hpj@ximian.com>
* disks-conf.in (update_partition): Fix breakage, call
xst_filesys_ext2_device_to_label().
2001-05-16 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_open_filter_write_from_names): Fix log output.
* filesys.pl.in (xst_filesys_table_to_hash): Not in use, so removed.
(xst_filesys_hash_to_table): Ditto.
(xst_filesys_table_merge_superset): Use new compare algorithm, not
key generator.
(xst_filesys_table_merge_subset): Ditto.
(xst_filesys_fstab_get_next_entry_line): Fix printing of ignored lines.
(xst_filesys_info_print_device): Implement.
(xst_filesys_info_print_entry): Reduce.
(xst_filesys_fstab_replace): Fix to only print permanent file systems.
Comment out some debug.
(xst_filesys_mount_on): Implement.
(xst_filesys_mount_off): Implement.
(xst_filesys_mount_sync_all): Implement.
* share.pl.in (xst_share_replace_nfs_exports): Put newline in right place.
* xml.pl.in (xst_xml_get_state): Implement.
* shares-conf.in: Completely rewritten shares backend.
2001-05-16 Arturo Espinosa Aldama <arturo@ximian.com>
* platform.pl.in (xst_platform_guess): Changed code so xst_dist = "unknown"
if none of the checks passed.
(check_*): they all now return -1 if failed, or dist string if success. No
more global manipulation.
2001-05-15 Arturo Espinosa Aldama <arturo@ximian.com>
* replace.pl.in (xst_replace_interfaces_stanza_value): function renamed
from "interface_stanza".
* network.pl.in (xst_network_deb22_replace_bootproto): function renamed.
* *-conf.in: Added support for Debian Woody. Woody users will have to
do echo 'woody' > /etc/debian_version
* boot.pl.in: debian-woody works as redhat-6.2.
* network.pl.in: created new interface parse/replace tables for debian woody,
because the /etc/network/interfaces format changes. Partialy implemented
(only auto stanza supported, but not mapping stanza). Not tested.
* parse.pl.in: stanza scanning routines no longer assume stanzas are iface
type.
* replace.pl.in: same here. Added auto_stanza create.
2001-05-16 Hans Petter Jansson <hpj@ximian.com>
* share.pl.in (xst_share_smb_info_get_name): Implement.
(xst_share_smb_info_set_name): Implement.
(xst_share_smb_table_find): Implement.
(xst_share_parse_smb_conf): Set share name as well.
(xst_share_replace_smb_conf): Implement.
(xst_share_replace_nfs_exports): Cosmetic fix.
* replace.pl.in (xst_replace_ini): Change so that blank values will
remove the variable altogether.
(xst_replace_remove_ini_section): Implement.
(xst_replace_remove_ini_var): Implement.
* test.pl: Test cases for my personal enjoyment tomorrow.
2001-05-15 Hans Petter Jansson <hpj@ximian.com>
* share.pl.in (xst_share_replace_nfs_exports): Implement.
2001-05-15 Hans Petter Jansson <hpj@ximian.com>
* share.pl.in (xst_share_smb_info_new): Implement.
(xst_share_smb_info_set): Implement.
(xst_share_smb_info_get_point): Implement.
(xst_share_smb_info_set_point): Implement.
(xst_share_smb_info_get_comment): Implement.
(xst_share_smb_info_set_comment): Implement.
(xst_share_smb_info_get_enabled): Implement.
(xst_share_smb_info_set_enabled): Implement.
(xst_share_smb_info_get_browse): Implement.
(xst_share_smb_info_set_browse): Implement.
(xst_share_smb_info_get_public): Implement.
(xst_share_smb_info_set_public): Implement.
(xst_share_smb_info_get_write): Implement.
(xst_share_smb_info_set_write): Implement.
(xst_share_smb_table_new): Implement.
(xst_share_smb_table_add): Implement.
(xst_share_nfs_info_new): Implement.
(xst_share_nfs_info_set): Implement.
(xst_share_nfs_info_get_point): Implement.
(xst_share_nfs_info_set_point): Implement.
(xst_share_nfs_info_get_client_table): Implement.
(xst_share_nfs_info_set_client_table): Implement.
(xst_share_nfs_table_new): Implement.
(xst_share_nfs_table_add): Implement.
(xst_share_nfs_client_info_new): Implement.
(xst_share_nfs_client_info_set): Implement.
(xst_share_nfs_client_info_get_pattern): Implement.
(xst_share_nfs_client_info_set_pattern): Implement.
(xst_share_nfs_client_info_get_write): Implement.
(xst_share_nfs_client_info_set_write): Implement.
(xst_share_nfs_client_table_new): Implement.
(xst_share_nfs_client_table_add): Implement.
(xst_share_parse_smb_conf): Implement.
(xst_share_parse_nfs_exports): Implement.
* Makefile.am: Add share.pl.in.
2001-05-15 Hans Petter Jansson <hpj@ximian.com>
* filesys.pl.in (xst_filesys_translate_ext2_device_to_label): Rename to
xst_filesys_ext2_device_to_label.
(xst_filesys_info_dup): Fix bug in options copying.
(xst_filesys_info_merge_options): Fix typo in doc.
(xst_filesys_info_set_options): Sync doc with actual use.
(xst_filesys_info_match): Implement.
(xst_filesys_info_match_options): Implement.
(xst_filesys_info_match_data): Implement.
(xst_filesys_table_find): Reimplement.
(xst_filesys_table_find_info_equivalent): Implement.
(xst_filesys_hash_to_table): Fix typo in doc.
(xst_filesys_entry_identify): Implement.
(xst_filesys_entry_identify_info): Implement.
(xst_filesys_parse_fstab): Rename to xst_filesys_fstab_parse and shortened
drastically.
(xst_filesys_parse_mtab): Rename to xst_filesys_mtab_parse and shortened
drastically.
(xst_filesys_fstab_get_next_entry_line): Implement.
(xst_filesys_fstab_get_entry_line_fields): Implement.
(xst_filesys_fstab_get_entry_line_comments): Leave unimplemented for now.
(xst_filesys_info_print_options): Implement.
(xst_filesys_info_print_entry): Implement.
(xst_filesys_fstab_add_entry): Implement.
(xst_filesys_fstab_update_entry): Implement.
(xst_filesys_fstab_remove_entry): Implement.
(xst_filesys_fstab_replace): Implement.
2001-05-15 Chema Celorio <chema@celorio.com>
* internetsharing-conf.in (xst_ishare_rules_get_ipchains): implement.
2001-05-14 Chema Celorio <chema@celorio.com>
* time-conf.in: tested in RH 7.1. Add the platform
2001-05-13 Chema Celorio <chema@celorio.com>
* internetsharing-conf.in (conf_get_replace_table): initial code for
this tool. It is not doing a lot right now
2001-05-12 Chema Celorio <chema@celorio.com>
* time-conf.in (xml_parse): small typo
2001-05-12 Hans Petter Jansson <hpj@ximian.com>
* time-conf.in: Fixed timezone write bug.
2001-05-10 Hans Petter Jansson <hpj@ximian.com>
* report.pl.in: Added new key to message table.
2001-05-10 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_split_hash_with_continuation): Implement.
2001-05-10 Hans Petter Jansson <hpj@ximian.com>
* disks-conf.in: Include '-' in fstab option matching.
2001-05-10 Hans Petter Jansson <hpj@ximian.com>
* network.pl.in: For redhat-7.0, smb.conf is in /etc/samba/smb.conf. Make
a new pair of parse/replace-tables for this.
2001-05-09 Hans Petter Jansson <hpj@ximian.com>
* filesys.pl.in (xst_filesys_info_get_network_host): Implement.
(xst_filesys_info_set_network_host): Implement.
(xst_filesys_info_get_network_path): Implement.
(xst_filesys_info_set_network_path): Implement.
(xst_filesys_info_get_mounted): Implement.
(xst_filesys_info_set_mounted): Implement.
(xst_filesys_info_get_permanent): Implement.
(xst_filesys_info_set_permanent): Implement.
(xst_filesys_info_get_detected): Implement.
(xst_filesys_info_set_detected): Implement.
(xst_filesys_table_set_mounted_true): Implement.
(xst_filesys_table_set_permanent_true): Implement.
(xst_filesys_table_set_detected_true): Implement.
(xst_filesys_parse_fstab): Parse network-specific options.
(xst_filesys_parse_mtab): Ditto.
2001-05-09 Arturo Espinosa Aldama <arturo@ximian.com>
* 0.4 RELEASE
2001-05-09 Hans Petter Jansson <hpj@ximian.com>
* time-conf.in: Red Hat 7.0 timezone fix from Arturo.
2001-05-09 Arturo Espinosa Aldama <arturo@ximian.com>
* report.pl.in (xst_report): We're sending report strings into debug
file again: they're quite useful.
* debug.pl.in (xst_debug_open_output_file): set up a hash here so we
cache the opened files.
(xst_debug_print_string_to_file): Not closing this files any more.
2001-05-08 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (set_immediate): Fix up the path before creating share
string.
2001-05-08 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (set_immediate): Use smbmount directly and don't rely on
fstab entry.
2001-05-08 Arturo Espinosa Aldama <arturo@ximian.com>
* network-conf.in (xml_print): Oops: print dialinstalled
tag too.
* parse.pl.in (xst_parse_split_ref): Do a regexp comparison,
which is more flexible.
* network.pl.in (xst_network_get_parse_table): Check if
wvdial tool is installed. Just to warn the user about it.
(xst_network_get_pap_passwd): Handle values surrounded
by double quotes.
* file.pl.in (xst_file_tool_installed): Check if a tool
is found. Return 1/0 value.
* general.pl.in (xst_end): Turn off reporting here, to make
sure no further reporting gets mixed with the XML.
* network.pl.in (xst_network_sysconfig_ifaces_get_existing):
only check files that START with ifcfg-. This was confusing
the backend with Mandrake's, and potentially others, backup
files.
2001-05-08 Arturo Espinosa Aldama <arturo@ximian.com>
After some profiling, some optimizations:
* report.pl.in (xst_report): Only send debug string if debug flag
is set.
* parse.pl.in (xst_parse_from_table): Calling xst_report instead
of doing a direct debug.
* gettext.pl.in (gettext): gettext results are now cached. This
is still too expensive, and we should use the gettext CPAN module.
* file.pl.in (xst_file_open_read_from_names): removed unnecesary
debug function.
(xst_file_run): system already calls with /bin/sh -c. Removed.
2001-05-07 Arturo Espinosa Aldama <arturo@ximian.com>
* report.pl.in (xst_report_enter, xst_report_leave): trivialized
until a new solution comes. Read comments for comments.
2001-05-04 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (read_exports): Parse NFS exports without options correctly.
(print_xml): Print a default name for unnamed shares.
2001-05-04 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (write_fstab): Don't leave unaccounted-for shares lying
around.
(set_immediate): Use new service calls. Interim fix.
2001-04-30 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (print_xml): Fixed an output problem in <allow> tags.
2001-04-27 Hans Petter Jansson <hpj@ximian.com>
Did a h4rD<0r3 patch of disks-conf.in, to allow it to operate on
ext2 LABEL= devices found in the fstab.
* disks-conf.in (update_partition): If we have a device node, try to get
its label. If we have a label, look for partitions with matching label
in all disks. Set the label when appropriate. Retrofitted with the new
filesys code.
(get_partition): Look for label as well.
(get_partition_data): Ditto.
(read_fstab): Handle LABEL= lines.
(write_fstab): Ditto.
(xml_parse_partition): Parse <label> tags.
(xml_print): Print <label> tags.
2001-04-27 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_file_open_filter_write_from_names): Corrected a bug which
would cause the file to never be found. Local variables don't propagate
upwards.
2001-04-27 Arturo Espinosa Aldama <arturo@ximian.com>
* parse.pl.in (xst_parse_process_sh_line): sepparated from
shell parsing code for reusability.
* boot.pl.in (xst_boot_conf_replace_image): simplified function.
Still too big, but not as much. Fixed bug that appeared when two
sections using the same image but different label. No values
come out with the quotes inside. This are added/deleted now at
the backend level.
* boot-conf.in (xml_parse_boot): Added keytable support, guided by
some unexplained impulse.
(xml_print): replaced xml_print_globals with xst_xml_print_scalars.
2001-04-26 Arturo Espinosa Aldama <arturo@ximian.com>
* boot-conf.in: removed useless commented debug code.
* boot.pl.in: Added mandrake-7.2 and debian-2.2 table equivalences.
Fixed bug where a comment would get into the options hash.
* memory-conf.in: end_of_description; should go at beginning of line.
* time-conf.in: qw values were separated by comma. fixed.
timezone description file comments are those that START with #.
2001-04-26 Chema Celorio <chema@celorio.com>
* Makefile.am (EXTRA_DIST): add print-conf.in to pass distcheck
(EXTRA_DIST): added mouse-conf.in
2001-04-26 Arturo Espinosa Aldama <arturo@ximian.com>
* boot-conf.in: Added mandrake-7.2 and debian-2.2 as supported platforms.
* disks-conf.in: Added mandrake-7.2 and debian-2.2 as supported platforms.
* memory-conf.in: Added mandrake-7.2 and debian-2.2 as supported platforms.
Some indentation corrections.
* print.pl.in: Escaped a couple of hashes that confused emacs.
* print-conf.in: Added mandrake-7.2 and debian-2.2 as supported platforms.
* users-conf.in: Added mandrake-7.2 and debian-2.2 as supported platforms.
2001-04-25 Arturo Espinosa Aldama <arturo@ximian.com>
* filesys.pl.in (xst_filesys_translate_ext2_device_to_label):
chomp is the same in this case, and a common idiom. Also,
always return $label, as "" eq undef.
Some other style changes.
(xst_filesys_table_merge_superset): merge stuff missing in
first table from second one.
(xst_filesys_table_merge_subset): delete stuff in first table
missing in second.
(xst_filesys_table_to_hash): This made these two possible.
(xst_filesys_hash_to_table): Don't you love Perl?
(xst_filesys_info_merge): Merge stuff inside infos.
(xst_filesys_info_merge_options): And options.
(merge_hashes): Small utility that makes life more bearable.
2001-04-23 Arturo Espinosa <arturo@ximian.com>
* debug.pl.in: minor cosmetic change to path.
* general.pl.in: require gettext.pl routines and set textdomain
to "ximian-setup-tools".
* gettext.pl.in: Removed function N_. This is only a C trick
to fool the preprocessor. Oh, but this is not C.
* report.pl.in: Surround strings to be translated by '_()'.
2001-04-23 Arturo Espinosa <arturo@ximian.com>
* network.pl.in: init.d script for smb in Debian is samba.
* service.pl.in (xst_service_sysv_get_paths): Added paths for
Debian and Mandrake.
* time-conf.in: Check for service availability and activation.
Minor indentation fixes.
2001-04-23 Arturo Espinosa <arturo@ximian.com>
* parse.pl.in (xst_parse_interfaces_option_str/kw): this code
was passing invalid xst_report keys. How did this get here?
* time-conf.in: redhat-7.0, mdk-7.2 & debian-2.2 parse/replace
tables.
2001-04-20 Arturo Espinosa <arturo@ximian.com>
* report.pl.in (xst_report): As we are killing the format strings
from the frontend common code, we pass it in the report now.
2001-04-19 Arturo Espinosa <arturo@ximian.com>
* file.pl.in (xst_file_run): return -1 if command fails to be found.
return system (command) / 256 (as stated in perlfunc) to return exit
code of process. Fixed stdio/stderr redirection.
(xst_file_locate_tool): return trivialy if path is absolute.
* network.pl.in: when checking for "smbuse", use new service behaviour
to check for smbd and nmbd.
Parsing for hosts and dns servers now filters repeated entries out.
* service.pl.in (xst_service_sysv_get_status): some init.d scripts are broken.
Stole redhat's init.d/function:status to do new, more fine-grained checking.
(xst_service_sysv_get_status_any): just a proxy.
(xst_service_sysv_run_initd_script): fixed init.d script invocation typo.
(xst_service_sysv_set_status): Always set links, to fix broken setups.
* network-conf.in (xml_parse_network, push_unique): when parsing hosts and
dns servers, filter repeated entries out.
* parse.pl.in (xst_parse_split_all_unique_hash_comment,
xst_parse_split_first_array_unique): new functions that return arrays with
unique elements.
2001-04-17 Arturo Espinosa <arturo@ximian.com>
* file.pl.in: changed wrong report keys.
* network-conf.in: smbuse and smbinstalled support.
* network.pl.in: ditto.
* service.pl.in (xst_service_sysv_installed): tells if certain service
is installed, by looking for the sysv script. Maybe should use rpm or
dpkg for this.
2001-04-14 Chema Celorio <chema@celorio.com>
* time-conf.in (conf_get_replace_table): typo . duh !
* network-conf.in: ditto
* users-conf.in: add Mandrake 7.2
2001-04-14 Chema Celorio <chema@celorio.com>
* time-conf.in: add Mandrake 7.2
(conf_get_replace_table): link mdk 7.2 to rh 6.2
(conf_get_parse_table): ditto.
2001-04-11 Bradford Hovinen <hovinen@ximian.com>
* xml.pl.in (xst_xml_scan): Call &xst_archive_data
* general.pl.in (xst_archive_data): Implement. Archive data with
the Ximian archiver
* Makefile.am ($(perl_libs)): Add substitution for bin directory
2001-04-03 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (read_fstab): Fix detection of username for SMB imports.
2001-04-03 Ravi Pratap <ravi@che.iitm.ac.in>
* .cvsignore : add mouse-conf.in
2001-04-02 Michael Meeks <michael@ximian.com>
* backends/print.pl.in: Revise to simplify
* backends/print-conf.in: ditto.
2001-03-30 Ravi Pratap <ravi@che.iitm.ac.in>
* mouse-conf.in (get, set, filter) : Add
(xst_mouse_conf_get, xml_print): Implement
2001-03-29 Ravi Pratap <ravi@che.iitm.ac.in>
* mouse-conf.in : Add
* Makefile.am : Modify accordingly
2001-04-02 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in: Generate/parse XML suitable for displaying in e-tables.
2001-04-02 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in: Fixed broken report calls.
2001-04-02 Kenneth Christiansen <kenneth@gnu.org>
* perldoc.pl: A JavaDoc like system for Perl
* option.pl: A module required by the above program.
2001-03-31 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_fstab): Went back underground, now rumored to
be living in filesys.pl.in, under the name xst_filesys_parse_fstab().
2001-03-31 Hans Petter Jansson <hpj@ximian.com>
* filesys.pl.in: Added. Implements parsing of fstab and mtab files,
and manipulating the information presented by these as in-memory
structures.
2001-03-30 Arturo Espinosa Aldama <arturo@ximian.com>
* report.pl.in (xst_report): new "::" separated report format.
* general.pl.in: when asking for report, set $xst_do_report, not
$xst_do_verbose.
2001-03-29 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_scan): Now accepts a filename to scan from. Fallback
remains stdin.
2001-03-29 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_fstab): Don't use -> for hash indirection.
2001-03-29 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_fstab): Implement.
2001-03-29 Kenneth Christiansen <kenneth@gnu.org>
* internet-share: replacement for ishare-launc.pl. Try to follow
the naming use in /etc/rc.d/rc.init. If you place this file there
and put the config file in the dir specified in internet-share it
should be able to run this script at startup.
* ishare-launch.pl: remove
2001-03-29 Kenneth Christiansen <kenneth@gnu.org>
* internet-config.cfg: Template for now an internet config can look
* ishare-launch.pl: Launcher program that reads the above config file
and activates the settings.
2001-03-29 Hans Petter Jansson <hpj@ximian.com>
* debug.pl.in (xst_debug_print_struct): Print all arguments.
(xst_debug_print_struct_r): Indentation correction.
2001-03-29 Simo Sorce <simo.sorce@polimi.it>
* shares-conf.in (xml_print): Make XML printing work again.
* util.pl.in (xst_read_boolean): Ignore case in boolean-denoting strings.
2001-03-29 Arturo Espinosa <arturo@ximian.com>
* report.pl.in: Report entries for replace.
* replace.pl.in: Documented functions, and
added report stuff too.
2001-03-29 Tambet Ingo <tambet@ximian.com>
* users-conf.in (read_shells): Implement.
(xml_print_shells): Implement.
* general.pl.in (xst_init): Fixed typo.
2001-03-28 Hans Petter Jansson <hpj@ximian.com>
* general.pl.in: Honour --verbose flag like --report.
* report.pl.in (xst_report): --verbose output is human-readable. Make sure
verbose output gets printed independently of report - they're two
different requestable output log formats.
(xst_report_message): Trivial re-indent of table.
2001-03-28 Arturo Espinosa <arturo@ximian.com>
* network.pl.in: smbuse, a feature that reports if
the samba daemon is running.
2001-03-28 Arturo Espinosa <arturo@ximian.com>
* report.pl.in: New report code, which dumps the use
of mayor and minor numbers and uses keys instead. A
hash, mapping keys to messages is at the end of this
file. Fitted progress report with this scheme.
* *.in: use new reporting code. Some other naming and
style corrections I found on the way.
2001-03-28 Ryan Boren <rboren@fuzzybelly.org>
* print.pl.in (xst_printcap_read): parse the ##PRINTTOOL##
line to grok another description
* print-conf.in (xml_parse, xml_parse_printer): fixup
(xml_parse_section): impl.
(xml_print_printer): add description.
2001-03-26 Tambet Ingo <tambet@ximian.com>
* users-conf.in (write_logindefs): Implement.
2001-03-26 Ryan Boren <rboren@fuzzybelly.org>
* backends/print-conf.in (xst_printcap_read): Fix spool
naming and contents assumptions.
2001-03-22 Michael Meeks <michael@ximian.com>
* backends/print-conf.in (xml_print): don't put redundant
extra print header and footer in.
2001-03-21 Ryan Boren <rboren@fuzzybelly.org>
* backends/*: my $var -> my ($var) everywhere
* backends/*: @_[n] -> $_[n] everywhere
* backends/network-conf.in: Use qw in places.
* backends/*: forward -> "forward" etc.
* backends/parse.pl.in, backeds/replace.pl.in: replace
\n in regexps with $n.
2001-03-21 Michael Meeks <michael@ximian.com>
* Makefile.am: add print bits.
* print-conf.in: Add.
* print.pl.in: Add.
* parse.pl.in (xst_shell_escape): split from
(xst_parse_sh): here.
(xst_parse_sh_export): impl.
2001-03-21 Tambet Ingo <tambet@ximian.com>
* users-conf.in (xml_scan): We need raw xml and slightly modified from xst_xml_scan.
(save_profiles): Implement.
* file.pl.in (xst_file_get_data_path): Implement.
(xst_buffer_save): Now it can write one line of text also.
* users-conf.in (xml_print_profiles): Don't print empty tags if no profiles defined.
2001-03-20 Arturo Espinosa <arturo@ximian.com>
Bug fixes for Debian port to work well.
* network.pl.in (xst_network_interface_activate):
renamed to xst_network_interface_active.
(xst_network_deb22_get_file): found what this
function does. It should trivialy return $dev.
(xst_network_deb22_replace_bootproto): "none"
is mapped to "static", not the other way. Also,
the stanza value to replace is the 2nd, not 3rd.
(xst_network_debian_replace_remote_address): the
option name is "up", not "on".
(xst_network_get_interfaces_parse_table): features
not supported by distro are trivialy set to some
default value.
* replace.pl.in (xst_replace_interfaces_get_next_option):
backtrack if last lines found were empty lines, so
added options get before those, instead of after. Just
for beauty.
(xst_replace_interface_stanza_value): create stanza
if not found. Added missing chomp.
(xst_replace_interfaces_option_str): Another missing
chomp.
2001-03-20 Kenneth Christiansen <kenneth@gnu.org>
reviewed by: Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in: Added some my's
implimented stack for managing tag containers
* xml.pl.in(xst_xml_(print|format)_indent):
Made format version
* xml.pl.in(xst_xml_(print|format)_pcdata:
New function for printing pcdata
* xml.pl.in(xst_xml_(print|format)_state_tag):
Made format version, cleaned up a little
* xml.pl.in(xst_xml_container_enter): New function
* xml.pl.in(xst_xml_container_leave): New function
* xml.pl.in(xst_xml_print_container): New function
2001-03-20 Tambet Ingo <tambet@ximian.com>
* users-conf.in: Initial support for profiles.
2001-03-20 Michael Meeks <michael@ximian.com>
* xml.pl.in (xst_xml_print_line): print @_ not $_[0] -
fixes bug in memory conf.
2001-03-19 Michael Meeks <michael@ximian.com>
* Makefile.am: Clean.
2001-03-19 Arturo Espinosa <arturo@ximian.com>
* file.pl.in (xst_buffer_load): return a ref to an empty
array if file not found. This lets the buffer be
filled with stuff as soon as the function returns.
* network.pl.in: some function renaming, a minor
prefix usage bug and the interface configuration editting
functions and table for Debian 2.2. semi-tested.
* parse.pl.in: minor code simplification.
* replace.pl.in: all the debian interfaces file replacers.
2001-03-17 Hans Petter Jansson <hpj@ximian.com>
* Added gettext.pl.in by Kenneth Christiansen.
2001-03-16 Arturo Espinosa <arturo@ximian.com>
* Network parsing works fully for Debian. Tested on Poiss.
* network.pl.in (xst_network_active_interfaces_get): fixed
network discovery command.
(xst_network_interfaces_get_existing): get existing ifaces
for Debian.
(xst_network_debian_get_file): counterpart of a useless
function. :)
(xst_network_get_chap_passwd): deleted. Useless.
(xst_network_get_ppp_options_re): general function to get
options from pppd option files.
(xst_network_get_ppp_options_unsup): get unknown options.
(xst_network_debian_parse_remote_address): cool hack that
allows plip existance under Debian.
Some parse and replace table beautifying.
* parse.pl.in (xst_parse_replace_hash_values): more flexible
replacing. New syntax is %has_value%, anywhere on the param.
Check the interface parse table for Debian for an example.
(xst_parse_trivial): Just return the arguments.
Modified return value for all line parsers: the old method
regarded a line containing "-1" as EOF. Now returning
a refference to the string, or -1 if EOF.
(xst_parse_split_ref): returns -1 if key not found.
(xst_parse_split): now calls xst_parse_split_ref, and generates
old behaviour.
(xst_parse_kw): look for a keyword matching $re, reporting
existence.
(xst_parse_chat): minor nesting simplification.
Other minor bugs.
* report.pl.in: Perl style change. @array[index] -> $array[index]
2001-03-15 Arturo Espinosa <arturo@ximian.com>
* network-conf.in: Added supported platform "debian-2.2".
Removed RH-dependent gateway and gateway_dev params.
* network.pl.in (xst_network_active_interfaces_get):
improved ifconfig call and filter.
(xst_network_debian_parse_bootproto): bootproto translation
from interfaces file for a given iface in Debian.
Added Debian parsing tables and general network replace
table.
* parse.pl.in: Lots of stuff here. Basicly parsing functions
for the Debian interfaces file.
* platform.pl.in (check_debian): changed quotes to double
quotes. $xst_dist appeared as debian-$ver!
2001-03-15 Hans Petter Jansson <hpj@ximian.com>
* test.pl: Added test skeleton.
2001-03-13 Hans Petter Jansson <hpj@ximian.com>
* boot-conf.in: Modernize XML printing - do all output through
xst_xml_print_* calls.
* network-conf.in: Ditto.
* time-conf.in: Ditto.
* users-conf.in: Ditto.
2001-03-13 Hans Petter Jansson <hpj@ximian.com>
* boot-conf.in: Remove calls to xst_begin() - it's invoked by
xst_init(). Unfortunately this makes the code asymmetric, but if
we were to invoke it ourselves, we'd also have to call
xst_platform_ensure_supported() in three places.
* network-conf.in: Ditto.
2001-03-13 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_print_state_tag): Renamed from
xst_xml_print_state. Removed spurious indent.
* disks-conf.in (xml_print): Use xst_xml_print_state_tag instead of
direct print..
* media.pl.in (xst_media_xml_print): Use xst_xml_print_state_tag.
2001-03-13 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_print_begin): Implement.
(xst_xml_print_end): Implement.
(xst_xml_print_indent): Use xst_xml_print_string.
(xst_xml_print_vspace): Use xst_xml_print_string.
(xst_xml_print_state): Use xst_xml_print_string.
* disks-conf.in (xml_print): Use xst_xml_print_(begin|end).
2001-03-13 Hans Petter Jansson <hpj@ximian.com>
* debug.pl.in: Fixed bug, debug 9 was not being rotated out.
2001-03-12 Arturo Espinsoa <arturo@ximian.com>
* network.pl.in: using debug functions for messages.
* parse.pl.in: same
* replace.pl.in: quote backquote also in replace_sh.
* xml.pl.in: " was being transformed into \'. Should
be ' only. Fixed.
2001-03-12 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_indent): -> xst_xml_print_indent.
(xst_xml_vspace): -> xst_xml_print_vspace.
(xst_xml_print_string): Implement.
(xst_xml_print_line): Use xst_xml_print_string().
* boot-conf.in disks-conf.in hardware-conf.in
media.pl.in memory-conf.in network-conf.in
removable-media.pl.in time-conf.in users-conf.in:
xst_xml_indent -> xst_xml_print_indent.
xst_xml_vspace -> xst_xml_print_vspace.
2001-03-08 Arturo Espinosa <arturo@ximian.com>
* service.pl.in: New functions to handle SysV rc
scripts, a little better organized code.
* time-conf.in: Use xst_service_sysv_set_status
and get_status now.
* Removing networking-conf.in, nameresolution-conf.in
and network-conf.in.bak.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_open_read_from_names): Missing $ in var for
debug output corrected.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
* boot-conf.in disks-conf.in hardware-conf.in media.pl.in
memory-conf.in nameresolution-conf.in network-conf.in
networking-conf.in removable-media.pl.in time-conf.in
users-conf.in xml.pl.in: xst_xml_print -> xst_xml_print_line.
Doing this replace first, in a way that shouldn't affect the
handful of other functions starting with xst_xml_print_.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
* replace.pl.in (xst_replace_ini): Use debug funcs.
(is_array_ref): Use debug funcs.
2001-03-08 Arturo Espinosa <arturo@ximian.com>
* time-conf.in (time_set_local_time, time_set_rh62_zone,
time_rh62_service_set_status, conf_set): replace functions.
Not tested yet.
* time-conf.in (time_get_local_time): bad order in scalar
assignment. fixed.
* time-conf.in (xml_print): mistakingly deleted timezone
printing. fixed.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
* Makefile.am: Remove nameresolution-conf relics.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
* general.pl.in: Add $xst_debug flag.
(xst_init): Honour --debug arg and XST_DEBUG env. Also some
comments.
* debug.pl.in (xst_debug_print_indent): Use xst_debug_print_string().
(xst_debug_print_string): Print to STDERR only if $xst_debug set.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_quote): return() -> return, makes code look
more uniform.
(xst_xml_get_word): Missing semicolon added.
(xst_xml_get_text): Missing semicolon added.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
* debug.pl.in (xst_debug_open_output_file): Implement.
(xst_debug_print_string_to_file): Implement.
(xst_debug_print_indent): Print to file. More efficient.
(xst_debug_rotate_try): Fix bug that would lead to multiple
rotations on one backend invocation.
* file.pl.in (xst_open_read_from_names): Use debug funcs.
(xst_buffer_save): Use debug funcs.
* xml.pl.in (xst_xml_scan): Dump scanned XML to in.xml.
(xst_xml_get_pcdata): Use debug funcs.
2001-03-07 Arturo Espinosa <arturo@ximian.com>
* replace.pl.in (xst_replace_from_table): big oops here. A
line of old code (51) wasn't deleted and this prevented any
changes to take place.
* network.pl.in (xst_network_ensure_loopback_interface): Ensure
the interface is activated if it already exists.
* parse.pl.in: line analyzers take care of reading the file, so
we can have routines that read more than one line, etc.
* time-conf.in: replace table, but this isn't working yet.
2001-03-06 Arturo Espinosa <arturo@ximian.com>
* network-conf.in: moved xml_print stuff to xml.pl.in. Removed
stale set_immediate code.
* parse.pl.in: xst_parse_replace files. Now it is possible to
pass a reference to an array with several files to be replaced
from the fn hash. Check time-conf.in (conf_get_parse_table) for
an example.
(xst_parse_chomp_line_std, xst_parse_chomp_line_hash_comment):
line reading routines. The latter remove hash comments.
(xst_parse_split): now receives a ref to a sub for the line
reading sub, with xst_parse_chomp_line_std as default.
(xst_parse_*): pass the line_read_proc param all around.
* replace.pl.in (xst_replace_from_table): same as xst_parse_replace.
* time-conf.in: an almost complete rewrite. XML structure changed a
bit.
* xml.pl.in: moved the xst_xml_print* subs here. Renamed xml_print_hash
to xst_xml_print_hash_hash, and created new xst_xml_print_hash,
which does what its name says.
2001-03-05 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_file_get_debug_path): Implement.
2001-03-05 Hans Petter Jansson <hpj@ximian.com>
* disks-conf.in: Added redhat-7.0.
2001-03-05 Hans Petter Jansson <hpj@ximian.com>
* debug.pl.in: Implement xst_debug_rotate_try().
2001-03-02 Arturo Espinosa <arturo@ximian.com>
* network.pl.in: add loopback interface if it doesn't exist
(ensure_loopback). Add "localhost" and "localhost.localdomain"
entries to loopback statichost entry.
2001-03-01 Hans Petter Jansson <hpj@ximian.com>
* debug.pl.in: Implemented basic debug functions.
* Makefile.am: Included debug.pl.in in build and install.
2001-03-01 Arturo Espinosa <arturo@ximian.com>
* file.pl.in (xst_run): run command with sh -c.
* network.pl.in (xst_network_interface_active): make interface discovery
platform indpenedent: old method couldn't detect if ifconfig failed.
2001-02-28 Hans Petter Jansson <hpj@ximian.com>
* disks-conf.in (read_fstab, write_fstab): Don't touch UUID= either.
2001-02-28 Arturo Espinosa <arturo@ximian.com>
* file.pl.in (xst_open_write_from_names): old criterion was preventing
file creation. Create file if it doesn't exist, under any condition.
2001-02-28 Hans Petter Jansson <hpj@ximian.com>
* disks-conf.in (read_fstab, write_fstab): Don't touch LABEL= lines
for now.
2001-02-27 Chema Celorio <chema@celorio.com>
* boot.pl.in (xst_boot_conf_set): fix a small typo
2001-02-27 Arturo Espinosa <arturo@ximian.com>
* network-conf.in (xml_parse_network): support winsuse boolean.
* network.pl.in (xst_network_get_replace_table, parse_table): winsuse.
* parse.pl.in (xst_parse_ini_bool): get a boolean from an ini file.
* replace.pl.in (xst_replace_ini_bool): save a boolean...
* xml.pl.in (xml_get_pcdata): return "" if tag doesn't have contents.
2001-02-26 Chema Celorio <chema@celorio.com>
* Makefile.am (perl_libs): remove be.pl
2001-02-27 Tambet Ingo <tambet@ximian.com>
* boot-conf.in (set_immediate): New function, we didn't actually run lilo before.
2001-02-26 Arturo Espinosa <arturo@ximian.com>
* network-conf.in (xml_parse_dialing): set the file item if none came from the XML.
* network.pl.in (xst_network_rh62_get_file, xst_network_get_file): check the file
name for any given distro. The corresponding sysconfig file for rh62.
2001-02-26 Tambet Ingo <tambet@ximian.com>
* boot-conf.in (xml_parse_image): get text (not word).
* boot.pl.in (xst_boot_conf_replace_image): Fixed bug that sometimes didn't write
type. Don't scan to the end of file if everything is done already.
2001-02-25 Hans Petter Jansson <hpj@ximian.com>
* general.pl.in (xst_begin): Don't break if platform unknown -
let xst_platform_ensure_supported () handle that.
* platform.pl.in (xst_platform_ensure_supported): Make
unknown-platform and unsupported-platform scenarios similar.
2001-02-24 Arturo Espinosa <arturo@ximian.com>
* network.pl.in: peerdns support.
* util.pl.in (xst_util_struct_eq): oops, forgot to rename inner calls.
2001-02-24 Arturo Espinosa <arturo@ximian.com>
* network-conf.in (xml_print): cosmetic changes.
* network.pl.in (xst_network_rh62_interface_set_by_dev,
xst_network_rh62_interface_set) better criterion for device activation.
* network.pl.in: chap support, lots of bug fixes to activation stuff.
* util.pl.in (xst_util_struct_eq): renamed from cmp due to different semantic.
2001-02-23 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_file_get_base_path): Implement.
(xst_file_get_tmp_path): Implement.
(xst_file_get_backup_path): Implement.
(xst_backup_file): Use xst_file_get_backup_path.
(xst_open_filter_write_from_names): Use xst_file_get_tmp_path.
2001-02-23 Arturo Espinosa <arturo@ximian.com>
* replace.pl.in (xst_replace_sh): surround by quotes after escaping.
2001-02-23 Arturo Espinosa <arturo@ximian.com>
* network-conf.in (xml_parse-dialing): minor naming change.
* network.pl.in (xst_network_dialing_set): "Stupid mode" corresponding tag
is "stupid", not "mode". This was causing the "= 0" bug.
* replace.pl.in (xst_replace_ini): Forgot the case where you found the
section, but not the var. Handle this.
2001-02-23 Arturo Espinosa <arturo@ximian.com>
* file.pl.in (xst_open_read_from_names): debug reporting opened file,
but with the xst_prefix also.
* network-conf.in: use xst_xml_get_pcdata instead of get_word.
* network.pl.in (xst_network_sysconfig_ifaces_get_existing): use xst_prefix
to open directory.
* network.pl.in: added "file" attrib to interface structures, to know from
which file an interface configuration came. This tag could be the same
value accross all interfaces for some distros (RH required, dunno others).
* network.pl.in (xst_network_interfaces_down_changed): get active interfaces
and deactivate only those whose data have changed.
* network.pl.in (xst_network_interfaces_set): now requires the OLD_HASH
structure, so that interfaces_down_changed can compare.
* network.pl.in (xst_network_conf_set): call xst_network_conf_get to get the
$old_hash, and pass it to replace_from_table.
* replace.pl.in (xst_replace_from_table): $$fn{"OLD_HASH"} = $old_hash;, so
if you ask for the OLD_HASH file key, you get a reference to the $old_hash.
See network.pl.in (xst_network_get_replace_table) for an example.
* replace.pl.in (xst_replace_ini): cosmetic change to new section appending.
* util.pl.in (xst_util_struct_cmp): recursively compare two references,
diving into any references to scalars, arrays or to see if structs are equal.
* xml.pl.in (xst_xml_get_pcdata): get the contents of the element, with no
processing, except for entity unquoting.
* xml.pl.in (xst_xml_get_word, xst_xml_get_text, xst_xml_get_size): they now
call get_pcdata and then process that to their need, then return.
2001-02-23 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_backup_file): Add permanent archival of first-ever
backup made.
2001-02-23 Hans Petter Jansson <hpj@ximian.com>
* file.pl.in (xst_rotate_backups): Remove.
(xst_backup_file): Implement.
(xst_create_path): Implement.
(xst_create_path_for_file): Implement from old xst_create_path.
(xst_open_write_from_names): Use xst_backup_file.
(xst_open_filter_write_from_names): Use xst_backup_file. Use new
filter source (in private tmp directory).
* time-conf.in (write_localtime): Use xst_create_path_for_file.
2001-02-23 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_conf_replace_image): We are #XstPartitionType aware.
(xst_boot_parse_images): We too!
(xst_boot_conf_del_images): Taught deleting images.
(xst_boot_conf_set_images): Use copy of data, not data itself, call del_images.
(xst_boot_conf_replace_image): Made image matching stronger.
2001-02-22 Arturo Espinosa <arturo@ximian.com>
* network.pl.in (xst_network_get_pap_passwd): get the pap password from a pap-secrets file.
The tag name for dialing dialers passwords is now password, not passwd.
* parse.pl.in: don't use @_ to pass arguments: it's difficult to know the required args
for the function. xst_parse_sh now unquotes the value.
* replace.pl.in (xst_replace_sh): quote value and surround by quotes if required, before replacing.
2001-02-22 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_scan_recurse) (xst_xml_scan_make_kid_array):
Allow [0-9] in tag names.
2001-02-22 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_conf_set): Added some more known tags.
2001-02-22 Hans Petter Jansson <hpj@ximian.com>
* report.pl.in (xst_report): Re-enable report printing. It works.
* shares-conf.in (xml_print): Move to xst_xml_quote ().
2001-02-22 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_conf_replace_image): Now we can delete image tags too.
2001-02-22 Hans Petter Jansson <hpj@ximian.com>
* xml.pl.in (xst_xml_quote): Put old code back in, since Chema's
didn't work.
2001-02-22 Chema Celorio <chema@celorio.com>
* boot-conf.in (xml_print_globals): fix s/quote/xst_xml_quote
so that Crimz can stop crying like a baby
2001-02-21 Arturo Espinosa <arturo@ximian.com>
* network.pl.in (xst_network_interfaces_set, xst_network_rh62_interface_delete,
xst_network_remove_pap_entry): remove interfaces that are not present, and remove
pap entry if the interface used one, for security.
* network.pl.in (xst_network_remove_pap_entry): used when a ppp interface is removed,
for security.
(xst_network_rh62_interface_delete): entry removal in rh62ish machines.
DNS1 and DNS2 support in tables.
2001-02-21 Chema Celorio <chema@celorio.com>
* users-conf.in (xml_print): quote the group too.
2001-02-21 Chema Celorio <chema@celorio.com>
* users-conf.in : replace the plaint_to_entities & entities
to plain with xst_xml_quote & xst_xml_unquote
(xml_print): quote the user data before sending it
to the front end.
* boot-conf.in (quote): remove use xst_xml_quote
(unquote): remove use xst_xml_unquote
* xml.pl (xst_xml_entities_to_plain): remove, use xst_xml_unquote
(xst_xml_plain_to_entities): remove use xst_xml_quote instead
2001-02-21 Chema Celorio <chema@celorio.com>
* report.pl.in (xst_report): return, don't report status. This was
causing a bug (which took me 3 hrs. to find) in the backends.
2001-02-21 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_set_global_kw): New fn to add or modify global keywords.
(xst_boot_set_global): New fn to add or modify globals (repsects all spaces).
(xst_boot_del_global): Nef fn to delete globals (keywords and vars).
(xst_boot_replace_from_table): My own version of xst_replace_from_table.
(xst_boot_conf_set_images): Rewrote this and
(xst_boot_conf_replace_image): this.
(xst_boot_conf_replace_image): Now it adds new images too.
2001-02-20 Tambet Ingo <tambet@ximian.com>
* boot.pl.in (xst_boot_parse_images): New (and nice) function to get images.
* boot-conf.in (xml_print_global_kws): New function, splitted from
(xml_print_globals), added more known tags.
* boot.pl.in (xst_boot_conf_get): Use those new functions.
(xst_boot_parse_global_kw): New function to parse global lilo.conf keyword.
(xst_boot_parse_global): New function to parse global lilo variable.
2001-02-19 Chema Celorio <chema@celorio.com>
* be.pl.in (xst_buffer_save): remove this function it is
duplicated in file.pl
(xst_buffer_load): ditto
(xst_buffer_clean): ditto
2001-02-19 Arturo Espinosa <arturo@ximian.com>
* network.pl: Ensure local host entry, by checking the internal
structures before writing. Run hostname.
2001-02-16 Hans Petter Jansson <hpj@ximian.com>
* report.pl.in: Make sure the same progress int is not printed twice.
2001-02-16 Hans Petter Jansson <hpj@ximian.com>
* platform.pl.in: Silence stderr output, disable early abort code.
2001-02-15 Arturo Espinosa <arturo@ximian.com>
* xml.pl.in: substitute & entity too.
2001-02-13 Hans Petter Jansson <hpj@ximian.com>
* gen-reportcode-list.sh: Look in *.pl.in as well.
* general.pl.in, platform.pl.in: Report fixups.
2001-02-12 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in: (xst_network_get_interface_{replace,parse}_table) added iface name support.
2001-02-12 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in: Fixed bug which would cause [global] section to
not be written in some cases.
2001-02-10 Arturo Espinosa Aldama <arturo@ximian.com>
* network.pl.in: (xst_network_get_interface_{replace,parse}_table) added wvdial support.
(xst_network_ensure_local_host_entry) changed name: added "network" prefix.
(xst_network_dialing_set) save the wvdial configuration.
* network-conf.in: (xml_print_hash) a more general instance of xml_print_interfaces, to
handle both interfaces and dialing.
(xml_parse_dialing) parse the wvdial configuration from XML to internal hash.
2001-02-09 Hans Petter Jansson <hpj@ximian.com>
* *-conf.in: Added platform comparisons and die if necessary.
2001-02-09 Hans Petter Jansson <hpj@ximian.com>
* platform.pl.in: (xst_platform_ensure_supported): Implement.
2001-02-09 Hans Petter Jansson <hpj@ximian.com>
* *.in: Removed -*-perl-*- lines that were confusing Emacs.
2001-02-09 Arturo Espinosa <arturo@ximian.com>
* network-conf.in: removed a bunch of set_* functions, whose functionality
already is in network.pl.in.
* network.pl.in: almost finished, lots of bug fixes. added bootproto support.
* replace.pl.in: xst_replace_chat implemented.
* network.pl.in, replace.pl.in: fixed conflicts with new general function namings.
* network.pl.in: (xst_network_dialing_get) wvdialer parsing support. Minor indentation fix.
* parse.pl.in: fix to ini parser and new parser to get ini sections.
* replace.pl.in: similar fix to ini replacer, and minor indentation fix.
2001-02-08 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in: Added missing dependency on service.pl.
2001-02-08 Tambet Ingo <tambet@ximian.com>
* boot.pl.in: New file.
* boot-conf.in: Removed stuff which is in boot.pl.in.
2001-02-07 Hans Petter Jansson <hpj@ximian.com>
* be.pl.in, boot-conf.in, disks-conf.in, file.pl.in,
gen-reportcode-list.sh, general.pl.in, guess_system.sh,
hardware-conf.in, media.pl.in, memory-conf.in,
nameresolution-conf.in, network-conf.in, network.pl.in,
networking-conf.in, parse.pl.in, platform.pl.in,
removable-media.pl.in, replace.pl.in, report.pl.in,
service.pl.in, shares-conf.in, time-conf.in, users-conf.in,
util.pl.in, xml.pl.in: be_ -> xst_
2001-02-07 Hans Petter Jansson <hpj@ximian.com>
* be.pl.in: Refactored into obsoletion.
* file.pl.in, general.pl.in, platform.pl.in, report.pl.in,
service.pl.in, util.pl.in, xml.pl.in: Added.
* boot-conf.in, disks-conf.in, memory-conf.in,
network-conf.in, shares-conf.in, time-conf.in, users-conf.in,
media.pl.in, network.pl.in, parse.pl.in, replace.pl.in:
Removed dependency on be.pl. Added new dependencies.
* Makefile.am: Removed be.pl from distribution (but not
build). Added new targets.
* removable-media.pl.in: Added an XML skeleton. This file will
go away later, though.
2001-02-07 Hans Petter Jansson <hpj@ximian.com>
* network.pl.in: Separated the parse/replace tables from the rest
of the code. They are now returned by get_table functions that
pick the table depending on the platform.
2001-02-07 Hans Petter Jansson <hpj@ximian.com>
* be.pl.in: Redid the platform naming scheme, added switch for
manual override.
2001-02-06 Hans Petter Jansson <hpj@ximian.com>
* media.pl.in: (xst_media_xml_print): Implement.
2001-02-06 Hans Petter Jansson <hpj@ximian.com>
* be.pl.in: (be_xml_print_state): Implement.
2001-02-06 Tambet Ingo <tambet@ximian.com>
* boot-conf.in: Get some more stuff out of lilo.conf
2001-02-06 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in: Disabled scanning so that UI testing becomes
less of a pain. Will have to work out a switch to enable it
later.
2001-02-06 Hans Petter Jansson <hpj@ximian.com>
* Makefile.in: Added media.pl to the list of targets.
2001-02-06 Arturo Espinosa <arturo@ximian.com>
* replace.pl.in: xst_replace_join_hash, the last of the replacing
functions for network to be finished.
* network-conf.in: bug in xml_parse_network for nameserver and
searchdomain.
* General bug fixes on all the new code and other parts.
* All general network param writing is ready. Interfaces is the only
missing.
2001-02-06 Arturo Espinosa <arturo@ximian.com>
* be.pl.in: be_buffer_clean, be_buffer_join_lines: new functions to
help with in-line editting.
* network-conf.in: support for "auto" and "description" tags when
parsing: forgot these.
* network.pl.in: xst_map_dist -> be_map_dist, pass the hash with
the configuration to the replace_with_table function.
* replace.pl.in: Lots of code, for writing configuration. Partialy
tested, but hash replacing is missing still.
2001-02-05 Tambet Ingo <tambet@ximian.com>
* Makefile.am (backends): Added boot-conf into build
* boot-conf.in: New file.
2001-02-05 Arturo Espinosa <arturo@ximian.com>
* be.pl.in: (be_buffer_{load,save}): load a file into an array buffer
and save it back.
(be_map_dist): moved from network.pl.in.
* network.pl.in: minor & typos.
* replace.pl.in: routines for in-line replacing.
* Makefile.am: install replace routines.
* .cvsignore: ignore replace routines .pl file.
2001-02-05 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_split): Keep all tokens on line
associated with key.
* media.pl.in: Added.
* removable-media.pl.in: Added.
2001-02-04 Hans Petter Jansson <hpj@ximian.com>
* parse.pl.in (xst_parse_line_first): Stopped from losing return value.
Added & prefix to function call. Close file when done.
* parse.pl.in (xst_parse_chat): Prevented $found from being global.
Close file when done.
2001-01-31 Tambet Ingo <tambet@ximian.com>
* users-conf.in (xml_print_nis): test function for nis.
2001-01-28 Arturo Espinosa <arturo@ximian.com>
* *-conf.in, *.pl.in: added emacs style directives.
2001-01-28 Hans Petter Jansson <hpj@ximian.com>
* be.pl.in: Added disaster recovery, with 9 rotated backups.
Removed some bogus debug output someone left behind.
2001-01-26 Arturo Espinosa <arturo@ximian.com>
* network-conf.in: parsing now follows the new hash structure.
2001-01-26 Chema Celorio <chema@celorio.com>
* be.pl.in: if $verbose, print the file name before it is
opened
2001-01-25 Arturo Espinosa <arturo@ximian.com>
* new_network-conf.in, network.pl.in, parse.pl.in: completly new
network code and parsing routines.
* network-conf.in: overwrote with new_network-conf.in and cvs
removing new_network-conf.in. Saving a backup, though.
2001-01-22 Arturo Espinosa <arturo@ximian.com>
* add_amp.sh: dumb program that fixes missing & when calling
functions in perl code.
* *-conf.in and be.pl.in: passed through add_amp.sh.
2001-01-18 Chema Celorio <chema@celorio.com>
* TODO: deleted
2001-01-18 Arturo Espinosa <arturo@ximian.com>
* be.pl.in: be_network_get_redhat now gives away more info. Same
should be done for debian and SuSE.
* network-conf.in: be_ppp_get_phone_redhat is called from
be_network_get_redhat to obtain the phone pppd dials.
2001-01-17 Tambet Ingo <tambet@ximian.com>
* Changelog: fixed my revious wacky entry.
2001-01-17 Arturo Espinosa <arturo@ximian.com>
* network-conf.in: print and parse interface tags. Also bring up
or down network interfaces, and report their status when printing.
2001-01-16 Arturo Espinosa <arturo@ximian.com>
* network-conf.in: network backend.
* guess_system.sh: stolen from autoconf, a script to tell the
system the backends are running on.
* Makefile.am: install guess_system.sh where be.pl goes.
* be.pl.in: need to replace ___scriptsdir___ here too, so I removed
be.pl and have this one for preprocessing.
2001-01-16 Tambet Ingo <tambet@ximian.com>
* memory-conf.in: Added debugging support. Got rid of hardcoded tool
locations, made it using be_locate_tool. Switched hardcoded
/proc/meminfo to variable. Get all sizes in format %.1f to unify
with frontend.
2001-01-16 Chema Celorio <chema@celorio.com>
* time-conf.in (get_zone): when scanning for timezones
only do a system "diff ..." if the file size matches the
timezone we are looking for. This reduces loading time.
* Added ChangeLog
|