Move the amanda-client option definitions to the common options.mk so that 'PKG_OPTIONS.amanda' works properly.diff -r1.49 -r1.50 pkgsrc/sysutils/amanda-client/Makefile
(sbd)
@@ -1,32 +1,27 @@ | @@ -1,32 +1,27 @@ | |||
1 | # $NetBSD: Makefile,v 1.49 2012/05/21 04:27:09 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.50 2012/07/05 06:57:44 sbd Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= amanda-client-${VERS} | 4 | PKGNAME= amanda-client-${VERS} | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | SVR4_PKGNAME= amacl | 6 | SVR4_PKGNAME= amacl | |
7 | 7 | |||
8 | COMMENT= Client part of Amanda, a network backup system | 8 | COMMENT= Client part of Amanda, a network backup system | |
9 | 9 | |||
10 | PKG_DESTDIR_SUPPORT= destdir | 10 | PKG_DESTDIR_SUPPORT= destdir | |
11 | 11 | |||
12 | GNU_CONFIGURE= yes | 12 | GNU_CONFIGURE= yes | |
13 | USE_TOOLS+= awk:run perl:run | 13 | USE_TOOLS+= awk:run perl:run | |
14 | 14 | |||
15 | PKG_SUPPORTED_OPTIONS+= amanda-smb amanda-dump-snap | |||
16 | ||||
17 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_SMB:amanda-smb | |||
18 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_DUMP_SNAP:amanda-dump-snap | |||
19 | ||||
20 | .include "../../mk/bsd.prefs.mk" | 15 | .include "../../mk/bsd.prefs.mk" | |
21 | .include "../../sysutils/amanda-common/Makefile.common" | 16 | .include "../../sysutils/amanda-common/Makefile.common" | |
22 | .include "../../sysutils/amanda-common/buildlink3.mk" | 17 | .include "../../sysutils/amanda-common/buildlink3.mk" | |
23 | #.include "../../devel/readline/buildlink3.mk" | 18 | #.include "../../devel/readline/buildlink3.mk" | |
24 | 19 | |||
25 | CONFIGURE_ARGS+= --without-server | 20 | CONFIGURE_ARGS+= --without-server | |
26 | 21 | |||
27 | .if !empty(PKG_OPTIONS:Mamanda-smb) | 22 | .if !empty(PKG_OPTIONS:Mamanda-smb) | |
28 | CONFIGURE_ARGS+= --with-smbclient | 23 | CONFIGURE_ARGS+= --with-smbclient | |
29 | DEPENDS+= {samba>=2.0,ja-samba>=2.0}:../../net/samba | 24 | DEPENDS+= {samba>=2.0,ja-samba>=2.0}:../../net/samba | |
30 | .endif | 25 | .endif | |
31 | 26 | |||
32 | .if !empty(PKG_OPTIONS:Mamanda-dump-snap) | 27 | .if !empty(PKG_OPTIONS:Mamanda-dump-snap) |
@@ -1,23 +1,28 @@ | @@ -1,23 +1,28 @@ | |||
1 | # $NetBSD: options.mk,v 1.5 2012/06/12 15:46:03 wiz Exp $ | 1 | # $NetBSD: options.mk,v 1.6 2012/07/05 06:57:45 sbd Exp $ | |
2 | 2 | |||
3 | # Since amanda's ipv6 usage is broken, turn it off by default. | 3 | # Since amanda's ipv6 usage is broken, turn it off by default. | |
4 | 4 | |||
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.amanda | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.amanda | |
6 | # Common options. | |||
6 | PKG_SUPPORTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh | 7 | PKG_SUPPORTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh | |
7 | PKG_SUGGESTED_OPTIONS+= inet6 amanda-ssh | 8 | PKG_SUGGESTED_OPTIONS+= inet6 amanda-ssh | |
9 | # Client options. | |||
10 | PKG_SUPPORTED_OPTIONS+= amanda-smb amanda-dump-snap | |||
8 | 11 | |||
9 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_FQDN:amanda-fqdn | 12 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_FQDN:amanda-fqdn | |
10 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_SSH:amanda-ssh | 13 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_SSH:amanda-ssh | |
14 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_SMB:amanda-smb | |||
15 | PKG_OPTIONS_LEGACY_VARS+= AMANDA_DUMP_SNAP:amanda-dump-snap | |||
11 | 16 | |||
12 | .include "../../mk/bsd.options.mk" | 17 | .include "../../mk/bsd.options.mk" | |
13 | 18 | |||
14 | .if !empty(PKG_OPTIONS:Minet6) | 19 | .if !empty(PKG_OPTIONS:Minet6) | |
15 | CONFIGURE_ARGS+= --with-ipv6 | 20 | CONFIGURE_ARGS+= --with-ipv6 | |
16 | .else | 21 | .else | |
17 | CONFIGURE_ARGS+= --without-ipv6 | 22 | CONFIGURE_ARGS+= --without-ipv6 | |
18 | .endif | 23 | .endif | |
19 | 24 | |||
20 | .if !empty(PKG_OPTIONS:Mamanda-fqdn) | 25 | .if !empty(PKG_OPTIONS:Mamanda-fqdn) | |
21 | CONFIGURE_ARGS+= --with-fqdn | 26 | CONFIGURE_ARGS+= --with-fqdn | |
22 | .endif | 27 | .endif | |
23 | 28 |