summaryrefslogtreecommitdiff
path: root/mk/defaults/obsolete.mk
blob: 68cef3824ec5b3771252ff6e3756b7324877fabb (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
# $NetBSD: obsolete.mk,v 1.25 2005/12/02 17:29:42 wiz Exp $
#
# This file holds make(1) logic to allow obsolete or deprecated variables
# still to be used.  These may eventually disappear over time as the contents
# are, by definition, obsolete and deprecated.

.if defined(PRIV_CONF_DIR)
PKG_SYSCONFDIR.priv?=	${PRIV_CONF_DIR}
.endif

###
### Set PKG_LEGACY_OPTIONS based on to-be-deprecated global variables.
###

.if defined(KERBEROS)
.  if ${KERBEROS} == "4" && !empty(PKG_SUPPORTED_OPTIONS:Mkerberos4)
PKG_LEGACY_OPTIONS+=	kerberos4
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable KERBEROS used, use PKG_DEFAULT_OPTIONS+=kerberos4 instead."
.  elif !empty(PKG_SUPPORTED_OPTIONS:Mkerberos)
PKG_LEGACY_OPTIONS+=	kerberos
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable KERBEROS used, use PKG_DEFAULT_OPTIONS+=kerberos instead."
.  endif
.endif

PKG_OPTIONS_LEGACY_VARS+=	USE_INET6:inet6

# remove everything below this line after 2005Q4
.if defined(USE_SOCKS)
.  if ${USE_SOCKS} == "4" && !empty(PKG_SUPPORTED_OPTIONS:Msocks4)
PKG_LEGACY_OPTIONS+=	socks4
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks4 instead."
.  elif ${USE_SOCKS} == "5" && !empty(PKG_SUPPORTED_OPTIONS:Msocks5)
PKG_LEGACY_OPTIONS+=	socks5
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks5 instead."
.  endif
.endif
PKG_OPTIONS_LEGACY_VARS+=	USE_CANNA:canna
PKG_OPTIONS_LEGACY_VARS+=	USE_CUPS:cups
PKG_OPTIONS_LEGACY_VARS+=	USE_I586:i586
PKG_OPTIONS_LEGACY_VARS+=	USE_OPENLDAP:ldap
PKG_OPTIONS_LEGACY_VARS+=	USE_OSS:oss
PKG_OPTIONS_LEGACY_VARS+=	USE_RSAREF2:rsaref
PKG_OPTIONS_LEGACY_VARS+=	USE_SASL:sasl
PKG_OPTIONS_LEGACY_VARS+=	USE_SASL2:sasl
PKG_OPTIONS_LEGACY_VARS+=	USE_SJ3:sj3
PKG_OPTIONS_LEGACY_VARS+=	USE_WNN4:wnn4
PKG_OPTIONS_LEGACY_VARS+=	USE_XFACE:xface