summaryrefslogtreecommitdiff
path: root/net/netsaint-base/Makefile.common
blob: 927a96214972db67fa92ae56bb9e93675208077f (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
# $NetBSD: Makefile.common,v 1.13 2007/02/06 18:28:23 joerg Exp $
#

CATEGORIES=		net sysutils

NETSAINT_USER?=		netsaint
NETSAINT_GROUP?=	${NETSAINT_USER}

NETSTADM_USER?=		netstadm
NETSTADM_GROUP?=	${NETSTADM_USER}

PKG_GROUPS+=	${NETSAINT_GROUP}
PKG_GROUPS+=	${NETSTADM_GROUP}

PKG_USERS+=	${NETSAINT_USER}:${NETSAINT_GROUP}
PKG_USERS+=	${NETSTADM_USER}:${NETSTADM_GROUP}

PKG_GECOS.${NETSAINT_USER}=	NetSaint Runtime User
PKG_GECOS.${NETSTADM_USER}=	NetSaint Administrator
PKG_HOME.${NETSTADM_USER}=	${PKG_SYSCONFDIR}
PKG_SHELL.${NETSTADM_USER}=	${SH}

GNU_CONFIGURE=		YES
USE_TOOLS+=		gmake perl:run

PKG_SYSCONFSUBDIR=	netsaint

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--localstatedir=/var
CONFIGURE_ARGS+=	--datadir=${PREFIX}/share/netsaint
CONFIGURE_ARGS+=	--libexecdir=${PREFIX}/libexec/netsaint
CONFIGURE_ARGS+=	--with-lockfile=var/run/netsaint/netsaint.lock
CONFIGURE_ARGS+=	--with-netsaint-user=${NETSAINT_USER:Q}
CONFIGURE_ARGS+=	--with-netsaint-grp=${NETSAINT_GROUP:Q}
CONFIGURE_ARGS+=	--with-init-dir=${PREFIX}/etc/rc.d