mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
o Update to snapshot 20021015
o Fix an issue with the startup scripts
This commit is contained in:
parent
dbc37b475e
commit
ee31677712
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68357
@ -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>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (distribfold-current-FreeBSD.tar.gz) = cd04da97523b2246c551198e564da3b1
|
||||
MD5 (distribfold-current-FreeBSD.tar.gz) = f68e1d77bb7e6bd3c218128b1f8b7f45
|
||||
|
Loading…
Reference in New Issue
Block a user