Remove extra spaces from User Agent
Send uniqueid instead of UUID on user-agent
Declare user_agent variable in the function it's used
Refine some syslogd restarts, add a way to send it a HUP to reload w/o a full restart. Part of ticket #7256
get_pkg_info improve installed_pkgs_only case
Merge pull request #3659 from PiBa-NL/plugin_optimize_20170321
Remove redundant check, get_pkg_info() call uses a parameter to return only installed packages
Fix indent and spaces
Use correct function (is_pkg_installed) and unbreak get_pkg_info()
pkg_call_plugins put includefile and supported plugins in the normal config.xml so there is no need to parse the package xml for them. this improves performance significantly for several pages like such as 'ipsec overview' and 'openvpn server edit page' which use certificates and gatewaygroups which acquire some information from plugins.
load package add-on tabs into config to avoid parsing all installed package xml's, fix tabgroup filter
Run custom deinstall commands during the deinstall phase instead of post-deinstall, otherwise they will never get run. Fixes #7401
Some small improvements to help with ticket #7256
They don't fix the problem but avoid some pitfalls that could contribute to it.
Fix the pkg_call() and set the timeout to a sane value (Bug #6594)
Fix #7257: Use pfSense-upgrade to look for new versions
Code with multiple %s in etc
Misc cleanups at get_pkg_info()
fix copy/paste - I think!
use wrapped version of pkg info -e instead
get_pkg_info() fallback using pkg info if no local copy of repo catalog (resubmit)
Resubmit of PR #3157 with fix.
The issue in #3157 was that `pkg info` and `pkg search`, undocumented in man pages, seem to handle things differently if no packages match the pattern string. `pkg search` gives an error "No packages match [$pkgs]", whereas `pkg search` doesn't give an error....
Revert "get_pkg_info() fallback using pkg info if no local copy of repo catalog"
This reverts commit e47af756de79d4e8b0356cf22f72f62f09e9ad7d.
get_pkg_info() fallback using pkg info if no local copy of repo catalog
Current behaviour
At the moment, get_pkg_info() is used to get all information on packages. The parameter $local_only is set to request info directly from the local copy of the repo catalog (using -U) without requesting the remote repo catalog or updating the local copy from the remote repo catalog. If the calling code wants only installed pkgs, it filters the returned list of pkgs looking for $pkg['installed'] == true....
Populate the HTTP_PROXY_AUTH env var. Ticket #6949
Deprecate nanobsd platform and remove all conditionals that uses it
Remove all calls to conf_mount_r* functions
Merge pull request #3156 from stilez/patch-43
Create pkg.conf with ABI settings
Remove unused arg in get_pkg_info()
The 2nd argument ($info) isn't used in that function, and doesn't seem to be used anywhere else in the codebase.
Move copyright from ESF to Netgate
Protect package_reinstall_all()
If one restores a config.xml without packages, there will be a warning about invalid argument supplied for foreach(). This commit fixes the problem.
Move to Apache License 2.0
Review license / copyright on all files (1st round)
Add missing -R parameter to pkg call
Implement pkg_valid_name()
Fix package_reinstall_all post-upgrade when packages have been removed in pre_upgrade. Ticket #6137
Only execute remote search operation on first call of get_pkg_info(), this should fix #6177
Workaound fixes #6320
Fix extrat return statement
Fix #6137:
- Uninstall all packages on current system before upgrade usingpre_upgrade_command script- Create a file containing all packages previously installed andreinstall them on first boot after upgrade
Test for internet connection 3 times trying to reinstall packages after upgrade or config restore. Fixes #6180
Reduce values of FETCH_TIMEOUT and FETCH_RETRY to help ticket #6177
Setup HTTP_PROXY environment variable for pkg when it's called from the GUI and also for pfSense-upgrade
Rework the way repo packages work
- Distribute only a single pfSense-repo package containing all templates- Create a symlink pointing to selected repo- Do not limit it only to pfSense-repo and pfSense-repo-devel
(cherry picked from commit a90f1c9b12c4d31ea845fa04188e599ba28dbaf1)
Remove workaround introduced in a2febf9a0. It reduces download timeout to 10s and break update from 2.2 to 2.3
Add an option to define extra env vars to pkg_call() and pkg_exec()
pkg-utils typo in comment
Detect binary packages installed but not registered in the system and do it during boot
Add an option to get_pkg_info() that makes it do not try to update metadata
Remove get_pkg_id, last calls to it was removed
Merge pull request #2667 from phil-davis/patch-1
Internationalize etc inc i through s
pkg-utils update_status text typo
Make sure LANG = C for pkg calls
Do not set PKG_AUTOUPDATE=false anymore and let pkg to update metadata when it's necessary. Some users reported to see issues in cases where update was necessary
Revert "Force update if code reaches this point"
This reverts commit 5bcad0f5ec57858a6713cfbdbfcdf7004621b01b.
Revert "Avoid mounting / rw without need when it's possible"
This reverts commit 0305284cf2d66119d6df8e57cdc52eb3b4d478af.
Avoid mounting / rw without need when it's possible
Force update if code reaches this point
Make sure filesystem is rw state when pkg operations are called
Set necessary env vars for pkg db and cache dir on nanobsd or when MFS partition is being used
Only remove config.xml items on post-deinstall, fixes #5689
Remove all pfSense_MODULE and pfSense_BUILDER_BINARIES definitions, whatever was the reason they were added, it was never finished and it's not being used
Code style and white space in etc
Eliminate an incorrect use of config_file from a pkg info.xml (it should be reading configurationfile, not config_file)This is the last place that references the old config_file field, it will be safe to remove once this is in snapshots.
Revert "Stick xmlrpc.inc include back to avoid breaking packages"
All packages were fixed, thanks @doktornotor
This reverts commit 21f239d35d3fbd542c5a2e988dea6724bb0b7034.
Use new host_uuid option name when changing User-Agent
Stick xmlrpc.inc include back to avoid breaking packages
Removing this broke 29 packages which rely on it for configuration sync and include pkg-utils.inc instead of xmlrpc.inc.
Always define $last_update_file to avoid calling file_put_contents with empty filename. Fixes #5502
Add a new function pkg_switch_repo() to change between stable and devel pkg repo
Replace all update_output_window() calls by update_status() that now only print on console. While here, also remove all use of $static_output
Fix typo in variable name
Add broken information on get_pkg_info(), it means config.xml contain package but binary pkg is not installed
Add get_system_pkg_version(), that return main pkg name, version and installed_version
Stop forcing pkg_prefix on is_pkg_installed() and pkg_install()
Remove unused functions install_package() and delete_package()
Remove pfSense_BUILDER_BINARIES
Add shortname and changeloglink to get_pkg_info()
Reinstall packages from old versions when upgrading to 2.3
platform is always defined in global
Copyright and license cleanup
- Remove personal copyright from people who assigned it to employer (ESF)- Remove $Id$- Remove extra spaces
Rework the way GUI reads packages tabs, it fixes #5311
Sort return of get_pkg_info()
Change get_pkg_info() to also return installed_version
Make get_pkg_info() add a tag saying when package is installed
Remove unnecessary functions verify_all_package_servers() and check_package_server_ssl()
Teach get_pkg_info() to deal with an array of packages
Remove WWW: line from pkg desc
Add pkg_version_compare()
Remove fifo debug from internal functions
Fixed bogus "Beginning package installation" message from the install_package_XML() function
Disable repo auto update
Run pkg update once one time every hour, like upgrade script does
Partial fix for #5263Added timeout to pkg_call function to prevent GUI lockup when beta.pfsense.org is not available
Fix comment language
Remove syslog.conf entries on package uninstall (Bug #5210)
The remove_text_from_file() is not needed at all. However, system_syslogd_start() must be run after the package entries are gone from config.xml, otherwise system_syslogd_start() just re-adds the (now almost removed) package logging configuration from there.
Use pkg info -e to check if package is installed, it only returns 0/1 without printing anything
We do not need a blank line on console
Take internal_name into consideration when looking for package id
Unfinished (but better) versions of hte pkg pages and utilities
pkg-utils.inc typo fix
Partial resubmit of PR #1798 (not really convinced the second part is wanted or correct).