diff options
author | sat <sat@FreeBSD.org> | 2007-04-07 16:27:39 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2007-04-07 16:27:39 +0800 |
commit | 8237b8c501ba9913368de61006cb7db03c23c372 (patch) | |
tree | 56ef715af53b754ef0542170b8041eb16f905ac1 /www/yabb | |
parent | 2119a90bbf611ce0b24170edaabcdb9bf778638f (diff) | |
download | freebsd-ports-gnome-8237b8c501ba9913368de61006cb7db03c23c372.tar.gz freebsd-ports-gnome-8237b8c501ba9913368de61006cb7db03c23c372.tar.zst freebsd-ports-gnome-8237b8c501ba9913368de61006cb7db03c23c372.zip |
- Don't depend on freebsd-sha256 on modern versions of FreeBSD
Submitted by: kris
Diffstat (limited to 'www/yabb')
-rw-r--r-- | www/yabb/Makefile | 20 |
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> |