Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / amanda-common / options.mk
blob528026bc517694357860c4f1d9b938b58490798c
1 # $NetBSD: options.mk,v 1.8 2012/07/30 06:54:45 sbd Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.amanda
4 # Common options.
5 PKG_SUPPORTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh kerberos
6 PKG_SUGGESTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh kerberos
7 # Client options.
8 PKG_SUPPORTED_OPTIONS+= amanda-smb amanda-dump-snap
9 PKG_SUGGESTED_OPTIONS+= amanda-dump-snap
11 PKG_OPTIONS_LEGACY_VARS+= AMANDA_FQDN:amanda-fqdn
12 PKG_OPTIONS_LEGACY_VARS+= AMANDA_SSH:amanda-ssh
13 PKG_OPTIONS_LEGACY_VARS+= AMANDA_SMB:amanda-smb
14 PKG_OPTIONS_LEGACY_VARS+= AMANDA_DUMP_SNAP:amanda-dump-snap
16 .include "../../mk/bsd.options.mk"
18 .if !empty(PKG_OPTIONS:Minet6)
19 CONFIGURE_ARGS+= --with-ipv6
20 .else
21 CONFIGURE_ARGS+= --without-ipv6
22 .endif
24 .if !empty(PKG_OPTIONS:Mamanda-fqdn)
25 CONFIGURE_ARGS+= --with-fqdn
26 .endif
28 .if !empty(PKG_OPTIONS:Mamanda-ssh)
29 CONFIGURE_ARGS+= --with-ssh-security
31 . if !exists(/usr/bin/ssh)
32 DEPENDS+= openssh-[0-9]*:../../security/openssh
33 FIND_PREFIX:= SSHPREFIX=openssh
34 .include "../../mk/find-prefix.mk"
35 CONFIGURE_ENV+= ac_cv_path_SSH=${SSHPREFIX}/bin/ssh
36 . endif
37 .endif
39 .if !empty(PKG_OPTIONS:Mkerberos)
40 CONFIGURE_ARGS+= --with-krb5-security=${KRB5BASE:Q}
41 . include "../../mk/krb5.buildlink3.mk"
42 .endif