blob: cd9daf8dbcae3f5fbcf97e2b7180d327db6ab951 (
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
42
43
44
|
PORTNAME= conduit
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.0
PORTREVISION= 2
CATEGORIES= net-im
PKGNAMEPREFIX= matrix-
MAINTAINER= ashish@FreeBSD.org
COMMENT= Simple, fast and reliable chat server powered by Matrix
WWW= https://conduit.rs/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/libclang.so:devel/llvm${LLVM_DEFAULT}
USES= cargo gmake
USE_RC_SUBR= ${PORTNAME}
USERS= ${PORTNAME}
GROUPS= ${USERS}
SUBS= DBDIR=${DBDIR} \
USERS=${USERS} \
GROUPS=${GROUPS} \
PORTNAME=${PORTNAME}
PLIST_SUB= ${SUBS}
SUB_LIST= ${SUBS}
SUB_FILES= pkg-message pkg-install
DBDIR= /var/db/${PORTNAME}
USE_GITLAB= yes
GL_ACCOUNT= famedly
GL_TAGNAME= 0c2cfda3ae923d9e922d5edf379e4d8976a52d4e
post-patch:
@${REINPLACE_CMD} -e 's,/etc/conduit.toml,${PREFIX}/etc/conduit.toml,' \
${WRKSRC}/src/main.rs
@${REINPLACE_CMD} -e 's,/var/lib/conduit,${DBDIR},' \
${WRKSRC}/conduit-example.toml
post-install:
${INSTALL_DATA} ${WRKSRC}/conduit-example.toml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.toml.sample
@${MKDIR} ${STAGEDIR}${DBDIR}
.include <bsd.port.mk>
|