Add dynamic category tabs for better listing all available packages
Add version check to package install
Support different package internal name
Allow the package external name (e.g. Ipguard-dev or squid3) to be different from the internal name (ipguard or squid). In particular, this allows package start and stop code to know what the associated package service name and/or *.sh start/stop script name is when the external package name is different.
Change rcfileprefix to a constant
Tidy package cleanup output
Add a "done." and newline after "Cleaning up..." Then when output is going to the serial console the next line will start cleanly and %age figures will not write over the top of "Clean".
Silence tar command to not garble console
Try to keep existing files rather than unlinking/replacing when restoring the package libraries during a package removal. Needs some testing, but for NanoBSD it fixes #1049
Don't conf_mount_rw every time packages are listed
Every time System:Packages is selected, the code does a conf_mount_rw, checks for existence of some dirs, then does conf_mount_ro. This makes navigating the package install GUI slow on nanobsd, and it is not needed....
make sure this grep parameter is quoted
Setup library paths to include /usr/pbi/*/lib as a last resort to make sure things can find libraries. We may eventually replace this with a better method as this can lead to conflicts, but for now it will allow packages to find their proper libraries.
Restore this code that was accidentally reverted
Remove null character at end of file
Fix trailing whitespace
Don't fall back to fetching PBIs from FreeBSD, they have none.
Move the stop_packages code to a function, and call the function from the shell script, and call the function directly for a reboot. Fixes #2402 and ticket #1564
remove_freebsd_package: check that a symlink exists and is currently pointing into the pbidir of the current package, then unlink it. This avoids possibly deleting real files, or deleting a symlink that points into some other package.pkg_fetch_recursive: remove a bonus "$" in the symlink target specification. This was causing symlinks from /usr/local/bin to not be generated validly....
Remove an extra "-" left there by accident.
Handle mixed-case package names like squidGuard.Check that conf files in PBI folders exist before unlink.Pass correct package names 1 at a time from uninstalll_package to delete_package.log_error if the PBI package name can't be found in remove_freebsd_package - this means that the PBI files will not get cleaned up. Usually this is caused because the system has been rebooted since the package was installed and the PBI db in /var/db/pbi has gone (e.g. on nanobsd /var is created from scratch at boot)
Fix case where package names are substrings of each other. e.g. "squid" and "squid_radius_auth". Look for "squid-", which will match the full PBI package name for squid but will not match "squid_radius_auth". Bug #2301
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.Replacing it surpresses all the warnings
Trim filename before use to clear away any unnecessary whitespace. Fixes client export package install (and probably others)
Allow carriage returns to separate filenames as well as spaces
Only symlink files once
Download correct filenames
Allow multiple PBI packages in one tag space separated
Create symlinks for packages config files into the PBI directory
Fix pbi_info path
Remove line forgotten last commit
remove symlinks for PBI binaries
remove PBI even when packages depends on only one PBI package
Create symlinks for bin and sbin directories on /usr/local/ after installing a PBI
install/remove packages using PBI
Unlink the failed downloaded file if present. Since it might contain harmful and not expected content
Move seting up of tabs/menus/service entries after custom php commands. Seems there is something tripping config vars that make these steps not work.
Correct the ambiguity caused by missing curlies
Remove this write_config call seems to be causing grief.
Add yet another intermediate config write during pacakge processing which breaks some installation steps.
removes variables concatenation on gettext strings
Fix missing " in gettext line
fix missing "
Merge remote-tracking branch 'mainline/master' into inc
Add small comment about rrd binaries
Loosen grep for rrd
Backup rrdtool binaries during package reinstallation. Currently that is the onlyp package that can be clobbered by others. We will rework this completely in a future version when we adopt PBIs.
New line missing after pkg is extracted.
Conflicts: etc/inc/voucher.inc usr/local/www/fbegin.inc
Typoes
When uninstalling packages try to remove even any rc files created by packages.
When uninstalling a service actually stop it first.
Conflicts: etc/inc/auth.inc etc/inc/config.lib.inc etc/inc/filter.inc etc/inc/pfsense-utils.inc etc/inc/pkg-utils.inc etc/inc/priv.defs.inc etc/inc/services.inc...
Remove comment since the service is not started anymore after installation in 2.0
Be smart and remove the needs package sync toggle since the begining otherwise not behaving packages might mess up the whole thing.
Ensure the pkg staging area exists on nanobsd before trying to use it.
Move this code up a bit and also use /root/tmp to fetch packages instead of /tmp so it won't fill up.
If we're on nanobsd, pass -t to pkg_add to specify a different "staging area" path.
Set PKG_TMPDIR here too, to help nanobsd pkg installs.
Merge branch 'master' into inc
Conflicts: etc/inc/captiveportal.inc etc/inc/config.console.inc etc/inc/config.lib.inc etc/inc/easyrule.inc etc/inc/filter.inc etc/inc/ipsec.inc etc/inc/pkg-utils.inc etc/inc/shaper.inc...
Use a better method to determine the FTP URL for FreeBSD based on the version being used. The old method worked with 8.1-RELEASE-p2 but failed with just 8.1-RELEASE.
Comment what this variable does
Adding $builder_package_install variable. When set to true ignore library fixups and sync_package() directives.
Fix references to what was apparently supposed to be $g['booting'] and not $bootup.
Add a description to this write_config() so it's a little more obvious what it's doing in the logs.
Bail on reinstalling all packages if we can't contact the package repo.
Ticket #875. While ldconfig should be called by pkg code itself do it explicitly to have the cache file rebuilt with correct list.
Need to use Unlink in tar
Shorten english
Ensure $pkg is defined. Send pkg_delete errors to /tmp/pkg-delete_errors.txt
Fix package dependency check code now that we no longer nuke /var/db/pkg/ before operating on packages
Strip off the space between @depend and the package name. Otherwise it will return a space in front of the pkgname
Do not unlink file, it's handled by behind the scenes pkg-utils.inc code
Shorten repo download message
Do not show already installed messages which fill up the textarea too many times
Do not nuke /var/db/pkg now that 2.0 has better handling
Reinstall packages on bootup during console. Ticket #1156
Nuke newline
Unlink needs_package_sync after one pkg has installed OK which means that our internet connection is up.
More misc pkg install txt fixups
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.
Merge remote branch 'mainline/master' into inc
Conflicts: etc/inc/auth.inc etc/inc/config.lib.inc etc/inc/filter.inc etc/inc/gwlb.inc etc/inc/interfaces.inc etc/inc/pfsense-utils.inc etc/inc/pkg-utils.inc...
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.