[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / taskserver

File: [cvs.NetBSD.org] / pkgsrc / net / taskserver / Makefile (download)

Revision 1.10, Wed Oct 26 10:31:51 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.9: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.10 2022/10/26 10:31:51 wiz Exp $

DISTNAME=	taskd-1.1.0
PKGNAME=	${DISTNAME:S/taskd/taskserver/}
PKGREVISION=	9
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"