summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2017-07-01 23:10:49 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2017-07-01 23:10:49 +0000
commit4d00cc990072515edc7b9ec67c757c8c180fcbfc (patch)
tree41ef2518709ce6c7b0205b3c99de33498a6a09f2
parentRemove expired port: (diff)
Don't run shebangfix on symlinks
This isn't allowed on CURRENT any more and created copies of files where symlinks should have been preserved. Also makes patching files in bin unnecessary. Reported by: rozhuk.im@gmail.com
Notes
Notes: svn path=/head/; revision=444855
-rw-r--r--devel/phabricator/Makefile5
-rw-r--r--devel/phabricator/files/patch-bin407
-rw-r--r--devel/phabricator/files/phd.in3
3 files changed, 4 insertions, 411 deletions
diff --git a/devel/phabricator/Makefile b/devel/phabricator/Makefile
index 3736fda4bcdb..f1ab1adb8d58 100644
--- a/devel/phabricator/Makefile
+++ b/devel/phabricator/Makefile
@@ -2,6 +2,7 @@
PORTNAME= phabricator
PORTVERSION= 20170630
+PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= php-
@@ -20,14 +21,12 @@ OPTIONS_DEFAULT=OPCACHE
OPCACHE_DESC?= Use OPcache to improve performance
USES= php shebangfix
-SHEBANG_FILES= bin/* \
- externals/httpful/build \
+SHEBANG_FILES= externals/httpful/build \
externals/restful/build-phar \
scripts/almanac/*.php \
scripts/cache/*.php \
scripts/celerity/*.php \
scripts/daemon/*.php \
- scripts/daemon/phd-daemon \
scripts/diviner/*.php \
scripts/drydock/*.php \
scripts/fact/*.php \
diff --git a/devel/phabricator/files/patch-bin b/devel/phabricator/files/patch-bin
deleted file mode 100644
index 4fa2999ac828..000000000000
--- a/devel/phabricator/files/patch-bin
+++ /dev/null
@@ -1,407 +0,0 @@
---- bin/accountadmin~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/accountadmin 2017-07-01 13:51:34.930544995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $table = new PhabricatorUser();
---- bin/almanac~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/almanac 2017-07-01 13:51:35.214537995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/aphlict~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/aphlict 2017-07-01 13:51:35.370541995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(dirname(__FILE__))));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/init/init-aphlict.php';
-
- PhabricatorAphlictManagementWorkflow::requireExtensions();
---- bin/audit~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/audit 2017-07-01 13:51:35.538578995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/auth~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/auth 2017-07-01 13:51:35.724540995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/cache~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/cache 2017-07-01 13:51:35.922542995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/calendar~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/calendar 2017-07-01 13:51:36.106546995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/celerity~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/celerity 2017-07-01 13:51:36.298540995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/commit-hook~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/commit-hook 2017-07-01 13:51:36.481559995 +0200
-@@ -28,7 +28,7 @@
- }
- }
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- if ($argc < 2) {
---- bin/config~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/config 2017-07-01 13:51:36.681699995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/init/init-setup.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/differential~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/differential 2017-07-01 13:51:36.890540995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/diviner~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/diviner 2017-07-01 13:51:37.090565995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/drydock~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/drydock 2017-07-01 13:51:37.298538995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/fact~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/fact 2017-07-01 13:51:37.529571995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/feed~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/feed 2017-07-01 13:51:37.754542995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/files~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/files 2017-07-01 13:51:38.170547995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/garbage~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/garbage 2017-07-01 13:51:38.570546995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/harbormaster~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/harbormaster 2017-07-01 13:51:38.866553995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/i18n~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/i18n 2017-07-01 13:51:39.161574995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/lipsum~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/lipsum 2017-07-01 13:51:39.474566995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/mail~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/mail 2017-07-01 13:51:39.770547995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/nuance~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/nuance 2017-07-01 13:51:40.058544995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/people~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/people 2017-07-01 13:51:40.386542995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/phd~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/phd 2017-07-01 13:51:40.722541995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- PhabricatorDaemonManagementWorkflow::requireExtensions();
---- bin/phortune~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/phortune 2017-07-01 13:51:41.082540995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/policy~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/policy 2017-07-01 13:51:41.361589995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/remove~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/remove 2017-07-01 13:51:41.723540995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/repository~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/repository 2017-07-01 13:51:41.994545995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/search~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/search 2017-07-01 13:51:42.313685995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/sms~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/sms 2017-07-01 13:51:42.650562995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/ssh-auth-key~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/ssh-auth-key 2017-07-01 13:51:43.361588995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- try {
---- bin/ssh-auth~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/ssh-auth 2017-07-01 13:51:42.994553995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $cache = PhabricatorCaches::getMutableCache();
---- bin/ssh-connect~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/ssh-connect 2017-07-01 13:51:44.730535995 +0200
-@@ -13,7 +13,7 @@
- declare(ticks = 1);
- }
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- // Contrary to the documentation, Git may pass a "-p" flag. If it does, respect
---- bin/ssh-exec~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/ssh-exec 2017-07-01 13:51:45.105561995 +0200
-@@ -3,7 +3,7 @@
-
- $ssh_start_time = microtime(true);
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $ssh_log = PhabricatorSSHLog::getLog();
---- bin/storage~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/storage 2017-07-01 13:51:45.595548995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/init/init-setup.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/trigger~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/trigger 2017-07-01 13:51:46.089539995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
---- bin/worker~ 2017-06-28 17:47:20.000000000 +0200
-+++ bin/worker 2017-07-01 13:51:46.593537995 +0200
-@@ -1,7 +1,7 @@
- #!/usr/bin/env php
- <?php
-
--$root = dirname(dirname(dirname(__FILE__)));
-+$root = dirname(dirname(__FILE__));
- require_once $root.'/scripts/__init_script__.php';
-
- $args = new PhutilArgumentParser($argv);
diff --git a/devel/phabricator/files/phd.in b/devel/phabricator/files/phd.in
index 5f74c25425a5..317a4c559552 100644
--- a/devel/phabricator/files/phd.in
+++ b/devel/phabricator/files/phd.in
@@ -49,7 +49,8 @@ phd_poll()
phd_restart()
{
- run_rc_command stop
+ ${stop_cmd}
+ phd_poll
run_rc_command start
}