This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
krb5.cygport
151 lines (143 loc) · 5.76 KB
/
krb5.cygport
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
NAME="krb5"
VERSION=1.15.2
RELEASE=2
CATEGORY="Libs"
SUMMARY="Kerberos reference implementation"
DESCRIPTION="This is the reference implementation of the Kerberos network
authentication protocol from MIT. It is designed to provide strong
authentication for client/server applications by using secret-key cryptography."
HOMEPAGE="http://web.mit.edu/kerberos/"
SRC_URI="
http://web.mit.edu/kerberos/dist/krb5/${VERSION%.*}/krb5-${VERSION}.tar.gz
http://web.mit.edu/kerberos/dist/krb5/${VERSION%.*}/krb5-${VERSION}.tar.gz.asc
"
PATCH_URI="
fedora/krb5-1.12-ksu-path.patch
fedora/krb5-1.12-ktany.patch
fedora/krb5-1.15-beta1-buildconf.patch
fedora/krb5-1.3.1-dns.patch
fedora/krb5-1.12-api.patch
fedora/krb5-1.13-dirsrv-accountlock.patch
fedora/krb5-1.9-debuginfo.patch
fedora/krb5-1.11-kpasswdtest.patch
fedora/Build-with-Werror-implicit-int-where-supported.patch
fedora/Add-PKINIT-UPN-tests-to-t_pkinit.py.patch
fedora/Add-test-case-for-PKINIT-DH-renegotiation.patch
fedora/Use-expected_trace-in-test-scripts.patch
fedora/Use-expected_msg-in-test-scripts.patch
fedora/Use-fallback-realm-for-GSSAPI-ccache-selection.patch
fedora/Use-GSSAPI-fallback-skiptest.patch
fedora/Improve-PKINIT-UPN-SAN-matching.patch
fedora/Deindent-crypto_retrieve_X509_sans.patch
fedora/Add-the-client_name-kdcpreauth-callback.patch
fedora/Use-the-canonical-client-principal-name-for-OTP.patch
fedora/Add-certauth-pluggable-interface.patch
fedora/Correct-error-handling-bug-in-prior-commit.patch
fedora/Add-k5test-expected_msg-expected_trace.patch
fedora/Add-support-to-query-the-SSF-of-a-GSS-context.patch
fedora/Remove-incomplete-PKINIT-OCSP-support.patch
fedora/Fix-in_clock_skew-and-use-it-in-AS-client-code.patch
fedora/Add-timestamp-helper-functions.patch
fedora/Make-timestamp-manipulations-y2038-safe.patch
fedora/Add-timestamp-tests.patch
fedora/Add-y2038-documentation.patch
fedora/Fix-more-time-manipulations-for-y2038.patch
fedora/Use-krb5_timestamp-where-appropriate.patch
fedora/Add-KDC-policy-pluggable-interface.patch
fedora/Fix-bugs-in-kdcpolicy-commit.patch
fedora/Convert-some-pkiDebug-messages-to-TRACE-macros.patch
fedora/Fix-certauth-built-in-module-returns.patch
fedora/Add-PKINIT-test-case-for-generic-client-cert.patch
fedora/Add-hostname-based-ccselect-module.patch
fedora/Add-German-translation.patch
fedora/Fix-PKINIT-cert-matching-data-construction.patch
fedora/Process-included-directories-in-alphabetical-order.patch
fedora/Fix-flaws-in-LDAP-DN-checking.patch
1.12.1-cygwin-build.patch
1.12.1-cygwin-plugins.patch
1.15.1-cygwin-in_pktinfo.patch
1.12.1-cygwin-yasm.patch
1.12.1-cygwin64.patch
"
CFLAGS+=" -DFD_SETSIZE=1024"
src_compile() {
cd ${S}/src
cygautoreconf
cd ${B}
CYGCONF_SOURCE=${S}/src
cygconf \
--enable-dns-for-realm \
--enable-pkinit \
--with-pkinit-crypto-impl=openssl \
--with-tls-impl=openssl \
--with-ldap \
--with-system-et \
--with-system-ss \
--with-system-verto \
krb5_cv_cc_flag__dash_Werror_eq_uninitialized=no
cygmake
}
src_test() {
cd ${B}
PATH=${B}/lib:${PATH} cygtest
}
src_install() {
cd ${B}
cyginstall EXAMPLEDIR=/usr/share/doc/${NAME}/examples
# internal library
rm -f ${D}/usr/lib/libkdb_ldap.dll.a
# only for tests
rm -f ${D}/usr/lib/krb5/plugins/preauth/test.dll
dodoc ${S}/doc/html
}
PKG_NAMES="krb5-workstation krb5-server krb5-server-ldap krb5-pkinit krb5-k5tls
krb5-samples krb5-doc libgssapi_krb5_2 libgssrpc4 libk5crypto3
libkadm5clnt_mit11 libkadm5srv_mit11 libkdb5_8 libkrad0 libkrb5_3
libkrb5support0 libkrb5-devel"
krb5_workstation_CATEGORY="Net"
krb5_workstation_SUMMARY="${SUMMARY} clients"
krb5_workstation_CONTENTS="--exclude=examples --exclude=html --exclude=cyg*.dll
--exclude=krb5-config* usr/bin/k* usr/share/doc/ usr/share/locale/
usr/share/man/man1/k* usr/share/man/man5/krb5.conf.5*"
krb5_server_CATEGORY="Net"
krb5_server_SUMMARY="${SUMMARY} server"
krb5_server_CONTENTS="--exclude=krb5.conf* --exclude=kdb5_ldap_util*
usr/sbin/k*
usr/lib/krb5/plugins/kdb/db2.dll
usr/lib/krb5/plugins/preauth/otp.dll
usr/share/man/man5/ usr/share/man/man8/k*"
krb5_server_ldap_CATEGORY="Net"
krb5_server_ldap_SUMMARY="${SUMMARY} server (LDAP support)"
krb5_server_ldap_CONTENTS="usr/bin/cygkdb_ldap-*.dll
usr/lib/krb5/plugins/kdb/kldap.dll
usr/sbin/kdb5_ldap_util.exe
usr/share/man/man8/kdb5_ldap_util.8*"
krb5_pkinit_SUMMARY="${SUMMARY} (PKCS#11 plugin)"
krb5_pkinit_CONTENTS="usr/lib/krb5/plugins/preauth/pkinit.dll"
krb5_k5tls_SUMMARY="${SUMMARY} (TLS plugin)"
krb5_k5tls_CONTENTS="usr/lib/krb5/plugins/tls/k5tls.dll"
krb5_samples_SUMMARY="${SUMMARY} (sample servers and clients)"
krb5_samples_CONTENTS="usr/bin/*client.exe usr/sbin/*server.exe usr/share/man/man*/s*"
krb5_doc_CATEGORY="Doc"
krb5_doc_CONTENTS="usr/share/doc/krb5/*/"
libgssapi_krb5_2_SUMMARY="${SUMMARY} GSS-API library"
libgssapi_krb5_2_CONTENTS="usr/bin/cyggssapi_krb5-2.dll"
libgssrpc4_SUMMARY="${SUMMARY} GSS ONCRPC library"
libgssrpc4_CONTENTS="usr/bin/cyggssrpc-4.dll"
libk5crypto3_SUMMARY="${SUMMARY} crypto library"
libk5crypto3_CONTENTS="usr/bin/cygk5crypto-3.dll"
libkadm5clnt_mit11_SUMMARY="${SUMMARY} administration client library"
libkadm5clnt_mit11_CONTENTS="usr/bin/cygkadm5clnt_mit-11.dll"
libkadm5srv_mit11_SUMMARY="${SUMMARY} administration server library"
libkadm5srv_mit11_CONTENTS="usr/bin/cygkadm5srv_mit-11.dll"
libkdb5_8_SUMMARY="${SUMMARY} database library"
libkdb5_8_CONTENTS="usr/bin/cygkdb5-8.dll"
libkrad0_SUMMARY="${SUMMARY} RADIUS library"
libkrad0_CONTENTS="usr/bin/cygkrad-0.dll"
libkrb5_3_SUMMARY="${SUMMARY} library"
libkrb5_3_CONTENTS="usr/bin/cygkrb5-3.dll"
libkrb5support0_SUMMARY="${SUMMARY} support library"
libkrb5support0_CONTENTS="usr/bin/cygkrb5support-0.dll"
libkrb5_devel_SUMMARY="${SUMMARY} library development"
libkrb5_devel_CONTENTS="usr/bin/krb5-config usr/include/ usr/lib/lib*
usr/lib/pkgconfig/ usr/share/man/man1/krb5-config.1*"