Commit Graph

350 Commits

Author SHA1 Message Date
Renato Botelho
2b7fb76995 Do not use regex to check filetype to avoid being wrong since . is a regex metachar. It fixes #3817 2014-08-27 19:42:10 -03:00
jim-p
bfe9c9e7a3 Move the fetching of a package's config file and additional files to separate functions, and then have the "xml" package button perform these so that it is not only a redundant copy of the "pkg" reinstall button. This can help ensure a package files are in a known-good state before other actions are performed, in case the deinstall would fail or behave erratically due to other files being missing. 2014-08-19 14:32:46 -04:00
Chris Buechler
375fce94f5 use HTTPS for files.pfsense.org for update_bogons and priv_url in pkg-utils 2014-07-09 21:56:16 -05:00
jim-p
6916360eb1 Also check and verify the package server's SSL certificate if using HTTPS. Issue 484
Our current XMLRPC client version doesn't have support on its own to validate this in a way we can use to test in a usable for printing an error message. For now, a cURL query to the XMLRPC URL is used in its place.
2014-07-02 15:20:51 -04:00
jim-p
7c8f371107 More refinements to the unofficial package repository warning ( Issue #484 ) -- Now also shows on Dashboard and installed package list. Cleaned up some code and shuffled things around to avoid unnecessary repetition. 2014-07-02 12:07:33 -04:00
jim-p
c55dfc4a9b Detect if an unofficial package repository is in use and warn the user. Part of issue #484 (more to go) 2014-07-01 15:22:42 -04:00
Renato Botelho
6c87714dc7 Add local/www to the list of directories that needs to be symlink'd to reduce PBI differences between 2.1 and 2.2 2014-06-23 09:32:08 -03:00
Renato Botelho
7860191a10 Create some symlinks inside pbi dir to reduce differences between 2.1 and 2.2 and avoid the need to change a lot of PBI scripts 2014-06-16 15:10:20 -03:00
Renato Botelho
e949001934 Silent pbi_info 2014-06-03 15:15:51 -03:00
Renato Botelho
bc29d9fd91 Reduce possible noise 2014-06-03 10:59:32 -03:00
Manuel Silvoso
d5fad54182 Small cleanup 2014-05-07 21:31:43 +02:00
Renato Botelho
3cc28680ce Fix PBI installation when target lies on different directorie 2014-04-24 11:16:41 -03:00
Renato Botelho
770f4ee5b8 Missed pbi_prefix here 2014-04-22 16:36:18 -03:00
Renato Botelho
384e26472d Fix PBI symlink creation and deletion under /usr/local following .pbiopt files, also drop setup_library_paths() since it's not necessary anymore 2014-04-22 15:37:35 -03:00
Ermal
e61f548f2c Get rid of embedded platform. Its time to GC this 2014-04-14 13:06:28 +00:00
ayvis
91f026b02c replaced uppercase html tags with lowercase
js files saved as UTF-8 / LF
language="JavaScript" deprecated, replaced with type="text/javascript"
2014-03-19 23:38:56 +01:00
Renato Botelho
7f7626ba44 Merge branch 'master-br' of https://github.com/ayvis/pfsense into ayvis-master-br 2014-03-17 11:17:29 -03:00
Chris Buechler
5775f32451 standardize URLs 2014-03-14 19:18:17 -05:00
ayvis
8cd558b61b xhtml Compliance
replaced <br>, <br/> and </br> with <br />
2014-03-14 21:24:03 +01:00
Ermal
8c14707759 Do not do any operations on system libraries. Nowdays pbis are used and those do not break things by definition 2014-02-18 11:25:35 +00:00
Renato Botelho
e4a4ec896f Grab exec result just to be careful 2014-02-17 11:11:23 -03:00
Renato Botelho
6635f5b90d Abort installation when pbi_add fails 2014-02-13 09:32:25 -02:00
jim-p
83491ba51c Declare $config global so we can test the pkg_nochecksig option 2014-02-10 13:55:01 -05:00
Renato Botelho
e5b5e29c3b 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
2014-02-07 10:41:41 -02:00
Renato Botelho
b3e1ccb5b8 escapeshellarg() is not required here 2014-02-05 12:29:53 -02:00
Renato Botelho
275f4b5ad4 Revert "Set PATH before call pbi related binaries"
This was pushed by mistake

This reverts commit 4c9bda43f5.
2014-02-05 11:50:46 -02:00
Renato Botelho
7b27b18bef Fix some wrong escapeshellarg() calls 2014-02-04 18:14:41 -02:00
Renato Botelho
873c1701a8 Add escapeshellarg() calls on exec parameters. While I'm here, replace some exec() calls by php functions like symlink, copy, unlink, mkdir 2014-02-04 12:34:41 -02:00
Renato Botelho
4c9bda43f5 Set PATH before call pbi related binaries 2014-02-04 12:34:41 -02:00
Renato Botelho
03734bf71e Remove arch from fall back url since it's a single dir now 2014-01-30 15:46:13 -02:00
Renato Botelho
c241a3e89d Merge pull request #888 from PiBa-NL/pkg-utils-append-log
pkg-utils do not clear first part of installation log.
2014-01-24 17:33:06 -08:00
PiBa-NL
206c15cc91 pkg-utils do not clear first part of installation log. 2014-01-25 00:14:21 +01:00
Renato Botelho
770a7759f0 Fix FreeBSD version detection for 10.x 2014-01-20 10:53:09 -02:00
jim-p
6186cdc4be 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 2013-11-11 16:29:07 -05:00
Ermal
61ef13853f Ticket #3139 try to detect if the popen is closed from an error 2013-08-13 10:18:32 +00:00
jim-p
f8466c3637 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
2013-08-12 12:36:50 -04:00
jim-p
2b125a17e9 Be a lot more verbose in the logs during package reinstallation. 2013-06-28 14:54:12 -04:00
marcelloc
9b4df982f3 Add dynamic category tabs for better listing all available packages 2013-05-22 13:15:31 -03:00
bcyrill
633d51b75c Add version check to package install 2013-01-17 19:36:17 +01:00
Phil Davis
75a01a7ca0 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.
2012-12-14 22:26:19 +05:45
phildd
c59667116d Change rcfileprefix to a constant 2012-08-07 16:10:11 +05:45
Phil Davis
449d3e96fd 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".
2012-08-02 14:51:48 +05:45
Ermal
9fd9b6bf71 Silence tar command to not garble console 2012-08-01 10:45:28 +00:00
jim-p
0b233932f2 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 2012-07-31 16:28:44 -04:00
Phil Davis
a70cdb7364 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.
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.
2012-07-31 14:47:30 +05:45
jim-p
d94280cd85 make sure this grep parameter is quoted 2012-06-23 19:54:49 -04:00
jim-p
4593069602 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. 2012-06-23 13:25:03 -04:00
jim-p
a448b35f55 Restore this code that was accidentally reverted 2012-06-21 13:15:06 -04:00
Erik Fonnesbeck
9bdb6a1349 Remove null character at end of file 2012-06-19 13:05:48 -06:00
jim-p
f2d5c538a5 Fix trailing whitespace 2012-06-19 09:45:16 -04:00