mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-21 14:22:41 +01:00
Remove some "Phacility" and "epriestley" references
Summary: Ref T13658. This just scrubs some of the simple references from the codebase. Most of what's left is in documentation which won't be relevant for a fork and/or which I need to separately revise (or more-or-less delete) at some point anyway. I removed the "install RHEL" and "install Ubuntu" scripts outright since I don't have any reasonable way to test them and don't plan to maintain them. Test Plan: Grepped for "phacility", "epriestley"; ran unit tests. Reviewers: cspeckmim Reviewed By: cspeckmim Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13658 Differential Revision: https://secure.phabricator.com/D21678
This commit is contained in:
parent
14c516b7a1
commit
5521f76fe4
19 changed files with 39 additions and 305 deletions
2
NOTICE
2
NOTICE
|
@ -1,7 +1,7 @@
|
|||
Phabricator
|
||||
Copyright 2014 Phacility, Inc.
|
||||
|
||||
This software is primarily developed and maintained by Phacility, Inc.
|
||||
Phabricator was originally developed and maintained by Phacility, Inc.
|
||||
|
||||
http://www.phacility.com/
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ return array(
|
|||
'conpherence.pkg.css' => '0e3cf785',
|
||||
'conpherence.pkg.js' => '020aebcf',
|
||||
'core.pkg.css' => '0ae696de',
|
||||
'core.pkg.js' => '68f29322',
|
||||
'core.pkg.js' => 'd2de90d9',
|
||||
'dark-console.pkg.js' => '187792c2',
|
||||
'differential.pkg.css' => 'ffb69e3d',
|
||||
'differential.pkg.js' => '8deec4cd',
|
||||
|
@ -246,7 +246,7 @@ return array(
|
|||
'rsrc/externals/javelin/ext/view/__tests__/ViewInterpreter.js' => 'a9f35511',
|
||||
'rsrc/externals/javelin/ext/view/__tests__/ViewRenderer.js' => '3a1b81f6',
|
||||
'rsrc/externals/javelin/lib/Cookie.js' => '05d290ef',
|
||||
'rsrc/externals/javelin/lib/DOM.js' => '94681e22',
|
||||
'rsrc/externals/javelin/lib/DOM.js' => 'e4c7622a',
|
||||
'rsrc/externals/javelin/lib/History.js' => '030b4f7a',
|
||||
'rsrc/externals/javelin/lib/JSON.js' => '541f81c3',
|
||||
'rsrc/externals/javelin/lib/Leader.js' => '0d2490ce',
|
||||
|
@ -717,7 +717,7 @@ return array(
|
|||
'javelin-color' => '78f811c9',
|
||||
'javelin-cookie' => '05d290ef',
|
||||
'javelin-diffusion-locate-file-source' => '94243d89',
|
||||
'javelin-dom' => '94681e22',
|
||||
'javelin-dom' => 'e4c7622a',
|
||||
'javelin-dynval' => '202a2e85',
|
||||
'javelin-event' => 'c03f2fb4',
|
||||
'javelin-external-editor-link-engine' => '48a8641f',
|
||||
|
@ -1781,13 +1781,6 @@ return array(
|
|||
'javelin-uri',
|
||||
'javelin-routable',
|
||||
),
|
||||
'94681e22' => array(
|
||||
'javelin-magical-init',
|
||||
'javelin-install',
|
||||
'javelin-util',
|
||||
'javelin-vector',
|
||||
'javelin-stratcom',
|
||||
),
|
||||
'9623adc1' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
|
@ -2167,6 +2160,13 @@ return array(
|
|||
'javelin-dom',
|
||||
'phuix-dropdown-menu',
|
||||
),
|
||||
'e4c7622a' => array(
|
||||
'javelin-magical-init',
|
||||
'javelin-install',
|
||||
'javelin-util',
|
||||
'javelin-vector',
|
||||
'javelin-stratcom',
|
||||
),
|
||||
'e5bdb730' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
|
|
|
@ -29,8 +29,7 @@ foreach (new LiskMigrationIterator($table) as $revision) {
|
|||
foreach ($reviewer_phids as $dst) {
|
||||
if (phid_get_type($dst) == PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN) {
|
||||
// At least one old install ran into some issues here. Skip the row if we
|
||||
// can't figure out what the destination PHID is. See here:
|
||||
// https://github.com/phacility/phabricator/pull/507
|
||||
// can't figure out what the destination PHID is.
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,138 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
confirm() {
|
||||
echo "Press RETURN to continue, or ^C to cancel.";
|
||||
read -e ignored
|
||||
}
|
||||
|
||||
RHEL_VER_FILE="/etc/redhat-release"
|
||||
|
||||
if [[ ! -f $RHEL_VER_FILE ]]
|
||||
then
|
||||
echo "It looks like you're not running a Red Hat-derived distribution."
|
||||
echo "This script is intended to install Phabricator on RHEL-derived"
|
||||
echo "distributions such as RHEL, Fedora, CentOS, and Scientific Linux."
|
||||
echo "Proceed with caution."
|
||||
confirm
|
||||
fi
|
||||
|
||||
echo "PHABRICATOR RED HAT DERIVATIVE INSTALLATION SCRIPT";
|
||||
echo "This script will install Phabricator and all of its core dependencies.";
|
||||
echo "Run it from the directory you want to install into.";
|
||||
echo
|
||||
|
||||
RHEL_REGEX="release ([0-9]+)\."
|
||||
|
||||
if [[ $(cat $RHEL_VER_FILE) =~ $RHEL_REGEX ]]
|
||||
then
|
||||
RHEL_MAJOR_VER=${BASH_REMATCH[1]}
|
||||
else
|
||||
echo "Ut oh, we were unable to determine your distribution's major"
|
||||
echo "version number. Please make sure you're running 6.0+ before"
|
||||
echo "proceeding."
|
||||
confirm
|
||||
fi
|
||||
|
||||
if [[ $RHEL_MAJOR_VER < 6 && $RHEL_MAJOR_VER > 0 ]]
|
||||
then
|
||||
echo "** WARNING **"
|
||||
echo "A major version less than 6 was detected. Because of this,"
|
||||
echo "several needed dependencies are not available via default repos."
|
||||
echo "Specifically, RHEL 5 does not have a PEAR package for php53-*."
|
||||
echo "We will attempt to install it manually, for APC. Please be careful."
|
||||
confirm
|
||||
fi
|
||||
|
||||
echo "Phabricator will be installed to: $(pwd).";
|
||||
confirm
|
||||
|
||||
echo "Testing sudo/root..."
|
||||
if [[ $EUID -ne 0 ]] # Check if we're root. If we are, continue.
|
||||
then
|
||||
sudo true
|
||||
SUDO="sudo"
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
echo "ERROR: You must be able to sudo to run this script, or run it as root.";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [[ $RHEL_MAJOR_VER == 5 ]]
|
||||
then
|
||||
# RHEL 5's "php" package is actually 5.1. The "php53" package won't let us install php-pecl-apc.
|
||||
# (it tries to pull in php 5.1 stuff) ...
|
||||
yum repolist | grep -i epel
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "It doesn't look like you have the EPEL repo enabled. We are to add it"
|
||||
echo "for you, so that we can install git."
|
||||
$SUDO rpm -Uvh https://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
|
||||
fi
|
||||
YUMCOMMAND="$SUDO yum install httpd git php53 php53-cli php53-mysql php53-process php53-devel php53-gd gcc wget make pcre-devel mysql-server"
|
||||
else
|
||||
# RHEL 6+ defaults with php 5.3
|
||||
YUMCOMMAND="$SUDO yum install httpd git php php-cli php-mysql php-process php-devel php-gd php-pecl-apc php-pecl-json php-mbstring mysql-server"
|
||||
fi
|
||||
|
||||
echo "Dropping to yum to install dependencies..."
|
||||
echo "Running: ${YUMCOMMAND}"
|
||||
echo "Yum will prompt you with [Y/n] to continue installing."
|
||||
|
||||
$YUMCOMMAND
|
||||
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
echo "The yum command failed. Please fix the errors and re-run this script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $RHEL_MAJOR_VER == 5 ]]
|
||||
then
|
||||
# Now that we've ensured all the devel packages required for pecl/apc are there, let's
|
||||
# set up PEAR, and install apc.
|
||||
echo "Attempting to install PEAR"
|
||||
wget https://pear.php.net/go-pear.phar
|
||||
$SUDO php go-pear.phar && $SUDO pecl install apc
|
||||
fi
|
||||
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
echo "The apc install failed. Continuing without APC, performance may be impacted."
|
||||
fi
|
||||
|
||||
pidof httpd 2>&1 > /dev/null
|
||||
if [[ $? -eq 0 ]]
|
||||
then
|
||||
echo "If php was installed above, please run: /etc/init.d/httpd graceful"
|
||||
else
|
||||
echo "Please remember to start the httpd with: /etc/init.d/httpd start"
|
||||
fi
|
||||
|
||||
pidof mysqld 2>&1 > /dev/null
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
echo "Please remember to start the mysql server: /etc/init.d/mysqld start"
|
||||
fi
|
||||
|
||||
confirm
|
||||
|
||||
if [[ ! -e arcanist ]]
|
||||
then
|
||||
git clone https://github.com/phacility/arcanist.git
|
||||
else
|
||||
(cd arcanist && git pull --rebase)
|
||||
fi
|
||||
|
||||
if [[ ! -e phabricator ]]
|
||||
then
|
||||
git clone https://github.com/phacility/phabricator.git
|
||||
else
|
||||
(cd phabricator && git pull --rebase)
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':";
|
||||
echo
|
||||
echo " https://secure.phabricator.com/book/phabricator/article/configuration_guide/";
|
|
@ -1,117 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
confirm() {
|
||||
echo "Press RETURN to continue, or ^C to cancel.";
|
||||
read -e ignored
|
||||
}
|
||||
|
||||
INSTALL_URI=" https://phurl.io/u/install"
|
||||
|
||||
failed() {
|
||||
echo
|
||||
echo
|
||||
echo "Installation has failed."
|
||||
echo "Text above this message might be useful to understanding what exactly failed."
|
||||
echo
|
||||
echo "Please follow this guide to manually complete installation:"
|
||||
echo
|
||||
echo $INSTALL_URI
|
||||
echo
|
||||
echo "We apologize for the inconvenience."
|
||||
exit 3
|
||||
}
|
||||
|
||||
ISSUE=`cat /etc/issue`
|
||||
if [[ $ISSUE != Ubuntu* ]]
|
||||
then
|
||||
echo "This script is intended for use on Ubuntu, but this system appears";
|
||||
echo "to be something else. Your results may vary.";
|
||||
echo
|
||||
confirm
|
||||
fi
|
||||
|
||||
echo "PHABRICATOR UBUNTU INSTALL SCRIPT";
|
||||
echo "This script will install Apache, Phabricator and its core dependencies.";
|
||||
echo "Run it from the directory you want to install into.";
|
||||
echo
|
||||
|
||||
echo "Testing sudo..."
|
||||
sudo true
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "ERROR: You must be able to sudo to run this script.";
|
||||
exit 1;
|
||||
fi;
|
||||
|
||||
echo 'Testing Ubuntu version...'
|
||||
|
||||
VERSION=`lsb_release -rs`
|
||||
MAJOR=`expr match "$VERSION" '\([0-9]*\)'`
|
||||
|
||||
if [ "$MAJOR" -lt 16 ]
|
||||
then
|
||||
echo 'This script is intented to install on modern operating systems; Your '
|
||||
echo 'operating system is too old for this script.'
|
||||
echo 'You can still install Phabricator manually - please consult the installation'
|
||||
echo 'guide to see how:'
|
||||
echo
|
||||
echo $INSTALL_URI
|
||||
echo
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Ubuntu 16.04 LTS only has php 7.0 in their repos, so they need this extra ppa.
|
||||
# Ubuntu 17.4 and up have official 7.2 builds.
|
||||
if [ "$MAJOR" -eq 16 ]
|
||||
then
|
||||
echo 'This version of Ubuntu requires additional resources in order to install'
|
||||
echo 'and run Phabricator.'
|
||||
echo 'We will now add a the following package repository to your system:'
|
||||
echo ' https://launchpad.net/~ondrej/+archive/ubuntu/php'
|
||||
echo
|
||||
echo 'This repository is generally considered safe to use.'
|
||||
confirm
|
||||
|
||||
sudo add-apt-repository -y ppa:ondrej/php || failed
|
||||
fi
|
||||
|
||||
ROOT=`pwd`
|
||||
echo "Phabricator will be installed to: ${ROOT}.";
|
||||
confirm
|
||||
|
||||
echo "Installing dependencies: git, apache, mysql, php...";
|
||||
echo
|
||||
sudo apt-get -qq update
|
||||
sudo apt-get install \
|
||||
git mysql-server apache2 libapache2-mod-php \
|
||||
php php-mysql php-gd php-curl php-apcu php-cli php-json php-mbstring \
|
||||
|| failed
|
||||
|
||||
echo "Enabling mod_rewrite in Apache..."
|
||||
echo
|
||||
sudo a2enmod rewrite || failed
|
||||
|
||||
echo "Downloading Phabricator and dependencies..."
|
||||
echo
|
||||
|
||||
if [ ! -e arcanist ]
|
||||
then
|
||||
git clone https://github.com/phacility/arcanist.git
|
||||
else
|
||||
(cd arcanist && git pull --rebase)
|
||||
fi
|
||||
|
||||
if [ ! -e phabricator ]
|
||||
then
|
||||
git clone https://github.com/phacility/phabricator.git
|
||||
else
|
||||
(cd phabricator && git pull --rebase)
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':";
|
||||
echo
|
||||
echo " https://secure.phabricator.com/book/phabricator/article/configuration_guide/";
|
||||
echo
|
||||
echo 'Next step is "Configuring Apache webserver".'
|
|
@ -30,7 +30,7 @@ final class AlmanacNamesTestCase extends PhabricatorTestCase {
|
|||
|
||||
'abc' => true,
|
||||
'a.b' => true,
|
||||
'db.phacility.instance' => true,
|
||||
'db.companyname.instance' => true,
|
||||
'web002.useast.example.com' => true,
|
||||
'master.example-corp.com' => true,
|
||||
|
||||
|
|
|
@ -135,10 +135,9 @@ abstract class PhabricatorApplication
|
|||
|
||||
|
||||
/**
|
||||
* Returns true if an application is first-party (developed by Phacility)
|
||||
* and false otherwise.
|
||||
* Returns true if an application is first-party and false otherwise.
|
||||
*
|
||||
* @return bool True if this application is developed by Phacility.
|
||||
* @return bool True if this application is first-party.
|
||||
*/
|
||||
final public function isFirstParty() {
|
||||
$where = id(new ReflectionClass($this))->getFileName();
|
||||
|
|
|
@ -128,11 +128,15 @@ final class PhutilICSWriter extends Phobject {
|
|||
|
||||
$properties[] = $this->newTextProperty(
|
||||
'PRODID',
|
||||
'-//Phacility//Phabricator//EN');
|
||||
self::getICSPRODID());
|
||||
|
||||
return $properties;
|
||||
}
|
||||
|
||||
public static function getICSPRODID() {
|
||||
return '-//Phacility//Phabricator//EN';
|
||||
}
|
||||
|
||||
private function getEventNodeProperties(PhutilCalendarEventNode $event) {
|
||||
$properties = array();
|
||||
|
||||
|
|
|
@ -138,6 +138,12 @@ final class PhutilICSWriterTestCase extends PhutilTestCase {
|
|||
private function assertICS($name, $actual) {
|
||||
$path = dirname(__FILE__).'/data/'.$name;
|
||||
$data = Filesystem::readFile($path);
|
||||
|
||||
$data = str_replace(
|
||||
'${PRODID}',
|
||||
PhutilICSWriter::getICSPRODID(),
|
||||
$data);
|
||||
|
||||
$this->assertEqual($data, $actual, pht('ICS: %s', $name));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Phacility//Phabricator//EN
|
||||
PRODID:${PRODID}
|
||||
BEGIN:VEVENT
|
||||
UID:christmas-day
|
||||
CREATED:20160901T232425Z
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Phacility//Phabricator//EN
|
||||
PRODID:${PRODID}
|
||||
BEGIN:VEVENT
|
||||
UID:office-party
|
||||
CREATED:20161001T120000Z
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Phacility//Phabricator//EN
|
||||
PRODID:${PRODID}
|
||||
BEGIN:VEVENT
|
||||
UID:recurring-christmas
|
||||
CREATED:20001225T000000Z
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Phacility//Phabricator//EN
|
||||
PRODID:${PRODID}
|
||||
BEGIN:VEVENT
|
||||
UID:tea-time
|
||||
CREATED:20160915T070000Z
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorMetaMTAEmailBodyParser extends Phobject {
|
|||
*
|
||||
* Or
|
||||
*
|
||||
* !assign epriestley
|
||||
* !assign alincoln
|
||||
*
|
||||
* please, take this task I took; its hard
|
||||
*
|
||||
|
@ -20,9 +20,9 @@ final class PhabricatorMetaMTAEmailBodyParser extends Phobject {
|
|||
* commands. For example, this body above might parse as:
|
||||
*
|
||||
* array(
|
||||
* 'body' => 'please, take this task I took; its hard',
|
||||
* 'body' => 'please, take this task I took; it's hard',
|
||||
* 'commands' => array(
|
||||
* array('assign', 'epriestley'),
|
||||
* array('assign', 'alincoln'),
|
||||
* ),
|
||||
* )
|
||||
*
|
||||
|
|
|
@ -723,7 +723,6 @@ final class PhabricatorRepositoryPullEngine
|
|||
// This behavior has been reverted, but users who updated between Feb 1,
|
||||
// 2012 and Mar 1, 2012 will have the erroring version. Do a dumb test
|
||||
// against stdout to check for this possibility.
|
||||
// See: https://github.com/phacility/phabricator/issues/101/
|
||||
|
||||
// NOTE: Mercurial has translated versions, which translate this error
|
||||
// string. In a translated version, the string will be something else,
|
||||
|
|
|
@ -19,7 +19,7 @@ final class PHUIBadgeExample extends PhabricatorUIExample {
|
|||
$badges1 = array();
|
||||
$badges1[] = id(new PHUIBadgeView())
|
||||
->setIcon('fa-users')
|
||||
->setHeader(pht('Phacility High Command'))
|
||||
->setHeader(pht('High Command'))
|
||||
->setHref('/')
|
||||
->setSource('Projects (automatic)')
|
||||
->addByline(pht('Dec 31, 1969'))
|
||||
|
@ -113,7 +113,7 @@ final class PHUIBadgeExample extends PhabricatorUIExample {
|
|||
->setHeader(pht('Lead Developer'))
|
||||
->setSubhead(pht('Lead Developer of Phabricator'))
|
||||
->setQuality(PhabricatorBadgesQuality::HEIRLOOM)
|
||||
->setSource(pht('Direct Award (epriestley)'))
|
||||
->setSource(pht('Direct Award'))
|
||||
->addByline(pht('Dec 31, 1969'))
|
||||
->addByline('1 Awarded (0.4%)');
|
||||
|
||||
|
|
|
@ -102,22 +102,7 @@ your own risk and expect that your skills may be tested.
|
|||
Installing Required Components
|
||||
==============================
|
||||
|
||||
If you are installing on Ubuntu or an RedHat derivative, there are install
|
||||
scripts available which should handle most of the things discussed in this
|
||||
document for you:
|
||||
|
||||
- **RedHat Derivatives**:
|
||||
[[ https://secure.phabricator.com/diffusion/P/browse/master/scripts/install/install_rhel-derivs.sh
|
||||
| install_rhel-derivs.sh ]]
|
||||
- **Ubuntu**:
|
||||
[[ https://secure.phabricator.com/diffusion/P/browse/master/scripts/install/install_ubuntu.sh
|
||||
| install_ubuntu.sh ]]
|
||||
|
||||
If those work for you, you can skip directly to the
|
||||
@{article:Configuration Guide}. These scripts are also available in the
|
||||
`scripts/install` directory in the project itself.
|
||||
|
||||
Otherwise, here's a general description of what you need to install:
|
||||
Here's a general description of what you need to install:
|
||||
|
||||
- git (usually called "git" in package management systems)
|
||||
- Apache (usually "httpd" or "apache2") (or nginx)
|
||||
|
|
|
@ -84,10 +84,7 @@ External Blogs
|
|||
|
||||
WARNING: This feature is still a prototype and has some known issues.
|
||||
|
||||
You can host a Phame blog on an external domain, like `blog.mycompany.com`. The
|
||||
Phacility corporate blog is an example of an external Phame blog:
|
||||
|
||||
> https://blog.phacility.com/
|
||||
You can host a Phame blog on an external domain, like `blog.mycompany.com`.
|
||||
|
||||
External blogs are public (they do not require login) and are only supported if
|
||||
your Phabricator install is also public. You can make an install public by
|
||||
|
|
4
webroot/rsrc/externals/javelin/lib/DOM.js
vendored
4
webroot/rsrc/externals/javelin/lib/DOM.js
vendored
|
@ -124,7 +124,7 @@ JX.install('HTML', {
|
|||
'will not do the right thing with this.');
|
||||
}
|
||||
|
||||
// TODO(epriestley): May need to deny <option> more broadly, see
|
||||
// TODO: May need to deny <option> more broadly, see
|
||||
// http://support.microsoft.com/kb/829907 and the whole mess in the
|
||||
// heavy stack. But I seem to have gotten away without cloning into the
|
||||
// documentFragment below, so this may be a nonissue.
|
||||
|
@ -147,7 +147,7 @@ JX.install('HTML', {
|
|||
wrapper.innerHTML = this._content;
|
||||
var fragment = document.createDocumentFragment();
|
||||
while (wrapper.firstChild) {
|
||||
// TODO(epriestley): Do we need to do a bunch of cloning junk here?
|
||||
// TODO: Do we need to do a bunch of cloning junk here?
|
||||
// See heavy stack. I'm disconnecting the nodes instead; this seems
|
||||
// to work but maybe my test case just isn't extensive enough.
|
||||
fragment.appendChild(wrapper.removeChild(wrapper.firstChild));
|
||||
|
|
Loading…
Reference in a new issue