blob: 5d533064e3b0cdc1731cd9c693531177fdd08837 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Created by: Ronald Klop <ronald@echteman.nl>
# $FreeBSD$
PORTNAME= commons-daemon
PORTVERSION= 1.0.10
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE:S,$,:src,} \
${MASTER_SITE_APACHE_COMMONS_BINARIES:S,$,:bin,}
MASTER_SITE_SUBDIR= daemon/:src daemon/:bin
PKGNAMEPREFIX= jakarta-
DISTFILES= ${PORTNAME}-${PORTVERSION}-native-src${EXTRACT_SUFX}:src \
${PORTNAME}-${PORTVERSION}-bin${EXTRACT_SUFX}:bin
MAINTAINER= ale@FreeBSD.org
COMMENT= Wrapper code to start/stop a Java application as a daemon
LICENSE= AL2
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAVA_OS= native
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-java=${JAVA_HOME}
WRKSRC= ${WRKDIR}/${DISTNAME}-native-src/unix
WRKBIN= ${WRKDIR}/${DISTNAME}
PLIST_FILES= bin/jsvc %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= *
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/jsvc ${PREFIX}/bin
${INSTALL_DATA} ${WRKBIN}/${DISTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKBIN} && ${COPYTREE_SHARE} apidocs ${DOCSDIR}
.endif
.include <bsd.port.mk>
|