summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-15 15:57:16 -0500
committerjim-p <jimp@pfsense.org>2013-02-15 15:57:16 -0500
commit83e18db533bcb4e88bcf2ca9e8f13e1ea59f22a4 (patch)
tree805b280e38193e3075aa65841df102df70fb5b60
parentd6d775a6b51fedc4044497ca9af526a31df6d687 (diff)
downloadpfsense-83e18db533bcb4e88bcf2ca9e8f13e1ea59f22a4.zip
pfsense-83e18db533bcb4e88bcf2ca9e8f13e1ea59f22a4.tar.gz
Use our own git package and not the really old one from FreeBSD's ftp archive for 8.1
-rw-r--r--etc/phpshellsessions/gitsync5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 97757c7..af8c2e7 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -13,7 +13,10 @@ require_once("pfsense-utils.inc");
conf_mount_rw();
-$GIT_PKG = "http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/`uname -m`/packages-8.1-release/All/git-1.7.1.1.tbz"; // Either "git" or the full package URL
+$arch = php_uname("m");
+$arch = ($arch == "i386") ? "" : '/' . $arch;
+
+$GIT_PKG = "http://files.pfsense.org/packages{$arch}/8/All/git-1.8.1.3.tbz"; // Either "git" or the full package URL
$GIT_REPO = "git://github.com/bsdperimeter/pfsense.git";
$DEFAULT_BRANCH = "RELENG_2_0";
$CODIR = "/root/pfsense/";
OpenPOWER on IntegriCloud