Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2019 10:58:48 +0000 (UTC)
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511299 - in head/devel/phabricator: . files
Message-ID:  <201909061058.x86AwmJk052408@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grembo
Date: Fri Sep  6 10:58:48 2019
New Revision: 511299
URL: https://svnweb.freebsd.org/changeset/ports/511299

Log:
  Move upgrade instructions in pkg-message into an upgrade type
  message, taking advantage of new ucl capabilities.
  
  Reported by:	bapt

Modified:
  head/devel/phabricator/Makefile
  head/devel/phabricator/files/pkg-message.in

Modified: head/devel/phabricator/Makefile
==============================================================================
--- head/devel/phabricator/Makefile	Fri Sep  6 10:56:11 2019	(r511298)
+++ head/devel/phabricator/Makefile	Fri Sep  6 10:58:48 2019	(r511299)
@@ -15,11 +15,8 @@ RUN_DEPENDS=	${PHP_PKGNAMEPREFIX}libphutil>=20190831:d
 		arcanist-lib${PHP_PKGNAMESUFFIX}>=20190622:devel/arcanist-lib@${PHP_FLAVOR} \
 		git:devel/git
 
-OPTIONS_DEFINE=	GD OPCACHE
-OPTIONS_DEFAULT=GD OPCACHE
-OPCACHE_DESC?=	Use OPcache to improve performance
-
 USES=		php:flavors shebangfix
+
 REINPLACE_ARGS=	-i ""
 SHEBANG_FILES=	scripts/*.php \
 		scripts/almanac/*.php \
@@ -45,6 +42,10 @@ SHEBANG_FILES=	scripts/*.php \
 		support/aphlict/server/*.php
 USE_PHP=	ctype curl fileinfo filter hash iconv mbstring mysqli openssl \
 		pcntl posix zip
+
+OPTIONS_DEFINE=	GD OPCACHE
+OPTIONS_DEFAULT=GD OPCACHE
+OPCACHE_DESC?=	Use OPcache to improve performance
 
 GD_USE=		PHP=gd
 

Modified: head/devel/phabricator/files/pkg-message.in
==============================================================================
--- head/devel/phabricator/files/pkg-message.in	Fri Sep  6 10:56:11 2019	(r511298)
+++ head/devel/phabricator/files/pkg-message.in	Fri Sep  6 10:58:48 2019	(r511299)
@@ -43,26 +43,6 @@ A phabricator example configuration installed here:
 
   %%PREFIX%%lib/php/phabricator/conf/local/local.json.sample
 
-Don't forget to update the database schema after update:
-
-  service nginx stop
-  service php-fpm stop
-  service phd stop
-  cd %%PREFIX%%/lib/php/phabricator
-  ./bin/storage upgrade
-  service phd start
-  service php-fpm start
-  service nginx start
-
-The above procedure is for users of nginx and php-fpm, please adapt
-accordingly to match your setup.
-
-If your configuration uses an unprivileged user to connect to the database,
-you may have to override the default user so the schema changes can be
-applied with root or some other admin user:
-
-  ./bin/storage upgrade --user <user> --password <password>
-
 If you want to access phabricator hosted git repositories via git,
 you can add the following configuration snippet to /etc/sshd_config
 and reload sshd afterwards (`service sshd reload'):
@@ -84,6 +64,29 @@ Match User git
  PermitTunnel no
  X11Forwarding no
 ========================================================================
+EOM
+},
+{ type: upgrade
+  message: <<EOM
+Don't forget to update the database schema after update:
+
+  service nginx stop
+  service php-fpm stop
+  service phd stop
+  cd %%PREFIX%%/lib/php/phabricator
+  ./bin/storage upgrade
+  service phd start
+  service php-fpm start
+  service nginx start
+
+The above procedure is for users of nginx and php-fpm, please adapt
+accordingly to match your setup.
+
+If your configuration uses an unprivileged user to connect to the database,
+you may have to override the default user so the schema changes can be
+applied with root or some other admin user:
+
+  ./bin/storage upgrade --user <user> --password <password>
 EOM
 }
 ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909061058.x86AwmJk052408>