diff options
author | lioux <lioux@FreeBSD.org> | 2002-10-20 02:19:50 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-10-20 02:19:50 +0800 |
commit | 4e4c9e8032b5c5953985869f8de1649e87c4f8c3 (patch) | |
tree | 98f996c695f9eb18be9abbec7dbae3945da65d30 /biology | |
parent | 6a7c8eb509ba715587827ec646a3c40db1046d98 (diff) | |
download | freebsd-ports-gnome-4e4c9e8032b5c5953985869f8de1649e87c4f8c3.tar.gz freebsd-ports-gnome-4e4c9e8032b5c5953985869f8de1649e87c4f8c3.tar.zst freebsd-ports-gnome-4e4c9e8032b5c5953985869f8de1649e87c4f8c3.zip |
o Update to snapshot 20021015
o Fix an issue with the startup scripts
Diffstat (limited to 'biology')
-rw-r--r-- | biology/distribfold/Makefile | 19 | ||||
-rw-r--r-- | biology/distribfold/distinfo | 2 |
2 files changed, 17 insertions, 4 deletions
diff --git a/biology/distribfold/Makefile b/biology/distribfold/Makefile index a8b93ba7e881..bc1b051ff021 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 <bsd.port.pre.mk> @@ -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 <bsd.port.post.mk> diff --git a/biology/distribfold/distinfo b/biology/distribfold/distinfo index caca45379ff2..f34731753edd 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 |