head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2013.01.23.21.58.53;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.12.16.16.44.18;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2012.12.06.19.30.41;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310901
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/www/baikal/Makefile 310901 2013-01-23 21:36:14Z adamw $
# Created by:	Adam Weinberger <adamw@@FreeBSD.org>

PORTNAME=		baikal
PORTVERSION=	0.2.4
PORTREVISION=	2
CATEGORIES=		www
MASTER_SITES=	http://baikal-server.com/get/
DISTNAME=		${PORTNAME}-regular-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=		adamw@@FreeBSD.org
COMMENT=		Lightweight CalDAV/CardDAV server

USE_PHP=		ctype filter xml pdo_sqlite session mbstring dom

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 <bsd.port.options.mk>
post-patch:
	${FIND} ${WRKSRC} -type f -not -name '*.php' -exec ${CHMOD} ${SHAREMODE} {} \;
	${FIND} ${WRKSRC} -type f -name '*.php' -exec ${CHMOD} ${BINMODE} {} \;
	${FIND} ${WRKSRC} -type d -exec ${CHMOD} 0755 {} \;
	${MV} ${WRKSRC}/Specific/db/db.sqlite \
		${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.
#	${ECHO_CMD} "platypus" > ${WRKSRC}/Specific/ENABLE_INSTALL
	${RM} ${WRKSRC}/Specific/ENABLE_INSTALL
	${REINPLACE_CMD} -e 's,/var/www/dav.mydomain.com,${WWWDIR},g' \
		${WRKSRC}/Specific/virtualhosts/baikal.*

do-install:
	${MKDIR} ${WWWDIR}
.for DIR in Core html
	cd ${WRKSRC} && ${FIND} ${DIR} | \
		${CPIO} -pdmu -R ${BINOWN}:${BINGRP} --quiet ${WWWDIR}
.endfor
	cd ${WRKSRC} && ${FIND} Specific -not -path '*/virtualhosts*' | \
		${CPIO} -pdmu -R ${WWWOWN}:${WWWGRP} --quiet ${WWWDIR}

.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
.for f in INSTALL.md LICENSE.txt README.md TROUBLESHOOTING.md
	${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
.for f in apache2 nginx
	${INSTALL_DATA} ${WRKSRC}/Specific/virtualhosts/baikal.$f ${EXAMPLESDIR}
.endfor
.endif

post-install:
	@@${SH} ${PKGINSTALL} POST-INSTALL
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309027
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309027 | adamw | 2012-12-16 16:39:46 +0000 (Sun, 16 Dec 2012) | 6 lines
## SVN ##
## SVN ## * Don't give www ownership of anything it shouldn't need to write to
## SVN ## * Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS [1]
## SVN ## * PORTREVISION bump
## SVN ##
## SVN ## Submitted by:	jgh [1]
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/www/baikal/Makefile 309027 2012-12-16 16:39:46Z adamw $
d6 1
a6 1
PORTREVISION=	1
d8 1
a8 1
MASTER_SITES=	http://baikal.codr.fr/get/
d15 1
a15 1
USE_PHP=		ctype filter xml pdo_sqlite
@


1.1
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308396
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308396 | adamw | 2012-12-06 19:27:45 +0000 (Thu, 06 Dec 2012) | 18 lines
## SVN ##
## SVN ## Add www/baikal, a great lightweight CalDAV/CardDAV server.
## SVN ##
## SVN ## Baikal is a lightweight CalDAV and CardDAV server. It is
## SVN ## compatible with the calendar and contacts apps from Apple's
## SVN ## iOS and OS X, Android, Evolution, Mozilla Thunderbird, and
## SVN ## any other CalDAV/CardDAV capable application. Baikal supports
## SVN ## authentication with multiple users and calendars, and comes
## SVN ## with a spiffy web-based administration interface.
## SVN ##
## SVN ## Baikal does not start a daemon or open any ports. It must
## SVN ## run at the root of a VirtualHost or subdomain. See the included
## SVN ## sample Apache and Nginx configurations, and INSTALL.md for all
## SVN ## the gory details.
## SVN ##
## SVN ## WWW: http://baikal.codr.fr/
## SVN ##
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/www/baikal/Makefile 308396 2012-12-06 19:27:45Z adamw $
d6 1
a23 1
.if !defined(NOPORTDOCS)
a24 2
.endif
.if !defined(NOPORTEXAMPLES)
a25 1
.endif
d27 1
d29 1
a29 1
	${FIND} ${WRKSRC} -type f \! -name '*.php' -exec ${CHMOD} ${SHAREMODE} {} \;
d43 5
a47 2
.for DIR in Core html Specific
	cd ${WRKSRC} && ${FIND} ${DIR} \! -path '*/virtualhosts*' | \
a48 1
.endfor
d50 1
a50 1
.if !defined(NOPORTDOCS)
d56 1
a56 1
.if !defined(NOPORTEXAMPLES)
@

