Index: head/devel/phabricator/Makefile =================================================================== --- head/devel/phabricator/Makefile (revision 511298) +++ head/devel/phabricator/Makefile (revision 511299) @@ -1,83 +1,84 @@ # $FreeBSD$ PORTNAME= phabricator PORTVERSION= 20190831 CATEGORIES= devel PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} MAINTAINER= grembo@FreeBSD.org COMMENT= Open source, software engineering platform LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PHP_PKGNAMEPREFIX}libphutil>=20190831:devel/libphutil@${PHP_FLAVOR} \ 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 \ scripts/cache/*.php \ scripts/celerity/*.php \ scripts/daemon/*.php \ scripts/diviner/*.php \ scripts/drydock/*.php \ scripts/fact/*.php \ scripts/files/*.php \ scripts/install/install_rhel-derivs.sh \ scripts/install/install_ubuntu.sh \ scripts/lipsum/*.php \ scripts/mail/*.php \ scripts/repository/*.php \ scripts/search/*.php \ scripts/setup/*.php \ scripts/ssh/*.php \ scripts/sql/*.php \ scripts/ssh/*.php \ scripts/symbols/*.php \ scripts/util/*.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 OPCACHE_RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/apcu.so:devel/pecl-APCu@${PHP_FLAVOR} OPCACHE_USE= PHP=opcache USE_GITHUB= yes NO_BUILD= yes USE_RC_SUBR= phd SUB_FILES= pkg-message GH_ACCOUNT= phacility GH_TAGNAME= 24dbff2 PHP_DESTDIR= lib/php/phabricator post-patch: @${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${FILESDIR}/phabricator-sudoers.sample > ${WRKSRC}/resources/sshd/phabricator-sudoers.sample @${REINPLACE_CMD} \ 's|/path/to/phabricator|${LOCALBASE}/lib/php/phabricator|g; \ s|vcs-user|git|g' \ ${WRKSRC}/resources/sshd/phabricator-ssh-hook.sh @${REINPLACE_CMD} \ 's|/usr/libexec/phabricator-ssh-hook.sh|${LOCALBASE}/lib/php/phabricator/resources/sshd/phabricator-ssh-hook.sh|; \ s|vcs-user|git|g; \ s|PrintLastLog no||g; \ s|PidFile /var/run/sshd-phabricator.pid||g' \ ${WRKSRC}/resources/sshd/sshd_config.phabricator.example do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/conf/local ${INSTALL_DATA} ${FILESDIR}/local.json.sample \ ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/conf/local cd ${WRKSRC} ; ${PAX} -rw * ${STAGEDIR}${PREFIX}/${PHP_DESTDIR} .include Index: head/devel/phabricator/files/pkg-message.in =================================================================== --- head/devel/phabricator/files/pkg-message.in (revision 511298) +++ head/devel/phabricator/files/pkg-message.in (revision 511299) @@ -1,89 +1,92 @@ [ { type: install message: < --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'): ======================================================================== Match User git AllowUsers git AuthorizedKeysCommand %%PREFIX%%/lib/php/phabricator/resources/sshd/phabricator-ssh-hook.sh AuthorizedKeysCommandUser git AuthorizedKeysFile none AuthenticationMethods publickey PermitRootLogin no PasswordAuthentication no PermitTTY no AllowAgentForwarding no AllowTcpForwarding no GatewayPorts no PermitOpen none PermitTunnel no X11Forwarding no ======================================================================== +EOM +}, +{ type: upgrade + message: < --password EOM } ]