blob: fe4fb832cdef421c7de9e6b7a93e53b97e3a58a3 (
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
45
46
47
48
49
50
51
52
53
54
|
PORTNAME= ot-recorder
PORTVERSION= 0.9.1
CATEGORIES= www
MAINTAINER= dvl@FreeBSD.org
COMMENT= Store and access data published by OwnTracks apps
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= curl>0:ftp/curl \
libconfig>0:devel/libconfig \
lmdb>0:databases/lmdb \
mosquitto>0:net/mosquitto
LIB_DEPENDS= libcurl.so:ftp/curl \
libconfig.so:devel/libconfig \
liblmdb.so:databases/lmdb \
libmosquitto.so:net/mosquitto
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= owntracks
GH_PROJECT= recorder
USERS= ot-recorder
GROUPS= ot-recorder
SUB_FILES= ot-recorder
post-patch:
${CP} ${WRKSRC}/config.mk.in ${WRKSRC}/config.mk
.include <bsd.port.pre.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ocat ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/ot-recorder ${STAGEDIR}${PREFIX}/sbin
${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC}/docroot && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/)
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/ot-recorder.default ${STAGEDIR}${ETCDIR}/ot-recorder.conf.sample
${MKDIR} ${STAGEDIR}/var/log/ot-recorder
${MKDIR} ${STAGEDIR}/var/db/owntracks
${MKDIR} ${STAGEDIR}/var/db/owntracks/recorder
${MKDIR} ${STAGEDIR}/var/run/ot-recorder
${INSTALL_SCRIPT} ${WRKDIR}/ot-recorder ${STAGEDIR}$/${PREFIX}/etc/rc.d/
.include <bsd.port.post.mk>
|