| 75 | variant gsskex { |
| 76 | set extra_cppflags [concat \ |
| 77 | "-F/System/Library/Frameworks/OpenDirectory.framework" \ |
| 78 | "-F/System/Library/Frameworks/CoreFoundation.framework" \ |
| 79 | "-D_UTMPX_COMPAT -D__APPLE_LAUNCHD__ -D__APPLE_MEMBERSHIP__" \ |
| 80 | "-D__APPLE_XSAN__"] |
| 81 | use_autoreconf yes |
| 82 | patch.pre_args -p1 |
| 83 | patchfiles-append openssh-5.9p1-gsskex-all-20110920.patch apple-keychain.patch |
| 84 | configure.args-append --with-4in6 --with-audit=bsm --with-keychain=apple \ |
| 85 | --disable-utmp --disable-wtmp --with-privsep-user=_sshd \ |
| 86 | CFLAGS="-fPIE -O2" CPPFLAGS="$extra_cppflags" \ |
| 87 | LDFLAGS="-Wl,-pie -framework CoreFoundation -framework OpenDirectory" |
| 88 | } |
| 89 | |