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

(-)b/net-mgmt/unifi5/Makefile (-1 / +1 lines)
Lines 1-81 Link Here
1
# Created by: Alban MAIRE <a.maire@s2mi.fr>
1
# Created by: Alban MAIRE <a.maire@s2mi.fr>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	unifi5
4
PORTNAME=	unifi5
5
PORTVERSION=	5.13.32
5
PORTVERSION=	5.14.22
6
PORTREVISION=	0
6
PORTREVISION=	0
7
CATEGORIES=	net-mgmt java
7
CATEGORIES=	net-mgmt java
8
MASTER_SITES=	http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \
8
MASTER_SITES=	http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \
9
		https://repo1.maven.org/maven2/%SUBDIR%/:jax
9
		https://repo1.maven.org/maven2/%SUBDIR%/:jax
10
MASTER_SITE_SUBDIR=	${PORTVERSION}/:unifi \
10
MASTER_SITE_SUBDIR=	${PORTVERSION}/:unifi \
11
			javax/activation/${JAX_DISTNAME}/${JAX_VERSION}/:jax
11
			javax/activation/${JAX_DISTNAME}/${JAX_VERSION}/:jax
12
DISTFILES=	unifi_sysvinit_all.deb:unifi \
12
DISTFILES=	unifi_sysvinit_all.deb:unifi \
13
		${JAX_DISTNAME}-${JAX_VERSION}.jar:jax
13
		${JAX_DISTNAME}-${JAX_VERSION}.jar:jax
14
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
14
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
15
EXTRACT_ONLY=	unifi_sysvinit_all.deb
15
EXTRACT_ONLY=	unifi_sysvinit_all.deb
16
16
17
MAINTAINER=	feld@FreeBSD.org
17
MAINTAINER=	feld@FreeBSD.org
18
COMMENT=	UniFi Controller v5
18
COMMENT=	UniFi Controller v5
19
19
20
RUN_DEPENDS=	mongodb36>0:databases/mongodb36 \
20
RUN_DEPENDS=	mongodb36>0:databases/mongodb36 \
21
		snappyjava>0:archivers/snappy-java
21
		snappyjava>0:archivers/snappy-java
22
22
23
USES=		cpe
23
USES=		cpe
24
24
25
SUB_LIST+=	USERS=${USERS} GROUPS=${GROUPS} JAVASHAREDIR=${JAVASHAREDIR} \
25
SUB_LIST+=	USERS=${USERS} GROUPS=${GROUPS} JAVASHAREDIR=${JAVASHAREDIR} \
26
		JAVA=${JAVA} JAVA_HOME=${JAVA_HOME}
26
		JAVA=${JAVA} JAVA_HOME=${JAVA_HOME}
27
27
28
EXTRACT_CMD=	/usr/bin/ar
28
EXTRACT_CMD=	/usr/bin/ar
29
EXTRACT_BEFORE_ARGS=	-p
29
EXTRACT_BEFORE_ARGS=	-p
30
EXTRACT_AFTER_ARGS=	data.tar.xz | ${TAR} -xf -
30
EXTRACT_AFTER_ARGS=	data.tar.xz | ${TAR} -xf -
31
31
32
CPE_VENDOR=	ubnt
32
CPE_VENDOR=	ubnt
33
CPE_PRODUCT=	unifi_controller
33
CPE_PRODUCT=	unifi_controller
34
USE_JAVA=	yes
34
USE_JAVA=	yes
35
JAVA_VERSION=	1.8+
35
JAVA_VERSION=	1.8+
36
JAVA_OS=	native
36
JAVA_OS=	native
37
JAVA_VENDOR=	openjdk bsdjava
37
JAVA_VENDOR=	openjdk bsdjava
38
JAVA_RUN=	yes
38
JAVA_RUN=	yes
39
39
40
NO_BUILD=	yes
40
NO_BUILD=	yes
41
NO_ARCH=	yes
41
NO_ARCH=	yes
42
42
43
USE_RC_SUBR=	unifi
43
USE_RC_SUBR=	unifi
44
44
45
USERS=		unifi
45
USERS=		unifi
46
GROUPS=		unifi
46
GROUPS=		unifi
47
47
48
JAX_DISTNAME=	javax.activation-api
48
JAX_DISTNAME=	javax.activation-api
49
JAX_VERSION=	1.2.0
49
JAX_VERSION=	1.2.0
50
50
51
NO_WRKSUBDIR=	yes
51
NO_WRKSUBDIR=	yes
52
52
53
CONFLICTS=	unifi-devel-*
53
CONFLICTS=	unifi-devel-*
54
54
55
DIR_LIST=	conf data logs run work
55
DIR_LIST=	conf data logs run work
56
56
57
post-extract:
57
post-extract:
58
	${CP} ${DISTDIR}/${DIST_SUBDIR}/${JAX_DISTNAME}-${JAX_VERSION}.jar \
58
	${CP} ${DISTDIR}/${DIST_SUBDIR}/${JAX_DISTNAME}-${JAX_VERSION}.jar \
59
		${WRKSRC}/usr/lib/unifi/lib/
59
		${WRKSRC}/usr/lib/unifi/lib/
60
60
61
post-patch:
61
post-patch:
62
	(cd ${WRKSRC}/usr/lib/unifi/lib && ${LN} -f -s ${JAVAJARDIR}/snappy-java.jar snappy-java-*.jar)
62
	(cd ${WRKSRC}/usr/lib/unifi/lib && ${LN} -f -s ${JAVAJARDIR}/snappy-java.jar snappy-java-*.jar)
63
	${RM} -r ${WRKSRC}/usr/lib/unifi/lib/native
63
	${RM} -r ${WRKSRC}/usr/lib/unifi/lib/native
64
64
65
do-install:
65
do-install:
66
	${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/unifi
66
	${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/unifi
67
	(cd ${WRKSRC}/usr/lib/unifi && ${COPYTREE_SHARE} \* ${STAGEDIR}${JAVASHAREDIR}/unifi/)
67
	(cd ${WRKSRC}/usr/lib/unifi && ${COPYTREE_SHARE} \* ${STAGEDIR}${JAVASHAREDIR}/unifi/)
68
	${LN} -sf ${PREFIX}/bin/mongod ${STAGEDIR}${JAVASHAREDIR}/unifi/bin/mongod
68
	${LN} -sf ${PREFIX}/bin/mongod ${STAGEDIR}${JAVASHAREDIR}/unifi/bin/mongod
69
# Create directories that will be writable by unifi
69
# Create directories that will be writable by unifi
70
.for i in data logs run work
70
.for i in data logs run work
71
	${MKDIR} ${STAGEDIR}/${JAVASHAREDIR}/unifi/${i}
71
	${MKDIR} ${STAGEDIR}/${JAVASHAREDIR}/unifi/${i}
72
.endfor
72
.endfor
73
73
74
post-install:
74
post-install:
75
	@${FIND} -s ${STAGEDIR}${JAVASHAREDIR}/unifi -not -type d | ${SORT} | \
75
	@${FIND} -s ${STAGEDIR}${JAVASHAREDIR}/unifi -not -type d | ${SORT} | \
76
		${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
76
		${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
77
.for dir in ${DIR_LIST}
77
.for dir in ${DIR_LIST}
78
	@${ECHO} "@dir(unifi,wheel,) ${JAVASHAREDIR}/unifi/${dir}" >> ${TMPPLIST}
78
	@${ECHO} "@dir(unifi,wheel,) ${JAVASHAREDIR}/unifi/${dir}" >> ${TMPPLIST}
79
.endfor
79
.endfor
80
80
81
.include <bsd.port.mk>
81
.include <bsd.port.mk>
(-)b/net-mgmt/unifi5/distinfo (-5 / +5 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1595459541
1
TIMESTAMP = 1597942196
2
SHA256 (unifi5-5.13.32/unifi_sysvinit_all.deb) = 281e5332db66a830f06c6c52ac735c3e82ac517ed6d5fabc2cf4120bc7f93464
2
SHA256 (unifi5-5.14.22/unifi_sysvinit_all.deb) = d974f1e7b12cdbd898d76c6b99d634b53e3683c825b5210ff02fc233e503b184
3
SIZE (unifi5-5.13.32/unifi_sysvinit_all.deb) = 127905892
3
SIZE (unifi5-5.14.22/unifi_sysvinit_all.deb) = 218488692
4
SHA256 (unifi5-5.13.32/javax.activation-api-1.2.0.jar) = 43fdef0b5b6ceb31b0424b208b930c74ab58fac2ceeb7b3f6fd3aeb8b5ca4393
4
SHA256 (unifi5-5.14.22/javax.activation-api-1.2.0.jar) = 43fdef0b5b6ceb31b0424b208b930c74ab58fac2ceeb7b3f6fd3aeb8b5ca4393
5
SIZE (unifi5-5.13.32/javax.activation-api-1.2.0.jar) = 56674
5
SIZE (unifi5-5.14.22/javax.activation-api-1.2.0.jar) = 56674

Return to bug 248792