summaryrefslogtreecommitdiffstats
path: root/sysutils/jdiskreport
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/jdiskreport')
-rw-r--r--sysutils/jdiskreport/Makefile6
-rw-r--r--sysutils/jdiskreport/distinfo2
-rw-r--r--sysutils/jdiskreport/files/jdiskreport.sh3
-rw-r--r--sysutils/jdiskreport/pkg-plist2
4 files changed, 8 insertions, 5 deletions
diff --git a/sysutils/jdiskreport/Makefile b/sysutils/jdiskreport/Makefile
index b0d6a2a1..6c3eaaf 100644
--- a/sysutils/jdiskreport/Makefile
+++ b/sysutils/jdiskreport/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= jdiskreport
-PORTVERSION= 1.1
+PORTVERSION= 1.1.2
CATEGORIES= sysutils java
MASTER_SITES= http://www.jGoodies.com/download/${PORTNAME}/
DISTNAME= ${PORTNAME}-${PORTVERSION:S,.,_,g}
@@ -20,18 +20,20 @@ USE_ZIP= YES
USE_JAVA= 1.3
PLIST_SUB= JDISKDIR=${JDISKDIR:S,${PREFIX}/,,g}
+PLIST_SUB+= PORTVERSION=${PORTVERSION}
JAVAVM?= ${LOCALBASE}/bin/javavm
JDISKDIR?= ${PREFIX}/lib/jdiskreport
do-build:
@cd ${WRKDIR}
@${SED} -e 's,%%JDISKDIR%%,${JDISKDIR},g' \
+ -e 's,%%PORTVERSION%%,${PORTVERSION},g' \
-e 's,%%JAVAVM%%,${JAVAVM},g' ${FILESDIR}/jdiskreport.sh \
> ${WRKDIR}/jdiskreport
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/jdiskreport ${PREFIX}/bin
-@${MKDIR} ${JDISKDIR}
- @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/jdiskreport.jar ${JDISKDIR}
+ @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/jdiskreport-${PORTVERSION}.jar ${JDISKDIR}
.include <bsd.port.mk>
diff --git a/sysutils/jdiskreport/distinfo b/sysutils/jdiskreport/distinfo
index 5d21b22..bc2ac3c 100644
--- a/sysutils/jdiskreport/distinfo
+++ b/sysutils/jdiskreport/distinfo
@@ -1 +1 @@
-MD5 (jdiskreport-1_1.zip) = f92e8e5f5a0d541d7e661db9ace01b71
+MD5 (jdiskreport-1_1_2.zip) = cee52995e677bdbc9b5232d2f5c1ba25
diff --git a/sysutils/jdiskreport/files/jdiskreport.sh b/sysutils/jdiskreport/files/jdiskreport.sh
index c44c60a..b3811c8 100644
--- a/sysutils/jdiskreport/files/jdiskreport.sh
+++ b/sysutils/jdiskreport/files/jdiskreport.sh
@@ -2,5 +2,6 @@
# $FreeBSD$
JDISKDIR="%%JDISKDIR%%"
JAVAVM="%%JAVAVM%%"
+PORTVERSION="%%PORTVERSION%%"
-$JAVAVM -jar "$JDISKDIR/jdiskreport.jar"
+$JAVAVM -jar "$JDISKDIR/jdiskreport-$PORTVERSION.jar"
diff --git a/sysutils/jdiskreport/pkg-plist b/sysutils/jdiskreport/pkg-plist
index 4ad49d3..1ef2ad0 100644
--- a/sysutils/jdiskreport/pkg-plist
+++ b/sysutils/jdiskreport/pkg-plist
@@ -1,3 +1,3 @@
bin/jdiskreport
-%%JDISKDIR%%/jdiskreport.jar
+%%JDISKDIR%%/jdiskreport-%%PORTVERSION%%.jar
@dirrm %%JDISKDIR%%
OpenPOWER on IntegriCloud