aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/frost
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-12-31 11:14:19 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-12-31 11:14:19 +0000
commitd4530ab3b645105655cf11ef0bc87fe8a6540bc3 (patch)
tree5c40e6e43e7dca1884fa2a52ff7fe660ec79e2a6 /net-p2p/frost
parent658ee6aadc15bf3906d42b7719f82567ae9c47a9 (diff)
downloadports-d4530ab3b645105655cf11ef0bc87fe8a6540bc3.tar.gz
ports-d4530ab3b645105655cf11ef0bc87fe8a6540bc3.zip
o Update to <bsd.java.mk> standard 2.0
o Bump PORTREVISION due to jar location changes Prompted by: hq
Notes
Notes: svn path=/head/; revision=125591
Diffstat (limited to 'net-p2p/frost')
-rw-r--r--net-p2p/frost/Makefile37
-rw-r--r--net-p2p/frost/files/wrapper.sh13
-rw-r--r--net-p2p/frost/pkg-plist24
3 files changed, 31 insertions, 43 deletions
diff --git a/net-p2p/frost/Makefile b/net-p2p/frost/Makefile
index 310b4bc03dcc..60602346b437 100644
--- a/net-p2p/frost/Makefile
+++ b/net-p2p/frost/Makefile
@@ -7,6 +7,7 @@
PORTNAME= frost
PORTVERSION= 1.2.0.20040225
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= net java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -16,19 +17,20 @@ DISTNAME= ${PORTNAME}-25-Feb-2004
MAINTAINER= lioux@FreeBSD.org
COMMENT= File-sharing tool for FreeNet with Usenet like forum support
-USE_JAVA= 1.4+
+USE_JAVA= yes
+JAVA_VERSION= 1.4+
USE_ZIP= yes
NO_BUILD= yes
-NO_BUILD_DEPENDS_JAVA= yes
#WRKSRC= ${WRKDIR}/${PORTNAME}
NO_WRKSUBDIR= yes
PLIST_SUB= JAR_DIR=${JAR_DIR}
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
VERSION_DATE= 090603
JAVAVM= ${LOCALBASE}/bin/java
-SHARE_DIR= share/${PORTNAME}
-JAR_DIR= share/java/jar/${PORTNAME}
+JAR_DIR= ${JAVAJARDIR:S,^${PREFIX}/,,}/${PORTNAME}
JAR_FILE= frost.jar
JAR_FILES= frost.jar lib/fecImpl.jar \
lib/BCastle.jar \
@@ -41,17 +43,32 @@ JAR_FILES= frost.jar lib/fecImpl.jar \
DOC_FILES= doc/Frost.tex doc/authors.txt doc/gpl.txt \
doc/SkinLFLicense.txt \
help/faq.txt help/history.txt
+PORTDOCS= ${DOC_FILES:C,^.*/,,}
-SHARE_FILES= config/boards.xml.default \
+DATA_FILES= config/boards.xml.default \
themes/themepack.zip
+PLIST_FILES= bin/${PORTNAME}
+
+.for jar in ${JAR_FILES:C,^.*/,,}
+PLIST_FILES+= %%JAR_DIR%%/${jar}
+.endfor
+
+.for file in ${DATA_FILES:C,^.*/,,}
+PLIST_FILES+= %%DATADIR%%/${file}
+.endfor
+
+PLIST_DIR+= \
+ %%JAR_DIR%% \
+ %%DATADIR%%
+
post-patch:
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
- s|%%JAVA_VERSION%%|${USE_JAVA}|; \
+ s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
s|%%JAVAVM%%|${JAVAVM}|; \
s|%%JAR_DIR%%|${JAR_DIR}|; \
s|%%JAR_FILE%%|${JAR_FILE}|; \
- s|%%SHARE_DIR%%|${SHARE_DIR}|" \
+ s|%%DATADIR%%|${DATADIR:S,^${PREFIX}/,,}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
do-install:
@@ -68,9 +85,9 @@ do-install:
@${INSTALL_DATA} ${WRKDIR}/${jar} ${PREFIX}/${JAR_DIR}
.endfor
# default boards
- @${MKDIR} ${PREFIX}/${SHARE_DIR}
-.for file in ${SHARE_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${SHARE_DIR}
+ @${MKDIR} ${DATADIR}
+.for file in ${DATA_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
.endfor
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
diff --git a/net-p2p/frost/files/wrapper.sh b/net-p2p/frost/files/wrapper.sh
index b65c91b447e6..f6e7bd2044af 100644
--- a/net-p2p/frost/files/wrapper.sh
+++ b/net-p2p/frost/files/wrapper.sh
@@ -7,7 +7,7 @@ JAVA_VERSION="%%JAVA_VERSION%%"
JAVAVM="%%JAVAVM%%"
JAR_DIR="%%JAR_DIR%%"
JAR_FILE="%%JAR_FILE%%"
-SHARE_DIR="%%SHARE_DIR%%"
+DATADIR="%%DATADIR%%"
HOME_DIR=${HOME}/.frost
CLASSPATH="${PREFIX}/${JAR_DIR}/BCastle.jar:${PREFIX}/${JAR_DIR}/fecImpl.jar:${PREFIX}/${JAR_DIR}/frost.jar:${PREFIX}/${JAR_DIR}/genChkImpl.jar:${PREFIX}/${JAR_DIR}/jocache.jar:${PREFIX}/${JAR_DIR}/mailapi.jar:${PREFIX}/${JAR_DIR}/skinlf.jar:${PREFIX}/${JAR_DIR}/skinlfFix.jar:${PREFIX}/${JAR_DIR}/smtp.jar:${PREFIX}/${JAR_DIR}/xercesImpl.jar:${PREFIX}/${JAR_DIR}/xml-apis.jar:$CLASSPATH"
@@ -16,20 +16,15 @@ then
mkdir -p ${HOME_DIR}/config
fi
-if [ ! -e ${HOME_DIR}/config/boards.xml.default ]
-then
- cp ${PREFIX}/${SHARE_DIR}/boards.xml.default ${HOME_DIR}/config/
-fi
+ln -sf ${PREFIX}/${DATADIR}/boards.xml.default \
+ ${HOME_DIR}/config/boards.xml.default
if [ ! -d ${HOME_DIR}/themes ]
then
mkdir -p ${HOME_DIR}/themes
fi
-if [ ! -e ${HOME_DIR}/themes/themepack.zip ]
-then
- cp ${PREFIX}/${SHARE_DIR}/themepack.zip ${HOME_DIR}/themes/
-fi
+ln -sf ${PREFIX}/${DATADIR}/themepack.zip ${HOME_DIR}/themes/themepack.zip
cd ${HOME_DIR} &&
exec ${JAVAVM} -cp $CLASSPATH frost.frost "${@}"
diff --git a/net-p2p/frost/pkg-plist b/net-p2p/frost/pkg-plist
deleted file mode 100644
index 13eac6753203..000000000000
--- a/net-p2p/frost/pkg-plist
+++ /dev/null
@@ -1,24 +0,0 @@
-bin/frost
-%%JAR_DIR%%/BCastle.jar
-%%JAR_DIR%%/fecImpl.jar
-%%JAR_DIR%%/frost.jar
-%%JAR_DIR%%/genChkImpl.jar
-%%JAR_DIR%%/jocache.jar
-%%JAR_DIR%%/mailapi.jar
-%%JAR_DIR%%/skinlf.jar
-%%JAR_DIR%%/skinlfFix.jar
-%%JAR_DIR%%/smtp.jar
-%%JAR_DIR%%/xercesImpl.jar
-%%JAR_DIR%%/xml-apis.jar
-%%DATADIR%%/boards.xml.default
-%%DATADIR%%/themepack.zip
-%%PORTDOCS%%%%DOCSDIR%%/Frost.tex
-%%PORTDOCS%%%%DOCSDIR%%/SkinLFLicense.txt
-%%PORTDOCS%%%%DOCSDIR%%/authors.txt
-%%PORTDOCS%%%%DOCSDIR%%/faq.txt
-%%PORTDOCS%%%%DOCSDIR%%/gpl.txt
-%%PORTDOCS%%%%DOCSDIR%%/history.txt
-@dirrm %%JAR_DIR%%
-@dirrm %%DATADIR%%
-@unexec rmdir %D/share/java/jar 2>/dev/null || true
-%%PORTDOCS%%@dirrm %%DOCSDIR%%