Makefile 1.16 KB
Newer Older
1
2
3
# $FreeBSD$

PORTNAME=	jenkins
lwhsu's avatar
lwhsu committed
4
PORTVERSION=	2.286
5
6
7
8
9
10
11
12
13
14
CATEGORIES=	devel java
MASTER_SITES=	http://mirrors.jenkins-ci.org/war/${PORTVERSION}/
DISTNAME=	jenkins
EXTRACT_SUFX=	.war
DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}
EXTRACT_ONLY=

MAINTAINER=	lwhsu@FreeBSD.org
COMMENT=	Open-source continuous integration server

lwhsu's avatar
lwhsu committed
15
16
LICENSE=	MIT

lwhsu's avatar
lwhsu committed
17
18
USES=		cpe

lwhsu's avatar
lwhsu committed
19
CONFLICTS=	jenkins-lts-[0-9]*
20
USE_JAVA=	yes
lwhsu's avatar
lwhsu committed
21
JAVA_VERSION=	1.8+
22

lwhsu's avatar
lwhsu committed
23
NO_ARCH=	yes
24
25
26
27
NO_BUILD=	yes

USE_RC_SUBR=	jenkins

rea's avatar
rea committed
28
29
CPE_VENDOR=	cloudbees

30
31
32
33
34
35
36
37
38
39
40
41
JENKINS_HOME?=	${PREFIX}/jenkins
JENKINS_USER?=	jenkins
JENKINS_GROUP?=	jenkins
JENKINS_LOG_FILE?=	/var/log/jenkins.log

.if ${JENKINS_USER} == "jenkins"
USERS=	jenkins
.endif
.if ${JENKINS_GROUP} == "jenkins"
GROUPS=	jenkins
.endif

lwhsu's avatar
lwhsu committed
42
43
44
45
46
47
48
SUB_LIST+=	JENKINS_HOME=${JENKINS_HOME} \
		JENKINS_USER=${JENKINS_USER} \
		JENKINS_GROUP=${JENKINS_GROUP} \
		JAVA_HOME=${JAVA_HOME} \
		JENKINS_LOG_FILE=${JENKINS_LOG_FILE}
PLIST_SUB+=	JENKINS_USER=${JENKINS_USER} \
		JENKINS_GROUP=${JENKINS_GROUP}
49
50
51
52

.include <bsd.port.pre.mk>

do-install:
53
	${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${JENKINS_HOME}
lwhsu's avatar
lwhsu committed
54
55
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
		${STAGEDIR}${DATADIR}
56
57

.include <bsd.port.post.mk>