- Add stagedir support
- Rewrap lines
This commit is contained in:
parent
c2d8186049
commit
daefaaa864
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328069
@ -30,14 +30,13 @@ SIMAP_VERSION= 5.10
|
||||
HMMER_BINARY= hmmer_${HMMER_VERSION}_${MACH}-pc-freebsd
|
||||
HMMER_VERSION= 5.09
|
||||
|
||||
PLIST_SUB= SIMAP_BINARY=${SIMAP_BINARY} HMMER_BINARY=${HMMER_BINARY} SIMAP_SITE=${SIMAP_SITE} \
|
||||
BOINC_CLIENT_HOME=${BOINC_CLIENT_HOME}
|
||||
PLIST_SUB= SIMAP_BINARY=${SIMAP_BINARY} HMMER_BINARY=${HMMER_BINARY} \
|
||||
SIMAP_SITE=${SIMAP_SITE} BOINC_CLIENT_HOME=${BOINC_CLIENT_HOME}
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
OPTIONS_DEFINE= SSE
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MSSE}
|
||||
@ -53,22 +52,28 @@ AMD64= "@comment "
|
||||
.endif
|
||||
|
||||
SUB_FILES= app_info.xml pkg-message
|
||||
SUB_LIST= SIMAP_BINARY=${SIMAP_BINARY} HMMER_BINARY=${HMMER_BINARY} SIMAP_APPVERSION=${SIMAP_VERSION:S/.//} HMMER_APPVERSION=${HMMER_VERSION:S/.//} AMD64=${AMD64}
|
||||
SUB_LIST= SIMAP_BINARY=${SIMAP_BINARY} HMMER_BINARY=${HMMER_BINARY} \
|
||||
SIMAP_APPVERSION=${SIMAP_VERSION:S/.//} \
|
||||
HMMER_APPVERSION=${HMMER_VERSION:S/.//} AMD64=${AMD64}
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@${CP} ${DISTDIR}/${SIMAP_BINARY} ${WRKDIR}
|
||||
@(cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${HMMER_BINARY} ${EXTRACT_AFTER_ARGS})
|
||||
@(cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
||||
${DISTDIR}/${HMMER_BINARY} ${EXTRACT_AFTER_ARGS})
|
||||
|
||||
do-install:
|
||||
${INSTALL} -d -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} ${BOINC_CLIENT_HOME}/projects
|
||||
${INSTALL} -d -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} ${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
${INSTALL_DATA} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} ${WRKDIR}/app_info.xml ${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
${INSTALL} -d -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
|
||||
${STAGEDIR}${BOINC_CLIENT_HOME}/projects
|
||||
${INSTALL} -d -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
|
||||
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
${INSTALL_DATA} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
|
||||
${WRKDIR}/app_info.xml \
|
||||
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
.for APP in ${DISTNAME}
|
||||
${INSTALL_PROGRAM} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} ${WRKDIR}/${APP} ${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
${INSTALL_PROGRAM} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
|
||||
${WRKDIR}/${APP} \
|
||||
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user