Add newline after restoring libs
backup and restore libs in correct location
misc text formatting fixes (tabs)
Only backup libraries at the beginning of the deinstall cycle.
Add tab
Add newline after installation aborted
s/Trying to download/Downloading
Backup system libraries and restore during pkg deinstall.
nuke trailing carriage returns
When we supply a version number, it should be under All/ and not Latest/ (which has names but no version numbers)
Make $rel lowercase, since that's how it is on FreeBSD's package servers.
Show the full URL used to download package files, to aid in tracking down packages that do not install correctly.
Do not atempt to start a service during installation.
Correct binaries needed.
Do not try to be smart on the package name and also use a better resulting condition testing.
Do not output blank pkg names
Mount rw so we can have the packages processing correctly.
Nuke trailing c/r
Remove this since it does not make anymore sense after code arrangements.
Do not output done. because it does not related overall to the output messages.
Add newlines
Disable this test, it was causing some package file downloads to be skipped for me, and nothing else seems to set/use this variable anywhere.
Cleanup some code and properly handle failure of pkg_fetch_recursive.
Clarify message.
Use correct extension of tgz rather than tgz for automatically discovered dependencies.
Honor the config parsed var if set.
globals.inc is better first.
More safety belts.
Fix fetching of package list.
Add myself to the copyright. Have modified enough the file.
Fix problem with syslog adding/removing for pacakges. Fix sync pacakges to call the right functions. Optimizations and code cleanup along the way.
Clear up some code.
Ticket #1017. Move the fwrite and fd_log initializing to a function. Name the function pkg_debug to properly show what is its purpose and also make it write something only when $debug is set.
Ticket #1017. Put a @ before each fwrite to silence errors. Also setup the log file in the beginning rather than on each individual function.
Fix typo
Make the pkg_fetch_recursive code stronger and try also to fetch from freebsd repo when fails to fetch from pfSense one.
Correctly form the url from where to fetch packages if a base is not specified. This unbreaks packages on amd64! Also do no remove a package which is required by other installations.
Correct variable name.
Remove trailing carriage return
Cosmetic issue, add space before 'done', otherwise package XML name and done are combined.
Spelling fix.
Ticket #950. Correctly handle failures while installing packages which might leave stale information behind. Also do not try to startup services twice. Rename uninstall_package_from_name to uninstall_package because the operation on packages is only done through package names.
Ticket #873. Call write_config() before including file to avoid loosing already done modifications. While here do some code cleanup and formating to make it more readble.
Remove useless code which might even abort package deletion process.
Use global to not cause breakage if path changes.
Avoid duplicate service tags when reinstalling packages
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.
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.