diff options
author | jlam <jlam@pkgsrc.org> | 2004-07-30 21:05:41 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-07-30 21:05:41 +0000 |
commit | b460ce1ab51a88c8a15737b9aaf78a949fe6f32e (patch) | |
tree | 90f33a51019f85b91b5f29838193d07638327f1c /security/mit-krb5 | |
parent | 85306a83480ca871311e350b3814452b76f3b8a2 (diff) | |
download | pkgsrc-b460ce1ab51a88c8a15737b9aaf78a949fe6f32e.tar.gz |
Convert to use bsd.options.mk. The relevant options variable to set
for each package can be determined by invoking:
make show-var VARNAME=PKG_OPTIONS_VAR
The old options are still supported unless the variable named in
PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
Diffstat (limited to 'security/mit-krb5')
-rw-r--r-- | security/mit-krb5/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/security/mit-krb5/Makefile b/security/mit-krb5/Makefile index 2f44c795bda..14b8f91c400 100644 --- a/security/mit-krb5/Makefile +++ b/security/mit-krb5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2004/07/24 13:56:09 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2004/07/30 21:05:42 jlam Exp $ DISTNAME= krb5-1.3.4 PKGNAME= mit-${DISTNAME} @@ -54,11 +54,23 @@ CONFIGURE_ARGS+= --without-krb4 CONFIGURE_ARGS+= --without-tcl MAKE_ENV+= ROOT_USER=${ROOT_USER} +# Global and legacy options +.if defined(KERBEROS_PREFIX_CMDS) +. if !defined(PKG_OPTIONS.mit-krb5) +. if defined(KERBEROS_PREFIX_CMDS) && !empty(KERBEROS_PREFIX_CMDS:M[yY][eE][sS]) +PKG_OPTIONS.mit-krb5+= prefix-cmds +. endif +. endif +.endif + +PKG_OPTIONS_VAR= PKG_OPTIONS.mit-krb5 +PKG_SUPPORTED_OPTIONS= prefix-cmds +.include "../../mk/bsd.options.mk" + # Rename some of MIT krb5's applications so they won't conflict with # other packages. # -BUILD_DEFS+= KERBEROS_PREFIX_CMDS -.if !empty(KERBEROS_PREFIX_CMDS:M[yY][eE][sS]) +.if !empty(PKG_OPTIONS:Mprefix-cmds) KRB5_PREFIX= k MIT_KRB5_TRANSFORM= s/^ftp/${KRB5_PREFIX}&/; \ s/^rcp/${KRB5_PREFIX}&/; \ |