Several fixes:
- install files as the BOINC user/group, this ensures that work units can be downloaded and sent - try to remove ~boinc/projects if empty - do not specify -o and -g parameters to ${INSTALL}, this ensures the package can be built as user - only extract the hmmer binary from the hmmer distribution file, this ensures correct permissions when modifying app_info.xml as user - Bump PORTREVISION Reviewed by: bapt
This commit is contained in:
parent
3ea497e122
commit
652c8e10fe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337273
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= boinc-simap
|
||||
PORTVERSION= ${SIMAP_VERSION}.${HMMER_VERSION}
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= biology
|
||||
MASTER_SITES= http://boincsimap.org/boincsimap/download/
|
||||
DISTNAME= ${SIMAP_BINARY} ${HMMER_BINARY}
|
||||
@ -29,9 +29,13 @@ SIMAP_BINARY= simap_${SIMAP_VERSION}_${MACH}-pc-freebsd
|
||||
SIMAP_VERSION= 5.10
|
||||
HMMER_BINARY= hmmer_${HMMER_VERSION}_${MACH}-pc-freebsd
|
||||
HMMER_VERSION= 5.09
|
||||
EXTRACT_AFTER_ARGS+= --include=${HMMER_BINARY}
|
||||
|
||||
PLIST_SUB= SIMAP_BINARY=${SIMAP_BINARY} HMMER_BINARY=${HMMER_BINARY} \
|
||||
SIMAP_SITE=${SIMAP_SITE} BOINC_CLIENT_HOME=${BOINC_CLIENT_HOME}
|
||||
SIMAP_SITE=${SIMAP_SITE} \
|
||||
BOINC_CLIENT_HOME=${BOINC_CLIENT_HOME} \
|
||||
BOINC_CLIENT_USER=${BOINC_CLIENT_USER} \
|
||||
BOINC_CLIENT_GROUP=${BOINC_CLIENT_GROUP}
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
@ -64,16 +68,12 @@ do-extract:
|
||||
${DISTDIR}/${HMMER_BINARY} ${EXTRACT_AFTER_ARGS})
|
||||
|
||||
do-install:
|
||||
${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 \
|
||||
${INSTALL} -d ${STAGEDIR}${BOINC_CLIENT_HOME}/projects
|
||||
${INSTALL} -d ${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
${INSTALL_DATA} ${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} \
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/${APP} \
|
||||
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SIMAP_SITE}
|
||||
.endfor
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
@owner %%BOINC_CLIENT_USER%%
|
||||
@group %%BOINC_CLIENT_GROUP%%
|
||||
@cwd %%BOINC_CLIENT_HOME%%
|
||||
projects/%%SIMAP_SITE%%/app_info.xml
|
||||
projects/%%SIMAP_SITE%%/%%SIMAP_BINARY%%
|
||||
projects/%%SIMAP_SITE%%/%%HMMER_BINARY%%
|
||||
@dirrmtry projects/%%SIMAP_SITE%%
|
||||
@dirrmtry projects
|
||||
@exec chown -R %%BOINC_CLIENT_USER%%:%%BOINC_CLIENT_GROUP%% projects/
|
||||
|
Loading…
Reference in New Issue
Block a user