1 # $NetBSD: options.mk,v 1.3 2008/03/01 05:17:32 jlam Exp $
3 PKG_OPTIONS_VAR
= PKG_OPTIONS.kermit
4 PKG_SUPPORTED_OPTIONS
= kermit-suid-uucp ssl kerberos
5 PKG_OPTIONS_OPTIONAL_GROUPS
+= socks
6 PKG_OPTIONS_GROUP.socks
= socks4 socks5
8 .
include "../../mk/bsd.options.mk"
11 ### Install the kermit binary as a setuid-uucp binary.
13 .if
!empty
(PKG_OPTIONS
:Mkermit-suid-uucp
)
14 PKG_GROUPS
+= ${UUCP_GROUP}
15 PKG_USERS
+= ${UUCP_USER}:${UUCP_GROUP}
16 PKG_GROUPS_VARS
+= UUCP_GROUP
17 PKG_USERS_VARS
+= UUCP_USER
18 SPECIAL_PERMS
+= bin
/kermit
${UUCP_USER} ${UUCP_GROUP} 4555
22 ### SOCKS firewall support.
24 .if
!empty
(PKG_OPTIONS
:Msocks4
)
26 LIBS
+= -L
${BUILDLINK_PREFIX.socks4
}/lib
-lsocks4
27 .
include "../../net/socks4/buildlink3.mk"
28 .elif
!empty
(PKG_OPTIONS
:Msocks5
)
29 KFLAGS
+= -DSOCKS
-DCK_SOCKS5
30 LIBS
+= -L
${BUILDLINK_PREFIX.socks5
}/lib
-lsocks5
31 .
include "../../net/socks5/buildlink3.mk"
34 .if
!empty
(PKG_OPTIONS
:Mkerberos
)
35 BUILD_TARGET_OPTIONS
+= +krb5
36 .
include "../../security/mit-krb5/buildlink3.mk"
37 K5INC
= -I
${WRKDIR}/.buildlink
/include
38 K5LIB
= -L
${WRKDIR}/.buildlink
/lib
${COMPILER_RPATH_FLAG}${WRKDIR}/.buildlink
/lib
39 MAKE_ENV
+= K5INC
=${K5INC
:Q
} K5LIB
=${K5LIB
:Q
}
42 .if
!empty
(PKG_OPTIONS
:Mssl
)
43 BUILD_TARGET_OPTIONS
+= +ssl
44 .
include "../../security/openssl/buildlink3.mk"
46 SSLINC
= -I
${WRKDIR}/.buildlink
/include
47 SSLLIB
= -L
${WRKDIR}/.buildlink
/lib
${COMPILER_RPATH_FLAG}${WRKDIR}/.buildlink
/lib
48 MAKE_ENV
+= SSLINC
=${SSLINC
:Q
} SSLLIB
=${SSLLIB
:Q
}