summaryrefslogtreecommitdiff
path: root/www/yabb
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-04-07 08:27:39 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-04-07 08:27:39 +0000
commit54a5f625506ce0f5c833d7cf9b7873c0450c998d (patch)
treebc5ac3d11f64a47a2a0855ff7a56216227bfc8a4 /www/yabb
parent- Fix plist (DOCSDIR & DATADIR) (diff)
- Don't depend on freebsd-sha256 on modern versions of FreeBSD
Submitted by: kris
Notes
Notes: svn path=/head/; revision=189421
Diffstat (limited to 'www/yabb')
-rw-r--r--www/yabb/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/www/yabb/Makefile b/www/yabb/Makefile
index ec75c9d1a31c..c6c695ee2020 100644
--- a/www/yabb/Makefile
+++ b/www/yabb/Makefile
@@ -15,6 +15,11 @@ DISTNAME= YaBB_${PORTVERSION}
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= The original free open-source forum written in Perl
+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
+
NO_PACKAGE= complicated (de)installation paradigm
USE_ZIP= yes
USE_PERL5_RUN= yes
@@ -26,19 +31,18 @@ PLIST_SUB= YABBDIR=${YABBDIR}
DIR= ${PREFIX}/${YABBDIR}
WDIR= ${WRKDIR}/public_html/yabbfiles
WCGI= ${WRKDIR}/cgi-bin/yabb2
-
-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
-
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
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 600021 && ( ${OSVERSION} < 504102 || ${OSVERSION} > 599999 )
+RUN_DEPENDS+= sha256:${PORTSDIR}/sysutils/freebsd-sha256
+.endif
+
post-extract:
@${RM} -rf ${WCGI}/Convert ${WCGI}/Modules ${WCGI}/FixFile.pl
@${CHMOD} -R a=,u+rwX ${WCGI}/*
@@ -75,4 +79,4 @@ pre-clean:
#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.mk>
+.include <bsd.port.post.mk>