Merge from vendor branch TNF:
[pkgsrcv2.git] / devel / distcc / Makefile
1 # $NetBSD: Makefile,v 1.32 2008/02/20 10:16:52 rillig Exp $
2
3 PKGNAME=        ${DISTNAME}
4 COMMENT=        Tool for distributed C/C++ compiling
5
6 .include "Makefile.common"
7
8 PKG_SYSCONFSUBDIR=      distcc
9 RCD_SCRIPTS=            distccd
10
11 .include "../../mk/bsd.prefs.mk"
12
13 DISTCC_USER?=           distcc
14 DISTCC_GROUP?=          distcc
15 PKG_GROUPS=             ${DISTCC_GROUP}
16 PKG_USERS=              ${DISTCC_USER}:${DISTCC_GROUP}
17 PKG_GROUPS_VARS+=       DISTCC_GROUP
18 PKG_USERS_VARS+=        DISTCC_USER
19
20 DISTCC_PIDDIR?=         ${VARBASE}/run/distccd
21 OWN_DIRS_PERMS=         ${DISTCC_PIDDIR} ${DISTCC_USER} ${DISTCC_GROUP} 0750
22
23 FILES_SUBST+=           DISTCC_PIDDIR=${DISTCC_PIDDIR}
24 FILES_SUBST+=           DISTCC_USER=${DISTCC_USER}
25 FILES_SUBST+=           DISTCC_GROUP=${DISTCC_GROUP}
26
27 INSTALLATION_DIRS+=     share/distcc
28
29 .include "../../mk/bsd.pkg.mk"