update Tue Jun 15 00:37:00 PDT 2010
[pkgsrc.git] / security / openssh / options.mk
1 # $NetBSD: options.mk,v 1.19 2010/06/15 03:11:52 taca Exp $
2
3 .include "../../mk/bsd.prefs.mk"
4
5 PKG_OPTIONS_VAR=        PKG_OPTIONS.openssh
6 PKG_SUPPORTED_OPTIONS=  kerberos hpn-patch
7
8 .if !empty(OPSYS:MLinux)
9 PKG_SUPPORTED_OPTIONS+= pam
10 .endif
11
12 .include "../../mk/bsd.options.mk"
13
14 .if !empty(PKG_OPTIONS:Mkerberos)
15 .  include "../../mk/krb5.buildlink3.mk"
16 CONFIGURE_ARGS+=        --with-kerberos5=${KRB5BASE:Q}
17 .endif
18
19 .if !empty(PKG_OPTIONS:Mhpn-patch)
20 PATCHFILES=             openssh-5.5p1-hpn13v9.diff.gz
21 PATCH_SITES=            http://www.psc.edu/networking/projects/hpn-ssh/
22 PATCH_DIST_STRIP=       -p1
23 .endif
24
25 .if !empty(PKG_OPTIONS:Mpam)
26 # XXX: PAM authentication causes memory faults, and haven't tracked down
27 # XXX: why yet.  For the moment, disable PAM authentication for non-Linux.
28 .include "../../mk/pam.buildlink3.mk"
29 CONFIGURE_ARGS+=        --with-pam
30 PLIST_SRC+=             ${.CURDIR}/PLIST.pam
31 MESSAGE_SRC+=           ${.CURDIR}/MESSAGE.pam
32 MESSAGE_SUBST+=         EGDIR=${EGDIR}
33 .endif