pkgsrc/sysutils/amanda-common/Makefile.common
jschauma 8411c736b9 Changes to make amanda* work nicely on Linux:
- do not depend on gtar; GNU/Linux tar is gtar, obviously
 - set AMANDA_GROUP as on NetBSD and Darwin
2002-09-05 18:07:52 +00:00

31 lines
887 B
Makefile

# $NetBSD: Makefile.common,v 1.9 2002/09/05 18:07:54 jschauma Exp $
#
# common make file fragment shared by all amanda-* pkgs.
#
.if ${OPSYS} == "SunOS"
AMANDA_GROUP?= sysadmin
.else
# NetBSD, Linux and 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