blob: c445668e1a1390d6f454fa63de1e4d72543b8885 (
plain)
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
58
59
60
61
62
63
64
|
# $NetBSD: Makefile,v 1.3 2019/07/20 22:46:42 wiz Exp $
DISTNAME= taskd-1.1.0
PKGNAME= ${DISTNAME:S/taskd/taskserver/}
PKGREVISION= 3
CATEGORIES= net
MASTER_SITES= https://taskwarrior.org/download/
MAINTAINER= esg@sdf.org
HOMEPAGE= https://taskwarrior.org/download/
COMMENT= Lightweight, secure server providing access to task data
LICENSE= mit
USE_CMAKE= yes
USE_LANGUAGES= c c++
CMAKE_ARGS+= -DTASKD_MAN1DIR=${PREFIX}/${PKGMANDIR}/man1
CMAKE_ARGS+= -DTASKD_MAN5DIR=${PREFIX}/${PKGMANDIR}/man5
LDFLAGS.SunOS+= -lsocket -lnsl
.include "../../mk/bsd.prefs.mk"
SMF_NAME= taskd
TASKD_USER?= taskd
TASKD_GROUP?= taskd
TASKD_DATA?= ${VARBASE}/taskd
PKG_GROUPS= ${TASKD_GROUP}
PKG_USERS= ${TASKD_USER}:${TASKD_GROUP}
PKG_GROUPS_VARS= TASKD_USER
PKG_USERS_VARS= TASKD_GROUP
PKG_HOME.${TASKD_USER}= ${TASKD_DATA}
FILES_SUBST+= TASKD_USER=${TASKD_USER} TASKD_GROUP=${TASKD_GROUP} \
TASKD_DATA=${TASKD_DATA}
MESSAGE_SUBST+= TASKD_DATA=${TASKD_DATA}
EGDIR= ${PREFIX}/share/examples/taskd
EGFILES+= pki/README pki/generate pki/generate.ca \
pki/generate.client pki/generate.crl \
pki/generate.server pki/vars
INSTALLATION_DIRS+= ${EGDIR}/pki
BUILD_DEFS+= TASKD_USER TASKD_GROUP TASKD_DATA VARBASE
REPLACE_SH= src/taskdctl
SUBST_CLASSES+= abspath
SUBST_STAGE.abspath= post-configure
SUBST_MESSAGE.abspath= Set absolute paths.
SUBST_FILES.abspath= src/taskdctl
SUBST_VARS.abspath= PREFIX
MAKE_DIRS+= ${TASKD_DATA}
OWN_DIRS_PERMS+= ${TASKD_DATA} ${TASKD_USER} ${TASKD_GROUP} 0750
RCD_SCRIPTS= taskd
post-install:
.for file in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${EGDIR}/${file}
.endfor
.include "../../devel/libuuid/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|