1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging

- s/YES/yes/

Approved by:	portmgr (blanket approval)
This commit is contained in:
Jason E. Hale 2014-06-27 10:51:53 +00:00
parent 3a144ad6ff
commit 4781060cd6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359493
2 changed files with 67 additions and 66 deletions

View File

@ -16,7 +16,7 @@ NO_PACKAGE= There is the string in properties.xml which system-depends
WRKSRC= ${WRKDIR}/DIMES
BUILD_WRKSRC= ${WRKSRC}/scripts_linux
USE_JAVA= YES
USE_JAVA= yes
JAVA_VERSION= 1.6+
#java-linux required
JAVA_OS= linux
@ -24,7 +24,6 @@ JAVA_OS= linux
JAVA_VENDOR= sun
DATADIR= ${JAVASHAREDIR}/dimes
NO_STAGE= yes
post-extract:
${REINPLACE_CMD} 's|$$CURRENT_DIR/..|${DATADIR}/|g' ${WRKSRC}/scripts_linux/agent.sh
${REINPLACE_CMD} 's|#. colors.sh|JAVA_HOME=${JAVA_HOME}|g' ${WRKSRC}/scripts_linux/agent.sh
@ -32,75 +31,75 @@ post-extract:
${REINPLACE_CMD} 's|/opt/DIMES|${DATADIR}|g' ${WRKSRC}/Classes/Base/conf/properties.xml
do-install:
@${MKDIR} ${DATADIR}
@${MKDIR} ${DATADIR}/scripts_linux
@${MKDIR} ${DATADIR}/Classes
@${MKDIR} ${DATADIR}/Classes/Base
@${MKDIR} ${DATADIR}/Classes/Base/dimes
@${MKDIR} ${DATADIR}/Classes/Base/dimes/service
@${MKDIR} ${DATADIR}/Classes/dimes
@${MKDIR} ${DATADIR}/Classes/dimes/service
@${MKDIR} -m 0777 ${DATADIR}/Classes/Base/History
@${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Incoming
@${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Incoming/Keepalive
@${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Outgoing
@${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Outgoing/log
@${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Outgoing/results
@${MKDIR} ${DATADIR}/Classes/Base/conf
@${MKDIR} ${DATADIR}/Classes/Base/bin_linux
@${MKDIR} ${DATADIR}/Classes/Base/resources
@${MKDIR} ${DATADIR}/Classes/Base
@${MKDIR} ${DATADIR}/Classes/Base
@${MKDIR} ${DATADIR}/Classes/JARs
@${MKDIR} ${DATADIR}/Licences
@${INSTALL_DATA} ${WRKSRC}/Classes/'AgentLauncher$$1.class' \
${DATADIR}/Classes/'AgentLauncher$$1.class'
@${INSTALL_DATA} ${WRKSRC}/Classes/'AgentLauncher$$2.class' \
${DATADIR}/Classes/'AgentLauncher$$2.class'
@${INSTALL_DATA} ${WRKSRC}/Classes/AgentLauncher.class \
${DATADIR}/Classes/AgentLauncher.class
@${INSTALL_DATA} ${WRKSRC}/Classes/Start.class \
${DATADIR}/Classes/Start.class
@cd ${WRKSRC}/Classes/ && \
@${MKDIR} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}/scripts_linux
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base/dimes
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base/dimes/service
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/dimes
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/dimes/service
@${MKDIR} -m 0777 ${STAGEDIR}${DATADIR}/Classes/Base/History
@${MKDIR} -m 0777 ${STAGEDIR}${DATADIR}/Classes/Base/Incoming
@${MKDIR} -m 0777 ${STAGEDIR}${DATADIR}/Classes/Base/Incoming/Keepalive
@${MKDIR} -m 0777 ${STAGEDIR}${DATADIR}/Classes/Base/Outgoing
@${MKDIR} -m 0777 ${STAGEDIR}${DATADIR}/Classes/Base/Outgoing/log
@${MKDIR} -m 0777 ${STAGEDIR}${DATADIR}/Classes/Base/Outgoing/results
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base/conf
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base/bin_linux
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base/resources
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/Base
@${MKDIR} ${STAGEDIR}${DATADIR}/Classes/JARs
@${MKDIR} ${STAGEDIR}${DATADIR}/Licences
${INSTALL_DATA} ${WRKSRC}/Classes/'AgentLauncher$$1.class' \
${STAGEDIR}${DATADIR}/Classes/'AgentLauncher$$1.class'
${INSTALL_DATA} ${WRKSRC}/Classes/'AgentLauncher$$2.class' \
${STAGEDIR}${DATADIR}/Classes/'AgentLauncher$$2.class'
${INSTALL_DATA} ${WRKSRC}/Classes/AgentLauncher.class \
${STAGEDIR}${DATADIR}/Classes/AgentLauncher.class
${INSTALL_DATA} ${WRKSRC}/Classes/Start.class \
${STAGEDIR}${DATADIR}/Classes/Start.class
cd ${WRKSRC}/Classes/ && \
${FIND} . -type f -and \( -name "*.jpg" -or -name "*.gif" \
-or -name "*.dll" -or -name "*.ico" \
-or -name "*.zip" -or -name "*.GIF" -or -name "*.txt" \
-or -name "*.properties" \) \
-exec ${INSTALL_DATA} {} ${DATADIR}/Classes/{} \;
@cd ${WRKSRC}/Classes/Base/bin_linux && \
${FIND} . -type f -exec ${INSTALL_DATA} -m 055 {} ${DATADIR}/Classes/Base/bin_linux/{} \;
@cd ${WRKSRC}/Classes/Base/resources/ && \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/Classes/{} \;
cd ${WRKSRC}/Classes/Base/bin_linux && \
${FIND} . -type f -exec ${INSTALL_DATA} -m 0555 {} ${STAGEDIR}${DATADIR}/Classes/Base/bin_linux/{} \;
cd ${WRKSRC}/Classes/Base/resources/ && \
${FIND} . -type f -and \( -name "*.jar" -or -name "*.txt" \
-or -name "*.keystore" \) \
-exec ${INSTALL_DATA} {} ${DATADIR}/Classes/Base/resources/{} \;
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.bin \
${DATADIR}/Classes/Base/resources/layouts.bin
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.meta \
${DATADIR}/Classes/Base/resources/layouts.meta
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/default.in \
${DATADIR}/Classes/Base/resources/default.in
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/dimespacket.sys \
${DATADIR}/Classes/Base/resources/dimespacket.sys
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/libcallmtr.so \
${DATADIR}/Classes/Base/resources/libcallmtr.so
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/dimes/service/Stop.class \
${DATADIR}/Classes/dimes/service/Stop.class
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/conf/properties.xml \
${DATADIR}/Classes/Base/conf/properties.xml
@${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/conf/wrapper.conf \
${DATADIR}/Classes/Base/conf/wrapper.conf
@${INSTALL_DATA} ${WRKSRC}/Classes/JARs/10.jar \
${DATADIR}/Classes/JARs/10.jar
@${INSTALL_DATA} ${WRKSRC}/Classes/JARs/dimesAgent.keystore \
${DATADIR}/Classes/JARs/dimesAgent.keystore
@cd ${WRKSRC}/Licences/ && ${FIND} . -type f -name "*.txt" \
-exec ${INSTALL_MAN} {} ${DATADIR}/Licences/{} \;
@${INSTALL_SCRIPT} -m 4755 ${WRKSRC}/scripts_linux/agent.sh ${DATADIR}/scripts_linux/agent.sh
@${INSTALL_SCRIPT} ${WRKSRC}/scripts_linux/colors.sh ${DATADIR}/scripts_linux/colors.sh
@${INSTALL_DATA} ${WRKSRC}/scripts_linux/Makefile ${DATADIR}/scripts_linux/Makefile
@${INSTALL_SCRIPT} ${WRKSRC}/linuxAgent.sh ${DATADIR}/linuxAgent.sh
@${INSTALL_SCRIPT} ${WRKSRC}/linuxService.sh ${DATADIR}/linuxService.sh
@${INSTALL_SCRIPT} ${WRKSRC}/linuxServiceStatus.sh ${DATADIR}/linuxServiceStatus.sh
@${INSTALL_SCRIPT} ${WRKSRC}/linuxStopService.sh ${DATADIR}/linuxStopService.sh
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/Classes/Base/resources/{} \;
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.bin \
${STAGEDIR}${DATADIR}/Classes/Base/resources/layouts.bin
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.meta \
${STAGEDIR}${DATADIR}/Classes/Base/resources/layouts.meta
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/default.in \
${STAGEDIR}${DATADIR}/Classes/Base/resources/default.in
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/dimespacket.sys \
${STAGEDIR}${DATADIR}/Classes/Base/resources/dimespacket.sys
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/libcallmtr.so \
${STAGEDIR}${DATADIR}/Classes/Base/resources/libcallmtr.so
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/dimes/service/Stop.class \
${STAGEDIR}${DATADIR}/Classes/dimes/service/Stop.class
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/conf/properties.xml \
${STAGEDIR}${DATADIR}/Classes/Base/conf/properties.xml
${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/conf/wrapper.conf \
${STAGEDIR}${DATADIR}/Classes/Base/conf/wrapper.conf
${INSTALL_DATA} ${WRKSRC}/Classes/JARs/10.jar \
${STAGEDIR}${DATADIR}/Classes/JARs/10.jar
${INSTALL_DATA} ${WRKSRC}/Classes/JARs/dimesAgent.keystore \
${STAGEDIR}${DATADIR}/Classes/JARs/dimesAgent.keystore
cd ${WRKSRC}/Licences/ && ${FIND} . -type f -name "*.txt" \
-exec ${INSTALL_MAN} {} ${STAGEDIR}${DATADIR}/Licences/{} \;
${INSTALL_SCRIPT} ${WRKSRC}/scripts_linux/agent.sh ${STAGEDIR}${DATADIR}/scripts_linux/agent.sh
${INSTALL_SCRIPT} ${WRKSRC}/scripts_linux/colors.sh ${STAGEDIR}${DATADIR}/scripts_linux/colors.sh
${INSTALL_DATA} ${WRKSRC}/scripts_linux/Makefile ${STAGEDIR}${DATADIR}/scripts_linux/Makefile
${INSTALL_SCRIPT} ${WRKSRC}/linuxAgent.sh ${STAGEDIR}${DATADIR}/linuxAgent.sh
${INSTALL_SCRIPT} ${WRKSRC}/linuxService.sh ${STAGEDIR}${DATADIR}/linuxService.sh
${INSTALL_SCRIPT} ${WRKSRC}/linuxServiceStatus.sh ${STAGEDIR}${DATADIR}/linuxServiceStatus.sh
${INSTALL_SCRIPT} ${WRKSRC}/linuxStopService.sh ${STAGEDIR}${DATADIR}/linuxStopService.sh
.include <bsd.port.mk>

View File

@ -79,7 +79,9 @@
%%DATADIR%%/Licences/gpl.txt
%%DATADIR%%/Licences/lgpl.txt
%%DATADIR%%/scripts_linux/Makefile
@mode 4755
%%DATADIR%%/scripts_linux/agent.sh
@mode
%%DATADIR%%/scripts_linux/colors.sh
%%DATADIR%%/linuxAgent.sh
%%DATADIR%%/linuxService.sh