From 4e4c9e8032b5c5953985869f8de1649e87c4f8c3 Mon Sep 17 00:00:00 2001 From: lioux Date: Sat, 19 Oct 2002 18:19:50 +0000 Subject: o Update to snapshot 20021015 o Fix an issue with the startup scripts --- biology/distribfold/Makefile | 19 ++++++++++++++++--- biology/distribfold/distinfo | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'biology') diff --git a/biology/distribfold/Makefile b/biology/distribfold/Makefile index a8b93ba..bc1b051 100644 --- a/biology/distribfold/Makefile +++ b/biology/distribfold/Makefile @@ -6,7 +6,7 @@ # PORTNAME= distribfold -PORTVERSION= 0.1 +PORTVERSION= 0.1.${RELEASE_DATE} CATEGORIES= misc net MASTER_SITES= ftp://ftp.mshri.on.ca/pub/distribfold/download/ DISTNAME= distribfold-current-FreeBSD @@ -32,8 +32,10 @@ DNETFOLD_GROUP=dnetfold # default number of processors WITH_NCPU?= 1 +RELEASE_DATE= 20021015 + post-patch: - @${REINPLACE_CMD} -E -e 's|%%DESTINATION_DIR%%|${DESTINATION_DIR}|' \ + @${REINPLACE_CMD} -E -e 's|%%DESTINATION_DIR%%|${DESTINATION_DIR}/cpu0|' \ ${WRKSRC}/foldit pre-install: @@ -69,7 +71,7 @@ do-install: # display package message @${CAT} ${PKGMESSAGE} -post-install: cook-install-plist +post-install: cook-install-plist fix-startup-scripts .include @@ -113,4 +115,15 @@ cook-install-plist: generate-plist .endfor .endif +fix-startup-scripts: +.if ${WITH_NCPU} > 1 +# for every cpu directory + @ncpu=`${CAT} ${WRKDIR}/ncpu` ; \ + for dir in `${FILESDIR}/number_of_dirs.sh $${ncpu}` ; do \ + ${REINPLACE_CMD} -e "s|cpu0|cpu$${dir}|" \ + ${DESTINATION_DIR}/cpu$${dir}/foldit ; \ + ${RM} -f ${DESTINATION_DIR}/cpu$${dir}/foldit.bak ; \ + done +.endif + .include diff --git a/biology/distribfold/distinfo b/biology/distribfold/distinfo index caca453..f347317 100644 --- a/biology/distribfold/distinfo +++ b/biology/distribfold/distinfo @@ -1 +1 @@ -MD5 (distribfold-current-FreeBSD.tar.gz) = cd04da97523b2246c551198e564da3b1 +MD5 (distribfold-current-FreeBSD.tar.gz) = f68e1d77bb7e6bd3c218128b1f8b7f45 -- cgit v1.1