head	1.16;
access;
symbols
	RELEASE_8_3_0:1.14
	RELEASE_9_0_0:1.14
	RELEASE_7_4_0:1.13
	RELEASE_8_2_0:1.13
	RELEASE_6_EOL:1.13
	RELEASE_8_1_0:1.13
	RELEASE_7_3_0:1.13
	RELEASE_8_0_0:1.11
	RELEASE_7_2_0:1.9
	RELEASE_7_1_0:1.8
	RELEASE_6_4_0:1.8
	RELEASE_5_EOL:1.7
	RELEASE_7_0_0:1.7
	RELEASE_6_3_0:1.7
	PRE_XORG_7:1.7
	RELEASE_4_EOL:1.6
	RELEASE_6_2_0:1.6
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4;
locks; strict;
comment	@# @;


1.16
date	2013.03.02.13.44.48;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.11.17.06.03.13;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2011.05.04.14.03.51;	author jadawin;	state Exp;
branches;
next	1.13;

1.13
date	2010.01.20.01.28.55;	author kuriyama;	state Exp;
branches;
next	1.12;

1.12
date	2010.01.13.08.15.54;	author nemoliu;	state Exp;
branches;
next	1.11;

1.11
date	2009.09.02.15.01.55;	author amdmi3;	state Exp;
branches;
next	1.10;

1.10
date	2009.06.16.13.43.13;	author jadawin;	state Exp;
branches;
next	1.9;

1.9
date	2009.01.06.16.53.07;	author wxs;	state Exp;
branches;
next	1.8;

1.8
date	2008.09.07.00.19.01;	author linimon;	state Exp;
branches;
next	1.7;

1.7
date	2007.04.07.08.27.39;	author sat;	state Exp;
branches;
next	1.6;

1.6
date	2006.07.30.22.46.04;	author sat;	state Exp;
branches;
next	1.5;

1.5
date	2006.05.08.21.41.11;	author sat;	state Exp;
branches;
next	1.4;

1.4
date	2006.02.02.13.22.52;	author barner;	state Exp;
branches;
next	1.3;

1.3
date	2006.01.28.20.43.36;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2006.01.28.16.59.32;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2005.11.25.03.01.20;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.16
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313182
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# New ports collection makefile for:	yabb
# Date created:		20 October 2005
# Whom:			Andrew Pantyukhin <infofarmer@@FreeBSD.org>
#
# $FreeBSD: head/www/yabb/Makefile 313182 2013-03-02 03:55:25Z eadler $
#

PORTNAME=	yabb
PORTVERSION=	2.5
CATEGORIES=	www
MASTER_SITES=	SF/${PORTNAME}/YaBB%202/${PORTVERSION}%20AE
DISTNAME=	YaBB_${PORTVERSION}_AE

MAINTAINER=	rodrigo@@bebik.net
COMMENT=	The original free open-source forum written in Perl

RUN_DEPENDS=	p5-Digest-HMAC>=0:${PORTSDIR}/security/p5-Digest-HMAC

NO_PACKAGE=	complicated (de)installation paradigm
USE_ZIP=	yes
USE_PERL5_RUN=	yes
NO_BUILD=	yes
WWWDOCROOT?=	www
YABBSUBDIR?=	yabb
YABBDIR?=	${WWWDOCROOT}/${YABBSUBDIR}
PLIST_SUB=	YABBDIR=${YABBDIR}
DIR=		${PREFIX}/${YABBDIR}
WDIR=		${WRKDIR}/public_html/yabbfiles
WCGI=		${WRKDIR}/cgi-bin/yabb2
SUB_FILES=	pkg-message
SUB_LIST=	DIR=${DIR}
PKGMESSAGE=	${WRKDIR}/pkg-message
ISOFILES=	Setup.pl Admin/ManageTemplates.pl Languages/English/Admin.lng \
	Languages/English/Main.lng Templates/default/AdminCentre.template

LICENSE=	YABB_PUBLIC_LICENCE
LICENSE_NAME=	YABB PUBLIC LICENCE
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_TEXT=	Description of the license can be obtained from the following URL: http://www.yabbforum.com/licenses.php

.include <bsd.port.pre.mk>

post-extract:
	@@${RM} -rf ${WCGI}/Convert ${WCGI}/Modules ${WCGI}/FixFile.pl
	@@${CHMOD} -R a=,u+rwX ${WCGI}/*
	@@${CHMOD} a=rx ${WCGI}/AdminIndex.pl ${WCGI}/Setup.pl ${WCGI}/YaBB.pl
	@@${CHMOD} -R a-w ${WCGI}/Admin ${WCGI}/Languages ${WCGI}/Sources
	@@${CHMOD} -R a=rX ${WDIR}/*
	@@${CHMOD} -R u+w ${WDIR}/Attachments ${WDIR}/Templates

do-patch:
	@@${SED} -i.tmp -e 's/Upload:://' ${WCGI}/Sources/Subs.pl && \
	${RM} -f ${WCGI}/Sources/Subs.pl.tmp
.for _I in ${ISOFILES}
	@@${SED} -i.tmp -e 's/[iI][sS][oO]-8859-1/UTF-8/' ${WCGI}/${_I} && \
	${RM} -f ${WCGI}/${_I}.tmp
.endfor

do-install:
	@@${INSTALL} -d ${DIR}
	@@${CP} -npR ${WCGI}/ ${DIR}/
	@@${CP} -npR ${WDIR}/ ${DIR}/
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DIR}
	@@${CHMOD} a=rx ${DIR}
	@@${CP} -fpR ${FILESDIR}/checksum.sha256 ${DIR}/
	@@${CAT} ${PKGMESSAGE}

pre-clean:
	@@${CHMOD} -Rf +rwX ${WRKDIR}/* 2>/dev/null || true

# Maintainer section
#
#grep -l 8859 `find yabb -type f`
#echo '@@unexec [ k`sha256 -q %D/%%YABBDIR%%/'$i'` = k`grep '\'$i\'' %D/%%YABBDIR%%/checksum.sha256 | cut -c-64` ] && rm -f %D/%%YABBDIR%%/'$i
#echo '@@unexec i='\'$i\'' ; if [ k`sha256 -q %D/%%YABBDIR%%/$i` = k`grep "$i" %D/%%YABBDIR%%/checksum.sha256 | cut -c-64` ] && rm -f %D/%%YABBDIR%%/$i'
#echo '@@unexec i='\'$i\''; cd %D/%%YABBDIR%% && if [ k`sha256 -q $i` = k`grep "$i\$" checksum.sha256 | cut -c-64` ]; then rm -f $i; fi'
#@@cd ${DIR} && ${SHA256} -r `${FIND} * -not -type d` > checksum.sha256

.include <bsd.port.post.mk>
@


1.15
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/www/yabb/Makefile 300897 2012-07-14 14:29:18Z beat $
d38 1
a38 1
LICENSE_PERMS=	${_LICENSE_PERMS_DEFAULT}
@


1.14
log
@- Update to 2.5 AE (Anniversary Edition)
- Add license information

PR:		ports/156746
Submitted by:	Rodrigo Osorio <rodrigo _AT_ bebik.net> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.13
log
@- Remove unneeded dependencies which is in perl-5.8.9 dist
  (part 1).

Approved by:	portmgr (itetcu)
@
text
@d9 1
a9 2
PORTVERSION=	2.4
PORTREVISION=	2
d11 2
a12 2
MASTER_SITES=	SF/${PORTNAME}/YaBB%202/${PORTVERSION}
DISTNAME=	YaBB_${PORTVERSION}
d36 5
@


1.12
log
@- Update to 2.4

PR:	ports/142729
Submitted by:	Rodrigo OSORIO (ros) <rodrigo@@bebik.net> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	1
d18 1
a18 4
RUN_DEPENDS=	p5-CGI.pm>=0:${PORTSDIR}/www/p5-CGI.pm \
		p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes \
		p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5 \
		p5-Digest-HMAC>=0:${PORTSDIR}/security/p5-Digest-HMAC
@


1.11
log
@- Retire MASTER_SITE_SOURCEFORGE_EXTENDED, it's no longer needed - all mirrors actually have all distfiles
- Merge all SF mirrors to MASTER_SITE_SOURCEFORGE, resort according to quick download speed survey
- Fix MASTER_SITES for all port that have used SOURCEFORGE_EXTENTED

Approved by:	portmgr (pav)
@
text
@d9 2
a10 2
PORTVERSION=	2.1
PORTREVISION=	2
@


1.10
log
@- Submitter take maintainership

PR:		ports/135629
Submitted by:	Rodrigo OSORIO <rodrigo _AT_ bebik.net>
@
text
@d12 1
a12 1
MASTER_SITES=	SFE
@


1.9
log
@- Remove conditional checks for FreeBSD 5.x and older

Approved by:	pav
@
text
@d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
@


1.8
log
@Reset infofarmer due to maintainer-timeouts and no response to email.

Hat:	portmgr
@
text
@a41 4
.if ${OSVERSION} < 600021 && ( ${OSVERSION} < 504102 || ${OSVERSION} > 599999 )
RUN_DEPENDS+=	sha256:${PORTSDIR}/sysutils/freebsd-sha256
.endif

@


1.7
log
@- Don't depend on freebsd-sha256 on modern versions of FreeBSD

Submitted by:	kris
@
text
@d15 1
a15 1
MAINTAINER=	infofarmer@@FreeBSD.org
@


1.6
log
@- Provide additional mirrors where needed
- Convert to "magic" master sites
- Various minor portlint-prodded fixes
@
text
@d18 5
a33 7

RUN_DEPENDS+=	sha256:${PORTSDIR}/sysutils/freebsd-sha256
RUN_DEPENDS+=	${SITE_PERL}/CGI/Util.pm:${PORTSDIR}/www/p5-CGI.pm \
	${SITE_PERL}/mach/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
	${SITE_PERL}/mach/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
	${SITE_PERL}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC

d40 6
d82 1
a82 1
.include <bsd.port.mk>
@


1.5
log
@Update my e-mail address

Approved by:	krion (mentor, implicit)
@
text
@d12 1
a12 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR=	${PORTNAME}
@


1.4
log
@- Remove configuration files if they are not modified, otherwise print a
  warning that there are left over files (fixes plist errors).
- Unconditionally enable UTF8 support

Submitted by:	infofarmer@@gmail.com (maintainer)
PR:		ports/92546
@
text
@d3 1
a3 1
# Whom:			Andrew Pantyukhin <infofarmer@@gmail.com>
d16 1
a16 1
MAINTAINER=	infofarmer@@gmail.com
@


1.3
log
@- Mark BROKEN: leaves files behind
@
text
@d10 1
a10 1
PORTREVISION=	1
d19 1
a19 2
BROKEN=		Left over files

d31 1
d54 1
a54 2
.ifdef WITH_UTF8
.	for _I in ${ISOFILES}
d57 1
a57 2
.	endfor
.endif
d65 1
d69 1
a69 1
	@@${CHMOD} -R =rwX ${WRKDIR}/*
d74 4
@


1.2
log
@- Now installs into /usr/local/www instead of /usr/local/www/{data,cgi-bin}
- Data flatfiles are now cautiously left behind whether they have changed or not
- Beta UTF-8 support
- Use external Perl modules instead of the bundled ones
- Tighter security through more carefully set file permissions

PR:		ports/92316
Submitted by:	Andrew Pantyukhin <infofarmer@@gmail.com> (maintainer)
@
text
@d19 2
@


1.1
log
@New port: www/yabb

	YaBB is a very nice free open-source forum written in Perl.
	This port is still a work in progress, but tested and usable.
	Many features (such as multi- lingual support) are still
	to be added as knobs.

	WWW: http://www.yabbforum.com/

PR:		ports/89204
Submitted by:	Andrew Pantyukhin <infofarmer@@gmail.com>
@
text
@d10 1
d22 12
a33 21
WWWDOCROOT?=	www/data
WWWCGIROOT?=	www/cgi-bin
YABBFILES?=	${WWWDOCROOT}/yabbfiles
YABBGUIDE?=	${WWWDOCROOT}/yabb-guide
YABBCGI?=	${WWWCGIROOT}/yabb2

.if !defined(WITHOUT_YABB_GUIDE)
PLIST_SUB+=	NOYABBGUIDE=""
.else
PLIST_SUB+=	NOYABBGUIDE="@@comment "
.endif

PLIST_SUB+=	YABBFILES=${YABBFILES}
PLIST_SUB+=	YABBCGI=${YABBCGI}
PLIST_SUB+=	YABBGUIDE=${YABBGUIDE}
PLIST_SUB+=	DOCSDIR=${DOCSDIR}
PLIST_SUB+=	INSTALL=${INSTALL}

YFILES=		${PREFIX}/${YABBFILES}
YGUIDE=		${PREFIX}/${YABBGUIDE}
YCGI=		${PREFIX}/${YABBCGI}
a34 1
PORTDOCS=	VERSION.txt README.txt
d36 1
d38 20
d60 6
a65 17
	${MKDIR} ${YFILES} ${YGUIDE} ${YCGI}
	${CP} -R ${WRKDIR}/public_html/yabbfiles/ ${YFILES}
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${YFILES}
	${CHMOD} -R a+r,o-w,ug+w ${YFILES}

	${CP} -R ${WRKDIR}/cgi-bin/yabb2/ ${YCGI}
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${YCGI}
	${CHMOD} -R a+r,ug+w ${YCGI}
	${CHMOD} 755 ${YCGI}/*pl
	${CHMOD} 664 ${YCGI}/Paths.pl

.if !defined(WITHOUT_YABB_GUIDE)
	${CP} -R ${WRKDIR}/Quick-Guide/ ${YGUIDE}
	${LN} -fs ${YGUIDE}/Quick-Guide.html ${YGUIDE}/index.html
	${CHOWN} -R ${YABB_USER}:${WWWGRP} ${YGUIDE}
	${CHMOD} -R go-w,a+r ${YGUIDE}
.endif
d67 2
a68 5
.if !defined(NOPORTDOCS)
	@@${INSTALL} -d ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKDIR}/VERSION.txt ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKDIR}/README.txt ${DOCSDIR}
.endif
d70 3
a72 1
	@@${CAT} ${PKGMESSAGE}
@

