summaryrefslogtreecommitdiff
path: root/sysutils/amanda-common/Makefile.common
blob: a42a48ce5e6ec6346cd720ecad600b6e91a91ff7 (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
# $NetBSD: Makefile.common,v 1.8 2002/08/25 21:50:54 jlam Exp $
#
# common make file fragment shared by all amanda-* pkgs.
#

.if ${OPSYS} == "NetBSD"
AMANDA_GROUP?=		operator
.elif ${OPSYS} == "SunOS"
AMANDA_GROUP?=		sysadmin
.elif ${OPSYS} == "Darwin"
AMANDA_GROUP?=		operator
.endif

AMANDA_USER?=		backup
AMANDA_VAR?=		/var/amanda

BUILD_DEFS+=		AMANDA_USER AMANDA_GROUP AMANDA_SMB AMANDA_VAR

USE_LIBTOOL=		yes
LTCONFIG_OVERRIDE=	${WRKSRC}/config/ltconfig
CONFIG_GUESS_OVERRIDE=	${WRKSRC}/config/config.guess
CONFIG_SUB_OVERRIDE=	${WRKSRC}/config/config.sub

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-user=${AMANDA_USER}
CONFIGURE_ARGS+=	--with-group=${AMANDA_GROUP}
CONFIGURE_ARGS+=	--with-owner=root
CONFIGURE_ARGS+=	--with-mmap
CONFIGURE_ARGS+=	--with-amandahosts
CONFIGURE_ARGS+=	--localstatedir=${AMANDA_VAR}
CONFIGURE_ARGS+=	--with-gnutar-listdir=${AMANDA_VAR}/gnutar-lists
CONFIGURE_ARGS+=	--with-dump-honor-nodump