Pass name instead of config_file for start_service
If packages are reinstalled during bootup than there is no need to reinstall them again during GUI login.
Don't delete these additional files until the end of the package uninstall process. Otherwise files needed in some steps will be missing. Should fix some outstanding package issues (especially uninstall/reinstall issues). At the very least this fixes uninstall/reinstall of OpenVPN Client Export.
Do not process items in which we cannot resolve the config file
Missed curly.
Do not error out when trying to delete an unexisting package. Just display an error message.
get_pkg_depends must return the whole paths of dependency files in orderto enable sync_package to check for files which are not installed in thestandard pkg location (i.e. outside of /usr/local/pkg).
Ticket #431Submitted-by: Lorenz Schori
Place conf_mount_ro() calls where supposed too.
Silence errors.
Ensure prefix directory exists before downloading and installing additional file
Ticket #396. Try to fix issues with missing include files or filesystem being in ro mode during operations.
More cleanup and code flow simplification.
When removing a package delete its underlying FreeBSD pacakges.Correct checks for avioding as much as possible errors.Simplify logic in some cases.Remove package include files when uninstalling packages.
NOTE: Some work is needed to have more error reporting. Espescially when failing to retrieve files or add them locally.
Ticket #309. Fix it for packages.
Reactivate the hack for packages to show as installed. Untill php decides to behave.
Ticket #309. Correctly fix the problems of intermediate config lost because of inclusion of config.inc. This might have speed impacts to be measured.
Resolves #309. Seems that including config.inc has bad habits on packages. Workaround this for now until the package config include is fixed.
Fix some package uninstall bits on nano
Replace some occurrence of /tmp with the propper global variable in attempt to minimize the search for what changes /tmp permissions.
Nuke pkg_build_filter_rules(). It is not called anywhere in the code and adds complexity that I do not wish to see in the codebase
Transmit freebsd machine (uname -m) so that we can be begin offering multi platform packages
Check to see if syslogd is running before killing
Move newer xmlreader code to xmlreader.inc. Restore old xmlparse code to xmlparse.inc. Default to the older xmlparse.inc but add a flag check if /cf/conf/use_xmlreader is present the newer code will be included instead until the remaining bugs can be resolved with it (see rcs for many).
Add a new (unlinked) page which allows entering a custom pkg repo URL
Do not process empty tags in the config as this breaks the code.
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additions
Use empty() function for testing which is far more better than just <> "".
Make checks stronger.
Remove wrongly duplicated code. Leave a comment on the oddity that is the packages code.
Be smarter at it and reduce some overhead.
Correct file names.
Remove files before recreating them. Add filter rules early content to the file it was missing.
Add forgotten global so file creation actually works.
I really need to take more coffee. Fix another typo.
Fix typo
Add missed commit for package filter functions to work.
Present hook points for packages to present their rules.This allows to remove the filter.inc dependecy from pkg-utils.inc and simplifies lot of package writing as concerened to the firewall.The rules hardcoded in filter.inc for some packages will be removed at a second pass.
Add stub for update_output_window() if it does not exist
Add update_status() function if needed
Add a dummy update_status() function if we need it.
Check to see if dir exists before blindly mounting rw
Add missing conf_mount_ro();
Handle packages on embedded the same. Ssshhhh, don't tell anyone.
Update functions to add other anchors for before {nat,rdr} rules and {nat,rdr}early rules. Further more no need to call filter_configure since the anchors can be loaded separately from the main ruleset.
Unbreak english
Unbreak pkg-utils.inc. Extra space made it rather unhappy. Reported on IRC and in the forums.
Present a new package option filter_rules_needed which has a function name to be called if the package needs to create firewall rules. The function should have a switch statement one with 'nat' option wich is called for nat/rdr and one with 'rule' option which is needed for rules. This will help on removing from filter.inc all the packages hardcoded includes and rules and give some more dynamicity. The rules by this function will be included on rules.nat.packages and rules.packages on /tmp partition and called by anchors include file when filter reloads(still this has to come).
Remove extra tab
Avoid these errors: Warning: Invalid argument supplied for foreach() in /etc/inc/pkg-utils.inc on line 776 Warning: Invalid argument supplied for foreach() in /etc/inc/pkg-utils.inc on line 779 Warning: Invalid argument supplied for foreach() in /etc/inc/pkg-utils.inc on line 779
Jettison clog and replace with fifolog which is included in FreeBSD 7.1
Add check for after_install_info and display this info after package installation
If <prefix> does not exist, then call safe_mkdir on it.
Make it possible for pakages to insert additional tabbed pages into anexisting tab group. This requires that each page in the tab group calladd_package_tabs() with the tab group name before display_top_tabs() sopages can be inserted. While far from optimal, this system is really a...
DRY up the code a tad, download_file_with_progress_bar isn't related topackages only anymore, move into pfsense-utils and allow for multiplefile write functions (firmware upgrades use a different one than ourstandard)
Only push 1 char version, such as 7 instead of 7.0
Add freebsd version as parm.
Add way to find the version of pfSense.This is needed since for 1.3 rules that packages install should be overridable.
Remove bogus check.
Ensure /tmp/y exists before running pkg_delete command.
Missing global $g and $config
Correctly remove freebsd package upon package deletion.
Remove trailing space / cr
$config needs to be a global item
Install the package, deinstall and reinstall to ensure it is in a proper state.
Woops, use delete_package_xml() instead of delete_package()
Delete package before reinstalling to avoid multiple service entries, etc.
Correctly output the package name that we are attempting to reinstall instead of the package array number.
Add missing / directory seperator.
This should hopefully fix squid from reinstalling itself a million times on bootup.
Note missing file before reinstalling package
Addremove_freebsd_package() so that we can begin using it after 1.0.2 / 1.2 (which ever we decide to call it)
Stop service before sync
Only write to stream if it is open.
Remove extra space while I am being ultra picky.
Remove non-needed \n
Dont forget global variable
Further text cleanup
Cleanup console package installation text. Now it looks nice and tidy.
Honor $pkg_interface for console operations
Correct variable
Handle include files correctly
Ticket #1250
When package include files do not exist, simply reinstall package.
Break the stalemate for invalid packages by removing them (force deinstall).
Kill trailing space
file_notice() requires notices.inc
Output buffer so that progress bar, etc works
MFC of [14076]fix typo and don't output the package config file
MFC 13272skip past blank packages (not sure where this comes from)
MFC 13273package include files need to be included for custom php commands to run inpackage resync
We're in 2006 now, toto
Remove old debugging code
Found-by: PHPEclipse
Extra safety check