From owner-svn-ports-head@FreeBSD.ORG Sat Oct 26 15:14:29 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3837368F; Sat, 26 Oct 2013 15:14:29 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 25F7D22AC; Sat, 26 Oct 2013 15:14:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9QFETjs013763; Sat, 26 Oct 2013 15:14:29 GMT (envelope-from adamw@svn.freebsd.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9QFESPx013761; Sat, 26 Oct 2013 15:14:28 GMT (envelope-from adamw@svn.freebsd.org) Message-Id: <201310261514.r9QFESPx013761@svn.freebsd.org> From: Adam Weinberger Date: Sat, 26 Oct 2013 15:14:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331700 - head/www/baikal X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2013 15:14:29 -0000 Author: adamw Date: Sat Oct 26 15:14:28 2013 New Revision: 331700 URL: http://svnweb.freebsd.org/changeset/ports/331700 Log: Handle docs and examples in the stage-way. Handle default database creation in a better way. Don't install yet another copy of the GPL3 license. PORTREVISION bump for plist changes. Drop maintainership. Modified: head/www/baikal/Makefile head/www/baikal/pkg-plist Modified: head/www/baikal/Makefile ============================================================================== --- head/www/baikal/Makefile Sat Oct 26 14:56:17 2013 (r331699) +++ head/www/baikal/Makefile Sat Oct 26 15:14:28 2013 (r331700) @@ -3,12 +3,13 @@ PORTNAME= baikal PORTVERSION= 0.2.6 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://baikal-server.com/get/ DISTNAME= ${PORTNAME}-regular-${PORTVERSION} EXTRACT_SUFX= .tgz -MAINTAINER= adamw@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Lightweight CalDAV/CardDAV server LICENSE= GPLv3 @@ -18,13 +19,8 @@ USE_PHP= ctype filter xml pdo_sqlite se WRKSRC= ${WRKDIR}/${PORTNAME}-regular NO_BUILD= yes -PLIST_SUB+= CALDB="${WWWDIR}/Specific/db/db.sqlite" -SUB_LIST+= CALDB="${WWWDIR}/Specific/db/db.sqlite" SUB_FILES= pkg-install pkg-message -PORTDOCS= * -PORTEXAMPLES= * - .include post-patch: ${FIND} ${WRKSRC} -type f -not -name '*.php' -exec ${CHMOD} ${SHAREMODE} {} \; @@ -34,6 +30,7 @@ post-patch: ${WRKSRC}/Specific/db/db.sqlite-dist ${CHMOD} 644 ${WRKSRC}/Specific/db/db.sqlite-dist # I can't decide whether to include this file or forbid it. +# It's probably better to make remote configuration opt-in. # ${ECHO_CMD} "platypus" > ${WRKSRC}/Specific/ENABLE_INSTALL ${RM} -f ${WRKSRC}/Specific/ENABLE_INSTALL ${REINPLACE_CMD} -e 's,/var/www/dav.mydomain.com,${WWWDIR},g' \ @@ -47,17 +44,15 @@ do-install: .endfor cd ${WRKSRC} && ${FIND} Specific -not -path '*/virtualhosts*' | \ ${CPIO} -pdmu -R ${WWWOWN}:${WWWGRP} --quiet ${STAGEDIR}${WWWDIR} -.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} -.for f in INSTALL.md LICENSE.txt README.md TROUBLESHOOTING.md +.for f in INSTALL.md README.md TROUBLESHOOTING.md ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} .endfor -.endif -.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for f in apache2 nginx ${INSTALL_DATA} ${WRKSRC}/Specific/virtualhosts/baikal.$f ${STAGEDIR}${EXAMPLESDIR} .endfor -.endif .include Modified: head/www/baikal/pkg-plist ============================================================================== --- head/www/baikal/pkg-plist Sat Oct 26 14:56:17 2013 (r331699) +++ head/www/baikal/pkg-plist Sat Oct 26 15:14:28 2013 (r331700) @@ -301,8 +301,9 @@ %%WWWDIR%%/Core/Resources/Web/TwitterBootstrap %%WWWDIR%%/Specific/.htaccess @rmtry %%WWWDIR%%/Specific/ENABLE_INSTALL -@unexec if test -f %%CALDB%% && cmp -s %%CALDB%%-dist %%CALDB%%; then /bin/rm -f %%CALDB%%; fi +@unexec if cmp -s %D/Specific/db/db.sqlite-dist %D/Specific/db/db.sqlite; then rm -f %D/Specific/db/db.sqlite; fi %%WWWDIR%%/Specific/db/db.sqlite-dist +@exec if [ ! -f %D/Specific/db/db.sqlite ]; then cp -p %D/%F %B/Specific/db/db.sqlite; fi %%WWWDIR%%/html/.htaccess %%WWWDIR%%/html/admin/index.php %%WWWDIR%%/html/admin/install/index.php @@ -995,3 +996,10 @@ @dirrm %%WWWDIR%%/Core/Frameworks @dirrm %%WWWDIR%%/Core @dirrmtry %%WWWDIR%% +%%PORTDOCS%%%%DOCSDIR%%/INSTALL.md +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/TROUBLESHOOTING.md +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/baikal.apache2 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/baikal.nginx +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%