From owner-svn-ports-all@freebsd.org Fri Sep 6 10:58:49 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 499B9F02CA; Fri, 6 Sep 2019 10:58:49 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PvgY1JJCz4C7B; Fri, 6 Sep 2019 10:58:49 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 111681BB60; Fri, 6 Sep 2019 10:58:49 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x86AwmjW052410; Fri, 6 Sep 2019 10:58:48 GMT (envelope-from grembo@FreeBSD.org) Received: (from grembo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x86AwmJk052408; Fri, 6 Sep 2019 10:58:48 GMT (envelope-from grembo@FreeBSD.org) Message-Id: <201909061058.x86AwmJk052408@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: grembo set sender to grembo@FreeBSD.org using -f From: Michael Gmelin Date: Fri, 6 Sep 2019 10:58:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511299 - in head/devel/phabricator: . files X-SVN-Group: ports-head X-SVN-Commit-Author: grembo X-SVN-Commit-Paths: in head/devel/phabricator: . files X-SVN-Commit-Revision: 511299 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 10:58:49 -0000 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 --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: < --password EOM } ]