summaryrefslogtreecommitdiff
path: root/devel/distcc/Makefile
blob: 6012efc7680ae9cb7792957a2377c365fac94f5b (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
# $NetBSD: Makefile,v 1.31 2007/07/04 20:54:38 jlam Exp $

PKGNAME=		${DISTNAME}
PKGREVISION=		2
COMMENT=		Tool for distributed C/C++ compiling

.include "Makefile.common"

PKG_SYSCONFSUBDIR=	distcc
RCD_SCRIPTS=		distccd

SKIP_PORTABILITY_CHECK=	yes

.include "../../mk/bsd.prefs.mk"

DISTCC_USER?=		distcc
DISTCC_GROUP?=		distcc
PKG_GROUPS=		${DISTCC_GROUP}
PKG_USERS=		${DISTCC_USER:Q}:${DISTCC_GROUP:Q}
PKG_GROUPS_VARS+=	DISTCC_GROUP
PKG_USERS_VARS+=	DISTCC_USER

DISTCC_PIDDIR?=		${VARBASE}/run/distccd
OWN_DIRS_PERMS=		${DISTCC_PIDDIR} ${DISTCC_USER:Q} ${DISTCC_GROUP:Q} 0750

FILES_SUBST+=		DISTCC_PIDDIR=${DISTCC_PIDDIR:Q}
FILES_SUBST+=		DISTCC_USER=${DISTCC_USER:Q}
FILES_SUBST+=		DISTCC_GROUP=${DISTCC_GROUP:Q}

post-install:
	${INSTALL_DATA_DIR} ${PREFIX:Q}/share/distcc

.include "../../mk/bsd.pkg.mk"