From owner-svn-ports-all@freebsd.org Wed Jun 7 11:52:50 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9B52C0A67E; Wed, 7 Jun 2017 11:52:50 +0000 (UTC) (envelope-from mat@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 mx1.freebsd.org (Postfix) with ESMTPS id B31CF7147B; Wed, 7 Jun 2017 11:52:50 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v57BqngU065910; Wed, 7 Jun 2017 11:52:49 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v57BqnXI065908; Wed, 7 Jun 2017 11:52:49 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201706071152.v57BqnXI065908@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Wed, 7 Jun 2017 11:52:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r442831 - in head/www/owncloud: . files X-SVN-Group: ports-head 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.23 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: Wed, 07 Jun 2017 11:52:51 -0000 Author: mat Date: Wed Jun 7 11:52:49 2017 New Revision: 442831 URL: https://svnweb.freebsd.org/changeset/ports/442831 Log: Add a newsyslog configuration file for rotating owncloud's log file. While there, make the "occ" script executable, many owncloud documentation tell you to run ./occ, it makes it easier. Also, clean all the deprecated stuff. PR: 219503 Submitted by: mat Approved by: maintainer timeout Sponsored by: Absolight Added: head/www/owncloud/files/newsyslog.in (contents, props changed) Modified: head/www/owncloud/Makefile (contents, props changed) head/www/owncloud/pkg-plist (contents, props changed) Modified: head/www/owncloud/Makefile ============================================================================== --- head/www/owncloud/Makefile Wed Jun 7 11:43:30 2017 (r442830) +++ head/www/owncloud/Makefile Wed Jun 7 11:52:49 2017 (r442831) @@ -11,11 +11,10 @@ COMMENT= Personal cloud which runs on your own server LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -USES= cpe tar:bzip2 ssl +USES= cpe tar:bzip2 ssl php:web USE_PHP= bz2 ctype curl dom fileinfo filter gd hash iconv intl json \ mbstring pdo posix session simplexml xml xmlreader xmlwriter \ xsl wddx zip zlib -WANT_PHP_WEB= yes OWNCLOUD_USERNAME?= ${WWWOWN} OWNCLOUD_GROUPNAME?= ${WWWGRP} @@ -23,7 +22,7 @@ OWNCLOUD_GROUPNAME?= ${WWWGRP} WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= yes NO_ARCH= yes -SUB_FILES= pkg-message +SUB_FILES= pkg-message newsyslog PLIST_SUB= OWNCLOUD_USERNAME=${OWNCLOUD_USERNAME} \ OWNCLOUD_GROUPNAME=${OWNCLOUD_GROUPNAME} @@ -36,7 +35,8 @@ EXIF_DESC= Image rotation support EXIF_USE= PHP=exif LDAP_USE= PHP=ldap -MYSQL_USE= MYSQL=client PHP=pdo_mysql +MYSQL_USE= PHP=pdo_mysql +MYSQL_USES= mysql PGSQL_USES= pgsql PGSQL_USE= PHP=pdo_pgsql,pgsql SQLITE_USE= PHP=pdo_sqlite,sqlite3 @@ -48,5 +48,7 @@ do-install: @cd ${WRKSRC} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} @${MKDIR} ${STAGEDIR}${WWWDIR}/data + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/ + ${INSTALL_DATA} ${WRKDIR}/newsyslog ${STAGEDIR}${EXAMPLESDIR} .include Added: head/www/owncloud/files/newsyslog.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/owncloud/files/newsyslog.in Wed Jun 7 11:52:49 2017 (r442831) @@ -0,0 +1,2 @@ +# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] +%%WWWDIR%%/data/owncloud.log www:www 640 10 1000 * XCBN Modified: head/www/owncloud/pkg-plist ============================================================================== --- head/www/owncloud/pkg-plist Wed Jun 7 11:43:30 2017 (r442830) +++ head/www/owncloud/pkg-plist Wed Jun 7 11:52:49 2017 (r442831) @@ -1,3 +1,5 @@ +@dir etc/newsyslog.conf.d +@sample %%EXAMPLESDIR%%/newsyslog etc/newsyslog.conf.d/owncloud %%WWWDIR%%/.htaccess %%WWWDIR%%/.user.ini %%WWWDIR%%/AUTHORS @@ -10612,7 +10614,7 @@ %%WWWDIR%%/lib/public/User/IProvidesQuotaBackend.php %%WWWDIR%%/lib/public/UserInterface.php %%WWWDIR%%/lib/public/Util.php -%%WWWDIR%%/occ +@(,,0755) %%WWWDIR%%/occ %%WWWDIR%%/ocs-provider/index.php %%WWWDIR%%/ocs/providers.php %%WWWDIR%%/ocs/routes.php