2001-07-30 Tambet Ingo * 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 * 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 * x.pl.in (x_update_display_mode): Remove extra space from we added before. 2001-07-26 Hans Petter Jansson * 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 * 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 * 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 * 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 * time-conf.in (time_sync_hw_from_sys): Implement. (conf_set): Sync hardware clock. 2001-07-24 Tambet Ingo * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * replace.pl.in (xst_replace_alchemist): Implement. Top-level function for replacing alchemist data. 2001-07-18 Hans Petter Jansson * 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 * users-conf.in (add_user): mkdir -p the parent directories of the new user. 2001-07-17 Arturo Espinosa Aldama * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * xml.pl.in (xst_xml_model_add): Implement. (xst_xml_model_ensure): Implement. (xst_xml_model_remove): Implement. 2001-07-13 Tambet Ingo * 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 * 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 * 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 * configure.in (dnl): try again 2001-07-12 Tambet Ingo * 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 * configure.in (dnl): fix the scriptdirs thing 2001-07-11 Hans Petter Jansson * 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 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 * 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 * 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 * 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 * xml.pl.in (xst_xml_get_attribute): Implement. * parse.pl.in (xst_parse_xml): Implement in full. 2001-07-09 Arturo Espinosa Aldama * 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 * 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 * 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 * parse.pl.in (xst_parse_xml): Begin XML config parser. 2001-07-06 Arturo Espinosa Aldama * 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 * 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 * 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 * rhprinterdb2xstxml.pl: Added script to translate the RH printerdb to XML. 2001-07-04 Tambet Ingo * x.pl.in (x_add_keyword): Quote new values if neccesary. 2001-07-03 Tambet Ingo * 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 * 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 * 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 * 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 * 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 * 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 * 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 * util.pl.in (xst_ignore_line): Allow spaces before comments at the start of a line. 2001-06-29 Hans Petter Jansson 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 * network-conf.in: add suport for turbolinux 7.0 2001-06-28 Hans Petter Jansson * 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 * 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 * 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 * general.pl.in (xst_print_interface): sort the keys to get a better result. Tue Jun 12 04:41:33 2001 Arturo Espinosa * 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 * 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 * 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 * x.pl.in (parse_modeline): Implement. Doesn't work right yet. 2001-06-21 Tambet Ingo * x.pl.in (xst_xfree4_conf_get): Added support for "SubSection"s, improved readability A LOT, alomst a rewrite. 2001-06-20 Bradford Hovinen * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * shares-conf.in (xml_print_import_smb): Print and tags. Fixes bug #3222. 2001-06-06 Arturo Espinosa Aldama * package-conf.in: contributed by Richard Bos * Makefile.am: added pertinent entries for package backend. 2001-06-05 Tambet Ingo * users-conf.in (change_user_chfn): Little fix. 2001-06-04 Hans Petter Jansson * disks-conf.in (get_fdisk): Know more about extended partitions. 2001-06-04 Hans Petter Jansson * 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 * 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 * shares-conf.in (remove_shares_from_filesys_table): Implement. (set): Remove shares from filesys table. 2001-06-04 Tambet Ingo * x.pl.in: Add * xconf-conf.pl.in: Add 2001-06-04 Tambet Ingo * users-conf.in (change_user_chfn): Added hack to support Debian's chfn. 2001-06-01 Arturo Espinosa Aldama * 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 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * boot-conf.in (xml_print_global_kws): remove print. duh ! * boot.pl.in (xst_boot_parse_global): ditto 2001-05-24 Arturo Espinosa Aldama * 0.5 RELEASE 2001-05-24 Arturo Espinosa Aldama * 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 * 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 * shares-conf.in: XML tags: browseable -> browse, writable -> write. 2001-05-24 Chema Celorio * 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 * users-conf.in: added RH 7.1 2001-05-23 Arturo Espinosa * network.pl.in (xst_network_debian_woody_set_auto): Fixed invariant bug in while loop (bug 2714 fixed). 2001-05-23 Tambet Ingo * 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 * shares-conf.in (xml_parse_conf): It's path, not point. 2001-05-20 Theo van Klaveren * 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 * 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 * 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 * disks-conf.in (get_fdisk): Omit entries for extended partitions. 2001-05-17 Hans Petter Jansson * gettext.pl.in (_): This manner of gettexting disabled due to speed considerations. 2001-05-17 Arturo Espinosa Aldama * 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 * users-conf.in (read_skel_dir): Implement. (xml_print): Print out files for Profiles. 2001-05-16 Hans Petter Jansson * 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 * 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 * 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 * disks-conf.in (update_partition): Fix breakage, call xst_filesys_ext2_device_to_label(). 2001-05-16 Hans Petter Jansson * 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 * 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 * 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 * 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 * share.pl.in (xst_share_replace_nfs_exports): Implement. 2001-05-15 Hans Petter Jansson * 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 * 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 * internetsharing-conf.in (xst_ishare_rules_get_ipchains): implement. 2001-05-14 Chema Celorio * time-conf.in: tested in RH 7.1. Add the platform 2001-05-13 Chema Celorio * 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 * time-conf.in (xml_parse): small typo 2001-05-12 Hans Petter Jansson * time-conf.in: Fixed timezone write bug. 2001-05-10 Hans Petter Jansson * report.pl.in: Added new key to message table. 2001-05-10 Hans Petter Jansson * parse.pl.in (xst_parse_split_hash_with_continuation): Implement. 2001-05-10 Hans Petter Jansson * disks-conf.in: Include '-' in fstab option matching. 2001-05-10 Hans Petter Jansson * 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 * 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 * 0.4 RELEASE 2001-05-09 Hans Petter Jansson * time-conf.in: Red Hat 7.0 timezone fix from Arturo. 2001-05-09 Arturo Espinosa Aldama * 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 * shares-conf.in (set_immediate): Fix up the path before creating share string. 2001-05-08 Hans Petter Jansson * shares-conf.in (set_immediate): Use smbmount directly and don't rely on fstab entry. 2001-05-08 Arturo Espinosa Aldama * 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 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 * 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 * 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 * 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 * shares-conf.in (print_xml): Fixed an output problem in tags. 2001-04-27 Hans Petter Jansson 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