pkgsrc/sysutils/amanda-common/options.mk
bouyer 21b9d33237 Remove amanda-dump-snap from suggested options for NetBSD <= 6.x, as
a workaround for PR kern/52120.
Bump amanda-client PKGREVISION
2017-03-28 12:50:26 +00:00

58 lines
1.6 KiB
Makefile

# $NetBSD: options.mk,v 1.13 2017/03/28 12:50:26 bouyer Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.amanda
# Common options.
PKG_SUPPORTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh kerberos ndmp
PKG_SUGGESTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh
# Client options.
PKG_SUPPORTED_OPTIONS+= amanda-smb amanda-dump-snap
.if (${OPSYS} != "NetBSD" || \
(!empty(OS_VERSION:M[7-9].*)))
PKG_SUGGESTED_OPTIONS+= amanda-dump-snap
.endif
PKG_OPTIONS_LEGACY_VARS+= AMANDA_FQDN:amanda-fqdn
PKG_OPTIONS_LEGACY_VARS+= AMANDA_SSH:amanda-ssh
PKG_OPTIONS_LEGACY_VARS+= AMANDA_SMB:amanda-smb
PKG_OPTIONS_LEGACY_VARS+= AMANDA_DUMP_SNAP:amanda-dump-snap
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --with-ipv6
.else
CONFIGURE_ARGS+= --without-ipv6
.endif
.if !empty(PKG_OPTIONS:Mamanda-fqdn)
CONFIGURE_ARGS+= --with-fqdn
.endif
.if !empty(PKG_OPTIONS:Mamanda-ssh)
CONFIGURE_ARGS+= --with-ssh-security
. if !exists(/usr/bin/ssh)
DEPENDS+= openssh-[0-9]*:../../security/openssh
CONFIGURE_ENV+= ac_cv_path_SSH=${LOCALBASE}/bin/ssh
. endif
.endif
.if !empty(PKG_OPTIONS:Mkerberos)
. if ${OPSYS} == "SunOS"
USE_BUILTIN.mit-krb5= no
. endif
CONFIGURE_ARGS+= --with-krb5-security=${KRB5BASE:Q}
. include "../../mk/krb5.buildlink3.mk"
.endif
# The ndmp code fails to build on OS X >= 10.9, and upstream questions why
# it is enabled. So it is a disabled-by-default option.
# http://www.redhat.com/archives/libvir-list/2013-October/msg01153.html
PLIST_VARS+= ndmp
CONFIGURE_ARGS+= --without-ndmp
.if !empty(PKG_OPTIONS:Mndmp)
CONFIGURE_ARGS+= --with-ndmp
PLIST.ndmp= yes
.else
CONFIGURE_ARGS+= --without-ndmp
.endif