head	1.13;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1;
locks; strict;
comment	@# @;


1.13
date	2013.03.16.20.48.45;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2013.01.21.14.44.52;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2012.12.09.08.35.09;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.11.17.06.03.06;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.09.09.21.42.58;	author tota;	state Exp;
branches;
next	1.8;

1.8
date	2012.06.12.15.10.39;	author tota;	state Exp;
branches;
next	1.7;

1.7
date	2012.03.31.08.06.28;	author tota;	state Exp;
branches;
next	1.6;

1.6
date	2012.03.30.21.31.25;	author tota;	state Exp;
branches;
next	1.5;

1.5
date	2011.07.03.20.20.10;	author tota;	state Exp;
branches;
next	1.4;

1.4
date	2011.03.20.23.24.07;	author tota;	state Exp;
branches;
next	1.3;

1.3
date	2011.02.15.12.37.32;	author tota;	state Exp;
branches;
next	1.2;

1.2
date	2011.02.09.13.22.23;	author tota;	state Exp;
branches;
next	1.1;

1.1
date	2010.12.31.13.57.09;	author tota;	state Exp;
branches;
next	;


desc
@@


1.13
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314334
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/www/testlink/Makefile 314334 2013-03-16 04:42:10Z tota $

PORTNAME=	testlink
PORTVERSION=	1.9.6
CATEGORIES=	www devel
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME}/TestLink%201.9/TestLink%20${PORTVERSION}

MAINTAINER=	tota@@FreeBSD.org
COMMENT=	Web based test management and test execution system

LICENSE=	GPLv2

USE_PHP=	gd iconv mbstring session xml
WANT_PHP_WEB=	yes
NO_BUILD=	yes
PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
REINPLACE_ARGS=	-i ''

PORTDOCS=	*
PORTEXAMPLES=	*
DOCS=	CHANGELOG CODE_REUSE README
EXAMPLES=	db_sample file_examples samples.txt

OPTIONS_DEFINE=		OPENLDAP EXTJS
OPTIONS_MULTI=		BACKEND
OPTIONS_MULTI_BACKEND=	MYSQL PGSQL
MYSQL_DESC=		back-end (use mysql PHP extension)
PGSQL_DESC=		back-end (use pgsql PHP extension)
OPENLDAP_DESC=		Enable OpenLDAP support
EXTJS_DESC=		Enable Ext JS support

OPTIONS_DEFAULT=	MYSQL EXTJS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+=	mysql
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=	pgsql
.endif

.if ${PORT_OPTIONS:MOPENLDAP}
USE_PHP+=	ldap
.endif

.if ${PORT_OPTIONS:MEXTJS}
USE_PHP+=	json
.endif

.for e in ${EXAMPLES}
EXCLUDE_EXAMPLES+=	--exclude=${e}
.endfor

post-patch:
	@@${REINPLACE_CMD} -e 's|/var/testlink|${WWWDIR}|' ${WRKSRC}/config.inc.php
	@@${FIND} ${WRKSRC} -name "\.*" -delete
	@@${FIND} ${WRKSRC} -name "*.orig" -delete
	@@${RM} -rf ${WRKSRC}/.idea

do-install:
	@@${MKDIR} ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} cfg ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} custom ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} gui ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} install ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} locale ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} logs ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} third_party ${WWWDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} upload_area ${WWWDIR}
	@@${INSTALL_DATA} ${WRKSRC}/*.php* ${WWWDIR}
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
	@@${TAR} ${EXCLUDE_EXAMPLES} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
	@@${LN} -s ${DOCSDIR} ${WWWDIR}/docs
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@@${MKDIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
	@@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} ${f} ${EXAMPLESDIR}
.endfor
.endif
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}

x-generate-plist:
	${FIND} ${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new
	${FIND} ${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${WWWDIR},@@dirrm %%WWWDIR%%,g' >> pkg-plist.new
.for f in gui/templates_c logs upload_area
	${ECHO} '@@exec mkdir -p %D/%%WWWDIR%%/${f}' >> pkg-plist.new
.endfor
	${ECHO} '@@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%WWWDIR%%' >> pkg-plist.new

.include <bsd.port.mk>
@


1.12
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310768
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/www/testlink/Makefile 310768 2013-01-21 13:44:47Z tota $
d4 1
a4 2
PORTVERSION=	1.9.5
PORTREVISION=	1
@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308513
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308513 | tota | 2012-12-09 08:27:45 +0000 (Sun, 09 Dec 2012) | 4 lines
## SVN ##
## SVN ## - Update to 1.9.5
## SVN ##
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/www/testlink/Makefile 308513 2012-12-09 08:27:45Z tota $
d5 1
d11 1
a11 1
COMMENT=	A web based test management and test execution system
d15 1
a15 1
USE_PHP=	gd iconv mbstring session
d76 1
a76 1
.if !defined(NOPORTDOCS)
d84 1
a84 1
.if !defined(NOPORTEXAMPLES)
@


1.10
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/www/testlink/Makefile 304002 2012-09-09 21:42:58Z tota $
d4 1
a4 1
PORTVERSION=	1.9.4
a12 1
LICENSE_FILE=	${WRKSRC}/LICENSE
a15 1
WRKSRC=	${WRKDIR}/testlink-ga-testlink-code
d22 1
a22 1
DOCS=	CHANGELOG CODE_REUSE README TL-1.9-Prague-NEWS.txt
@


1.9
log
@SVN rev 304002 on 2012-09-09 21:42:58Z by tota

- Update to 1.9.4
- Remove deprecated header information from Makefile
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.8
log
@- Convert to new options framework
@
text
@a0 4
# New ports collection makefile for:	testlink
# Date created:		2010-12-26
# Whom:			TAKATSU Tomonari <tota@@FreeBSD.org>
#
a1 1
#
d4 1
a4 1
PORTVERSION=	1.9.3
d17 1
d20 1
d24 2
d55 4
d60 1
a60 6
.for f in CHANGELOG CODE_REUSE README TL-1.9-Prague-NEWS.txt
	@@${MV} ${WRKSRC}/${f} ${WRKSRC}/docs
.endfor
	@@${MV} ${WRKSRC}/docs/db_sample ${WRKDIR}
	@@${MV} ${WRKSRC}/docs/file_examples ${WRKDIR}
	@@${MV} ${WRKSRC}/docs ${WRKDIR}
d62 2
d67 10
a76 1
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
d79 4
a82 1
	@@cd ${WRKDIR}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
d87 3
a89 2
	@@cd ${WRKDIR} && ${COPYTREE_SHARE} db_sample ${EXAMPLESDIR}
	@@cd ${WRKDIR} && ${COPYTREE_SHARE} file_examples ${EXAMPLESDIR}
a90 3

post-install:
	@@${RM} ${WWWDIR}/LICENSE
@


1.7
log
@- Forced commit to note that I mistook submitter in the previous cvs log
  message
- Corrected log message is as follows

- Add missing dependency [1]
- Move LICENSE section earlier to make portlint happy
- Fix redirection in x-generate-plist target

PR:		ports/166510 [1]
Submitted by:	"Sergey V. Dyatko" <sergey.dyatko@@gmail.com>
Feature safe:	yes
@
text
@d28 7
a34 4
OPTIONS=	MYSQL	"MySQL back-end (use mysql PHP extension)" on \
		PGSQL	"PostgreSQL back-end (use pgsql PHP extension)" off \
		OPENLDAP	"Enable OpenLDAP support" off \
		EXTJS	"Enable Ext JS support" on
d36 1
a36 1
.include <bsd.port.pre.mk>
d38 1
a38 3
.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
IGNORE=	needs at least one database back-end
.endif
d40 1
a40 1
.if defined(WITH_MYSQL)
d44 1
a44 1
.if defined(WITH_PGSQL)
d48 1
a48 1
.if defined(WITH_OPENLDAP)
d52 1
a52 1
.if defined(WITH_EXTJS)
d91 1
a91 1
.include <bsd.port.post.mk>
@


1.6
log
@- Add missing dependency [1]
- Move LICENSE section earlier to make portlint happy
- Fix redirection in x-generate-plist target

PR:		ports/166510 [1]
Submitted by:	rm@@
Feature safe:	yes
@
text
@@


1.5
log
@- Update to 1.9.3

Changes:	http://www.teamst.org/index.php/news-mainmenu-2/1-latest/110-testlink-193-released-2011-07-02
@
text
@d17 4
a20 1
USE_PHP=	gd iconv mbstring
a24 3
LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

d83 1
a83 1
	${FIND} ${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${WWWDIR},%%WWWDIR%%,g' >> pkg-plist.new
@


1.4
log
@- Update to 1.9.2
@
text
@d9 1
a9 1
PORTVERSION=	1.9.2
@


1.3
log
@- Fix pkg-plist

Reported by:	pointyhat (pav)
@
text
@d9 1
a9 2
PORTVERSION=	1.9.1
PORTREVISION=	1
@


1.2
log
@- Update to 1.9.1
- Add note to UPDATING

Changes:	http://www.teamst.org/index.php/news-mainmenu-2/1-latest/104-testlink-191-released-2011-01-23
@
text
@d10 1
@


1.1
log
@- Add a new port: www/testlink

  TestLink is a web based Test Management tool. The application provides Test
  specification, Test plans and execution, Reporting, Requirements specification
  and collaborate with well-known bug trackers.

  WWW: http://www.teamst.org/
@
text
@d9 1
a9 1
PORTVERSION=	1.9.0
a16 1
USE_ZIP=	yes
a18 1
USE_DOS2UNIX=	yes
@

