summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/pkg-utils.inc6
-rw-r--r--usr/local/www/system_advanced_misc.php18
2 files changed, 23 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 4ffcb84..ef2b17e 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -563,7 +563,11 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url =
$pkgaddout = "";
- exec("/usr/local/sbin/pbi_add " . $pkgstaging . " -f -v --no-checksig " . escapeshellarg($fetchto) . " 2>&1", $pkgaddout);
+ $no_checksig = "";
+ if (isset($config['system']['pkg_nochecksig']))
+ $no_checksig = "--no-checksig";
+
+ exec("/usr/local/sbin/pbi_add " . $pkgstaging . " -f -v {$no_checksig} " . escapeshellarg($fetchto) . " 2>&1", $pkgaddout);
pkg_debug($pkgname . " " . print_r($pkgaddout, true) . "\npbi_add successfully completed.\n");
setup_library_paths();
exec("/usr/local/sbin/pbi_info " . escapeshellarg(preg_replace('/\.pbi$/','',$filename)) . " | /usr/bin/awk '/Prefix/ {print $2}'",$pbidir);
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index b5f6498..0d00453 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -74,6 +74,7 @@ $pconfig['use_mfs_tmpvar'] = isset($config['system']['use_mfs_tmpvar']);
$pconfig['use_mfs_tmp_size'] = $config['system']['use_mfs_tmp_size'];
$pconfig['use_mfs_var_size'] = $config['system']['use_mfs_var_size'];
$pconfig['noinstalllanspd'] = $config['system']['noinstalllanspd'];
+$pconfig['pkg_nochecksig'] = $config['system']['pkg_nochecksig'];
$pconfig['powerd_ac_mode'] = "hadp";
if (!empty($config['system']['powerd_ac_mode']))
@@ -188,6 +189,11 @@ if ($_POST) {
unset($config['system']['noinstalllanspd']);
}
+ if($_POST['pkg_nochecksig'] == "yes")
+ $config['system']['pkg_nochecksig'] = true;
+ else
+ unset($config['system']['pkg_nochecksig']);
+
if($_POST['maxmss_enable'] == "yes") {
$config['system']['maxmss_enable'] = true;
$config['system']['maxmss'] = $_POST['maxmss'];
@@ -699,6 +705,18 @@ function tmpvar_checked(obj) {
<?php endif; ?>
<tr>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Packages settings"); ?></td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Packages signature"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="pkg_nochecksig" type="checkbox" id="pkg_nochecksig" value="yes" <?php if ($pconfig['pkg_nochecksig']) echo "checked=\"checked\""; ?> onclick="tmpvar_checked(this)" />
+ <strong><?=gettext("Do NOT check packages signature"); ?></strong><br/>
+ <?=gettext("Enable this option will make pfSense install any packages without check its signature."); ?>
+ </td>
+ </tr>
+
+ <tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
OpenPOWER on IntegriCloud