2015-09-30 10:25:37 +02:00
|
|
|
# $NetBSD: options.mk,v 1.6 2015/09/30 08:25:37 tnn Exp $
|
2005-12-02 18:01:35 +01:00
|
|
|
|
2008-03-01 06:17:32 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.kermit
|
2011-08-25 16:54:06 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= kermit-suid-uucp ssl kerberos
|
2005-12-02 18:01:35 +01:00
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= socks
|
2015-09-30 10:25:37 +02:00
|
|
|
PKG_OPTIONS_GROUP.socks= socks4 dante
|
2005-12-02 18:01:35 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2008-03-01 06:17:32 +01:00
|
|
|
###
|
|
|
|
### Install the kermit binary as a setuid-uucp binary.
|
|
|
|
###
|
2005-12-02 18:01:35 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mkermit-suid-uucp)
|
2008-03-01 06:17:32 +01:00
|
|
|
PKG_GROUPS+= ${UUCP_GROUP}
|
|
|
|
PKG_USERS+= ${UUCP_USER}:${UUCP_GROUP}
|
|
|
|
PKG_GROUPS_VARS+= UUCP_GROUP
|
|
|
|
PKG_USERS_VARS+= UUCP_USER
|
|
|
|
SPECIAL_PERMS+= bin/kermit ${UUCP_USER} ${UUCP_GROUP} 4555
|
2005-12-02 18:01:35 +01:00
|
|
|
.endif
|
|
|
|
|
2008-03-01 06:17:32 +01:00
|
|
|
###
|
|
|
|
### SOCKS firewall support.
|
|
|
|
###
|
2005-12-02 18:01:35 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Msocks4)
|
2015-01-17 16:30:03 +01:00
|
|
|
KFLAGS+= -DSOCKS -DCK_SOCKS
|
|
|
|
LIBS+= -L${BUILDLINK_PREFIX.dante}/lib -lsocks
|
|
|
|
.include "../../net/dante/buildlink3.mk"
|
2015-09-30 10:25:37 +02:00
|
|
|
.elif !empty(PKG_OPTIONS:Mdante)
|
|
|
|
KFLAGS+= -DSOCKS -DCK_SOCKS
|
|
|
|
LIBS+= -L${BUILDLINK_PREFIX.dante}/lib -lsocks
|
|
|
|
.include "../../net/dante/buildlink3.mk"
|
2005-12-02 18:01:35 +01:00
|
|
|
.endif
|
2011-08-25 16:54:06 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos)
|
|
|
|
BUILD_TARGET_OPTIONS+= +krb5
|
|
|
|
.include "../../security/mit-krb5/buildlink3.mk"
|
|
|
|
K5INC= -I${WRKDIR}/.buildlink/include
|
|
|
|
K5LIB= -L${WRKDIR}/.buildlink/lib ${COMPILER_RPATH_FLAG}${WRKDIR}/.buildlink/lib
|
|
|
|
MAKE_ENV+= K5INC=${K5INC:Q} K5LIB=${K5LIB:Q}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
|
|
BUILD_TARGET_OPTIONS+= +ssl
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
# Set to empty
|
|
|
|
SSLINC= -I${WRKDIR}/.buildlink/include
|
|
|
|
SSLLIB= -L${WRKDIR}/.buildlink/lib ${COMPILER_RPATH_FLAG}${WRKDIR}/.buildlink/lib
|
|
|
|
MAKE_ENV+= SSLINC=${SSLINC:Q} SSLLIB=${SSLLIB:Q}
|
|
|
|
.endif
|