blob: c43965e5da2cfc512cc2319e5ee094d0b9f2502b (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# $NetBSD: Makefile.common,v 1.28 2009/12/14 23:33:01 heinz Exp $
# used by sysutils/amanda-common/Makefile
# used by sysutils/amanda-client/Makefile
# used by sysutils/amanda-server/Makefile
# used by sysutils/amanda-plot/Makefile
VERS= 2.5.2p1
DISTNAME?= amanda-${VERS}
CATEGORIES= sysutils
MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE:=amanda/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.amanda.org/
LICENSE= modified-bsd # basically equivalent
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
AMANDA_GROUP?= sysadmin
.else
# NetBSD, Linux and Darwin
AMANDA_GROUP?= operator
.endif
AMANDA_USER?= backup
AMANDA_TMP?= /tmp/amanda
AMANDA_VAR?= ${VARBASE}/amanda
PKG_GROUPS_VARS+= AMANDA_GROUP
PKG_USERS_VARS+= AMANDA_USER
BUILD_DEFS+= AMANDA_TMP AMANDA_VAR VARBASE
USE_LIBTOOL= yes
USE_TOOLS+= gzip:run gtar:run
CONFIGURE_ENV+= ac_cv_path_GZIP=${TOOLS_GZIP_CMD:Q}
CONFIGURE_ENV+= GNUTAR=${TOOLS_GTAR:Q}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-user=${AMANDA_USER:Q}
CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP:Q}
CONFIGURE_ARGS+= --with-owner=${ROOT_USER:Q}
CONFIGURE_ARGS+= --with-mmap
CONFIGURE_ARGS+= --with-amandahosts
CONFIGURE_ARGS+= --with-tmpdir=${AMANDA_TMP:Q}
CONFIGURE_ARGS+= --localstatedir=${AMANDA_VAR:Q}
CONFIGURE_ARGS+= --with-gnutar-listdir=${AMANDA_VAR}/gnutar-lists
CONFIGURE_ARGS+= --with-dump-honor-nodump
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
BUILD_DEFS+= AMANDA_SSH AMANDA_FQDN
.if defined(AMANDA_FQDN) && !empty(AMANDA_FQDN:M[yY][eE][sS])
CONFIGURE_ARGS+= --with-fqdn
.endif
.if defined(AMANDA_SSH) && !empty(AMANDA_SSH:M[yY][eE][sS])
CONFIGURE_ARGS+= --with-ssh-security
.endif
.include "../../sysutils/amanda-common/options.mk"
|