View | Details | Raw Unified | Return to bug 97698
Collapse All | Expand All

(-)Makefile (-15 / +10 lines)
Lines 6-38 Link Here
6
#
6
#
7
7
8
PORTNAME=	crossip
8
PORTNAME=	crossip
9
PORTVERSION=	1.2
9
DISTVERSION=	1.2
10
CATEGORIES=	dns java
10
CATEGORIES=	dns java
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	${PORTNAME:L}
12
MASTER_SITE_SUBDIR=	${PORTNAME:L}
13
DISTNAME=	${PORTNAME:L}-${PORTVERSION:S/.p/-pre/:S/.b/-beta/}
14
13
15
MAINTAINER=	dan@algenta.com
14
MAINTAINER=	dan@algenta.com
16
COMMENT=	CrossIP is a java DNS update client for the ThatIP protocol
15
COMMENT=	Java DNS update client for the ThatIP protocol
17
16
18
USE_JAVA=	1.2+
17
USE_JAVA=	yes
18
JAVA_VERSION=	1.2+
19
USE_ZIP=	yes
19
USE_ZIP=	yes
20
20
21
NO_BUILD=	yes
21
NO_BUILD=	yes
22
NO_BUILD_DEPENDS_JAVA=	yes
23
22
24
JAVA_VM=	${LOCALBASE}/bin/javavm
23
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
25
TARGET_DIR=	${JAVASHAREDIR}/${PKGNAME}
26
24
27
post-patch:
25
SUB_FILES=	crossip.sh
28
	@${SED} -e "s|%%JAR_DIR%%|${JAVAJARDIR}|;s|%%JAVAVM%%|${JAVA_VM}|" \
29
		${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
30
26
31
do-install:
27
do-install:
32
	${MKDIR} ${JAVAJARDIR}
28
	${MKDIR} ${DATADIR}
33
	${MKDIR} ${TARGET_DIR}
29
	${CP} -R ${WRKSRC}/* ${DATADIR}
34
	${CP} -R ${WRKSRC}/* ${TARGET_DIR}
30
	${LN} -sf ${DATADIR}/lib/CrossIP.jar ${JAVAJARDIR}/CrossIP.jar
35
	${LN} -sf ${TARGET_DIR}/lib/CrossIP.jar ${JAVAJARDIR}/CrossIP.jar
31
	@${INSTALL_SCRIPT} ${WRKDIR}/crossip.sh ${PREFIX}/bin/crossip
36
	@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
37
32
38
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)pkg-plist (-26 / +27 lines)
Lines 1-27 Link Here
1
@comment $FreeBSD$
1
bin/crossip
2
bin/crossip
2
share/java/classes/CrossIP.jar
3
%%JAVAJARDIR%%/CrossIP.jar
3
share/java/crossip-1.2/LICENSE.txt
4
%%DATADIR%%/LICENSE.txt
4
share/java/crossip-1.2/README.txt
5
%%DATADIR%%/README.txt
5
share/java/crossip-1.2/bin/com/algenta/crossip/Actions.class
6
%%DATADIR%%/bin/com/algenta/crossip/Actions.class
6
share/java/crossip-1.2/bin/com/algenta/crossip/Config.class
7
%%DATADIR%%/bin/com/algenta/crossip/Config.class
7
share/java/crossip-1.2/bin/com/algenta/crossip/ConfigFileException.class
8
%%DATADIR%%/bin/com/algenta/crossip/ConfigFileException.class
8
share/java/crossip-1.2/bin/com/algenta/crossip/CrossIP.class
9
%%DATADIR%%/bin/com/algenta/crossip/CrossIP.class
9
share/java/crossip-1.2/bin/com/algenta/crossip/CrossIPConstants.class
10
%%DATADIR%%/bin/com/algenta/crossip/CrossIPConstants.class
10
share/java/crossip-1.2/bin/com/algenta/crossip/CrossIPException.class
11
%%DATADIR%%/bin/com/algenta/crossip/CrossIPException.class
11
share/java/crossip-1.2/lib/CrossIP.jar
12
%%DATADIR%%/lib/CrossIP.jar
12
share/java/crossip-1.2/src/com/algenta/crossip/Actions.java
13
%%DATADIR%%/src/com/algenta/crossip/Actions.java
13
share/java/crossip-1.2/src/com/algenta/crossip/Config.java
14
%%DATADIR%%/src/com/algenta/crossip/Config.java
14
share/java/crossip-1.2/src/com/algenta/crossip/ConfigFileException.java
15
%%DATADIR%%/src/com/algenta/crossip/ConfigFileException.java
15
share/java/crossip-1.2/src/com/algenta/crossip/CrossIP.java
16
%%DATADIR%%/src/com/algenta/crossip/CrossIP.java
16
share/java/crossip-1.2/src/com/algenta/crossip/CrossIPConstants.java
17
%%DATADIR%%/src/com/algenta/crossip/CrossIPConstants.java
17
share/java/crossip-1.2/src/com/algenta/crossip/CrossIPException.java
18
%%DATADIR%%/src/com/algenta/crossip/CrossIPException.java
18
@dirrm share/java/crossip-1.2/src/com/algenta/crossip
19
@dirrm %%DATADIR%%/src/com/algenta/crossip
19
@dirrm share/java/crossip-1.2/src/com/algenta
20
@dirrm %%DATADIR%%/src/com/algenta
20
@dirrm share/java/crossip-1.2/src/com
21
@dirrm %%DATADIR%%/src/com
21
@dirrm share/java/crossip-1.2/src
22
@dirrm %%DATADIR%%/src
22
@dirrm share/java/crossip-1.2/lib
23
@dirrm %%DATADIR%%/lib
23
@dirrm share/java/crossip-1.2/bin/com/algenta/crossip
24
@dirrm %%DATADIR%%/bin/com/algenta/crossip
24
@dirrm share/java/crossip-1.2/bin/com/algenta
25
@dirrm %%DATADIR%%/bin/com/algenta
25
@dirrm share/java/crossip-1.2/bin/com
26
@dirrm %%DATADIR%%/bin/com
26
@dirrm share/java/crossip-1.2/bin
27
@dirrm %%DATADIR%%/bin
27
@dirrm share/java/crossip-1.2
28
@dirrm %%DATADIR%%
(-)files/crossip.sh.in (+6 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
5
JAVA_VERSION="%%JAVA_VERSION%%" \
6
	exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/lib/CrossIP.jar" "${@}"
(-)files/wrapper.sh (-6 lines)
Removed Link Here
1
#!/bin/sh
2
3
JAVAVM="%%JAVAVM%%"
4
JAR_DIR="%%JAR_DIR%%"
5
6
${JAVAVM} -jar ${JAR_DIR}/CrossIP.jar "${@}"

Return to bug 97698