Fix PBI installation when target lies on different directorie
Missed pbi_prefix here
Fix PBI symlink creation and deletion under /usr/local following .pbiopt files, also drop setup_library_paths() since it's not necessary anymore
Get rid of embedded platform. Its time to GC this
replaced uppercase html tags with lowercasejs files saved as UTF-8 / LFlanguage="JavaScript" deprecated, replaced with type="text/javascript"
Merge branch 'master-br' of https://github.com/ayvis/pfsense into ayvis-master-br
standardize URLs
xhtml Compliancereplaced <br>, <br/> and </br> with <br />
Do not do any operations on system libraries. Nowdays pbis are used and those do not break things by definition
Grab exec result just to be careful
Abort installation when pbi_add fails
Declare $config global so we can test the pkg_nochecksig option
Add support for signed PBI, help ticket #3365:
- Add an option to allow user to accept unsigned packages- The only missing part is public key, that needs to be added to/var/db/pbi/keys/pfSense.ssl
escapeshellarg() is not required here
Revert "Set PATH before call pbi related binaries"
This was pushed by mistake
This reverts commit 4c9bda43f5bcfd5ba9812c84199bbe4f1f158960.
Fix some wrong escapeshellarg() calls
Add escapeshellarg() calls on exec parameters. While I'm here, replace some exec() calls by php functions like symlink, copy, unlink, mkdir
Set PATH before call pbi related binaries
Remove arch from fall back url since it's a single dir now
Merge pull request #888 from PiBa-NL/pkg-utils-append-log
pkg-utils do not clear first part of installation log.
Fix FreeBSD version detection for 10.x
Rework the usage of the shell i/o during stop_packages(), fixes the "Syntax error: bad fd number" for the remaining people who still saw it on shutdown
Ticket #3139 try to detect if the popen is closed from an error
Fix interface selections on UPnP to show the customized descriptions entered by the user. While here, add an external interface selection knob. Fixes #3141
Conflicts:
etc/inc/pkg-utils.inc
Be a lot more verbose in the logs during package reinstallation.
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