summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
Commit message (Collapse)AuthorAgeFilesLines
* standardize URLsChris Buechler2014-03-141-1/+1
|
* Check if the package is installed before deleting opteration is startedErmal2014-02-181-2/+3
|
* Ticket #3461. Protect output to browser by using htmlspecialchars.Ermal2014-02-181-1/+1
|
* Do not do any operations on system libraries. Nowdays pbis are used and ↵Ermal2014-02-181-25/+2
| | | | those do not break things by definition
* Grab exec result just to be carefulRenato Botelho2014-02-171-2/+2
|
* Abort installation when pbi_add failsRenato Botelho2014-02-141-12/+23
|
* escapeshellarg() is not required hereRenato Botelho2014-02-051-1/+1
|
* Fix some wrong escapeshellarg() callsRenato Botelho2014-02-041-2/+2
| | | | | | Conflicts: etc/inc/filter_log.inc etc/inc/pkg-utils.inc
* Add escapeshellarg() calls on exec parameters. While I'm here, replace some ↵Renato Botelho2014-02-041-7/+7
| | | | | | | | | | exec() calls by php functions like symlink, copy, unlink, mkdir Conflicts: etc/inc/filter_log.inc etc/inc/interfaces.inc etc/inc/pfsense-utils.inc etc/inc/pkg-utils.inc
* Rework the usage of the shell i/o during stop_packages(), fixes the "Syntax ↵jim-p2013-11-111-5/+4
| | | | 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 errorErmal2013-08-131-2/+6
|
* Fix interface selections on UPnP to show the customized descriptions entered ↵jim-p2013-08-121-0/+15
| | | | by the user. While here, add an external interface selection knob. Fixes #3141
* Be a lot more verbose in the logs during package reinstallation.jim-p2013-06-281-4/+19
|
* Add version check to package installbcyrill2013-01-171-22/+38
|
* Support different package internal namePhil Davis2012-12-141-5/+23
| | | 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 constantphildd2012-08-071-5/+5
|
* Tidy package cleanup outputPhil Davis2012-08-021-0/+2
| | | | 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 consoleErmal2012-08-011-5/+5
|
* Try to keep existing files rather than unlinking/replacing when restoring ↵jim-p2012-07-311-2/+2
| | | | 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 listedPhil Davis2012-07-311-3/+3
| | | | 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. Do is_dir checks first, then conf_mount_rw only if they need to be created. The is_dir function works fine on a read-only filesystem.
* make sure this grep parameter is quotedjim-p2012-06-231-1/+1
|
* Setup library paths to include /usr/pbi/*/lib as a last resort to make sure ↵jim-p2012-06-231-1/+1
| | | | 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 revertedjim-p2012-06-211-6/+5
|
* Remove null character at end of fileErik Fonnesbeck2012-06-191-1/+1
|
* Fix trailing whitespacejim-p2012-06-191-7/+7
|
* Don't fall back to fetching PBIs from FreeBSD, they have none.jim-p2012-06-181-6/+6
|
* Move the stop_packages code to a function, and call the function from the ↵jim-p2012-04-301-0/+44
| | | | 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 ↵Phil Davis2012-03-231-7/+18
| | | | | | | 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. install_package_xml: make the grep for a pbi package name more robust by anchoring the search for the name to be at the start. This will prevent potential problems, e.g. with a package "bar" matching "foobar". install_package_xml: check that the target pbi dir exists before creating the symlink. There can be extra conf files in /user/local/etc/... that are not in the PBI dir tree. This can happen with squidGuard on top of squid, particularly after adding/removing/adding the packages.
* Remove an extra "-" left there by accident.Phil Davis2012-03-211-1/+1
|
* Handle mixed-case package names like squidGuard. Phil Davis2012-03-211-12/+37
| | | | | 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 ↵Phil Davis2012-03-201-4/+4
| | | | "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 ↵smos2012-01-191-1/+1
| | | | | | 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 ↵jim-p2011-11-101-0/+1
| | | | client export package install (and probably others)
* Allow carriage returns to separate filenames as well as spacesScott Ullrich2011-11-031-0/+5
|
* Only symlink files onceScott Ullrich2011-11-021-1/+3
|
* Download correct filenamesScott Ullrich2011-11-021-2/+2
|
* Allow multiple PBI packages in one tag space separatedScott Ullrich2011-10-061-49/+51
|
* Create symlinks for packages config files into the PBI directoryVinicius Coque2011-09-301-0/+12
|
* Fix pbi_info pathVinicius Coque2011-09-301-1/+1
|
* Remove line forgotten last commitVinicius Coque2011-09-301-1/+0
|
* remove symlinks for PBI binariesVinicius Coque2011-09-291-0/+15
|
* remove PBI even when packages depends on only one PBI packageVinicius Coque2011-09-291-0/+2
|
* Create symlinks for bin and sbin directories on /usr/local/ after installing ↵Vinicius Coque2011-09-291-2/+15
| | | | a PBI
* install/remove packages using PBIVinicius Coque2011-09-281-44/+10
|
* Unlink the failed downloaded file if present. Since it might contain harmful ↵Ermal2011-09-011-0/+1
| | | | and not expected content
* Move seting up of tabs/menus/service entries after custom php commands. ↵Ermal2011-08-031-27/+27
| | | | Seems there is something tripping config vars that make these steps not work.
* Correct the ambiguity caused by missing curliesErmal2011-08-031-6/+6
|
* Remove this write_config call seems to be causing grief.Ermal2011-08-031-2/+1
|
* Add yet another intermediate config write during pacakge processing which ↵Ermal2011-08-031-1/+8
| | | | breaks some installation steps.
* removes variables concatenation on gettext stringsVinicius Coque2011-07-181-1/+1
|
OpenPOWER on IntegriCloud