aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/taskd/Makefile
blob: 26d91934f4b900ca0c3b411f28fb1e1b3dd08ba9 (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
55
56
57
# Created by: gahr
# $FreeBSD$

PORTNAME=   taskd
PORTVERSION=    1.1.0
PORTREVISION=   7
CATEGORIES= deskutils
MASTER_SITES=   http://taskwarrior.org/download/

MAINTAINER= skreuzer@FreeBSD.org
COMMENT=    Multi-user server for taskwarrior

LICENSE=    MIT

LIB_DEPENDS=    libgnutls.so:security/gnutls
RUN_DEPENDS=    bash:shells/bash

USES=       cmake:outsource compiler:c++11-lib shebangfix
USE_RC_SUBR=    taskd

USERS=      taskd
GROUPS=     taskd

TASKD_DBDIR?=   /var/db/${PORTNAME}

PLIST_SUB+= TASKD_DBDIR="${TASKD_DBDIR}" \
        TASKD_USER="${USERS}" \
        TASKD_GROUP="${GROUPS}"

SUB_LIST+=  TASKD_DBDIR="${TASKD_DBDIR}"

SHEBANG_FILES=  demo/client/case* \
        demo/client/malformed* \
        demo/client/run \
        demo/client/setup \
        demo/server/run \
        demo/server/setup \
        mon/create \
        scripts/setup_server.bash \
        src/taskdctl \
        pki/generate \
        pki/generate.ca \
        pki/generate.client \
        pki/generate.crl \
        pki/generate.server

CFLAGS+=    -g -O0

PORTDOCS=   *

OPTIONS_DEFINE= DOCS

post-install:
    (cd ${WRKSRC}/pki && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
    ${MKDIR} ${STAGEDIR}${TASKD_DBDIR}

.include <bsd.port.mk>