Lines 12-18
Link Here
|
12 |
|
12 |
|
13 |
DESCRIPTION="Kerberos 5 implementation from KTH" |
13 |
DESCRIPTION="Kerberos 5 implementation from KTH" |
14 |
HOMEPAGE="http://www.pdc.kth.se/heimdal/" |
14 |
HOMEPAGE="http://www.pdc.kth.se/heimdal/" |
15 |
SRC_URI="ftp://ftp.pdc.kth.se/pub/heimdal/src/${P}.tar.gz |
15 |
SRC_URI="ftp://ftp.pdc.kth.se/pub/heimdal/src/snapshots/${P/_rc/rc}.tar.gz |
16 |
http://dev.gentoo.org/~seemant/distfiles/${PATCH_P}.tar.bz2 |
16 |
http://dev.gentoo.org/~seemant/distfiles/${PATCH_P}.tar.bz2 |
17 |
mirror://gentoo/${PATCH_P}.tar.bz2" |
17 |
mirror://gentoo/${PATCH_P}.tar.bz2" |
18 |
|
18 |
|
Lines 32-37
Link Here
|
32 |
PROVIDE="virtual/krb5" |
32 |
PROVIDE="virtual/krb5" |
33 |
|
33 |
|
34 |
GENTOODIR=${WORKDIR}/gentoo |
34 |
GENTOODIR=${WORKDIR}/gentoo |
|
|
35 |
S=${WORKDIR}/${P/_rc/rc} |
36 |
|
37 |
KRB5_PREFIX="/usr/${PN}" |
38 |
KRB5CONFIG=/usr/bin/krb5-config |
35 |
|
39 |
|
36 |
src_unpack() { |
40 |
src_unpack() { |
37 |
unpack ${A} |
41 |
unpack ${A} |
Lines 48-54
Link Here
|
48 |
|
52 |
|
49 |
if use ldap; then |
53 |
if use ldap; then |
50 |
myconf="${myconf} --with-openldap=/usr" |
54 |
myconf="${myconf} --with-openldap=/usr" |
51 |
#append-flags -DLDAP_DEPRECATED=1 |
|
|
52 |
fi |
55 |
fi |
53 |
|
56 |
|
54 |
econf \ |
57 |
econf \ |
Lines 61-80
Link Here
|
61 |
--enable-shared \ |
64 |
--enable-shared \ |
62 |
--enable-netinfo \ |
65 |
--enable-netinfo \ |
63 |
--enable-pthread-support \ |
66 |
--enable-pthread-support \ |
|
|
67 |
--prefix="${KRB5_PREFIX}" \ |
68 |
--bindir=/usr/bin \ |
69 |
--sbindir=/usr/sbin \ |
64 |
--libexecdir=/usr/sbin \ |
70 |
--libexecdir=/usr/sbin \ |
65 |
--includedir=/usr/include/heimdal \ |
71 |
--mandir=/usr/share/man \ |
|
|
72 |
--infodir=/usr/share/info \ |
66 |
${myconf} || die "econf failed" |
73 |
${myconf} || die "econf failed" |
67 |
|
74 |
|
68 |
emake || die "emake failed" |
75 |
emake || die "emake failed" |
69 |
|
76 |
|
70 |
# Compile the added password checker: |
|
|
71 |
#cd lib/kadm5 |
72 |
#tc-export CC |
73 |
#${CC} -shared -fPIC \ |
74 |
# ${CFLAGS} -I"${S}"/include \ |
75 |
# -DDICTPATH=\"/usr/$(get_libdir)/cracklib_dict\" \ |
76 |
# -o sample_passwd_check.so sample_passwd_check.c -lcrack || \ |
77 |
# die "Failed to compile password checker" |
78 |
} |
77 |
} |
79 |
|
78 |
|
80 |
src_test() { |
79 |
src_test() { |
Lines 91-98
Link Here
|
91 |
src_install() { |
90 |
src_install() { |
92 |
emake DESTDIR="${D}" install || die "emake install failed" |
91 |
emake DESTDIR="${D}" install || die "emake install failed" |
93 |
|
92 |
|
94 |
#dolib lib/kadm5/sample_passwd_check.so |
|
|
95 |
|
96 |
dodoc ChangeLog README NEWS TODO |
93 |
dodoc ChangeLog README NEWS TODO |
97 |
|
94 |
|
98 |
# Begin client rename and install |
95 |
# Begin client rename and install |
Lines 111-130
Link Here
|
111 |
mv "${D}"/usr/share/man/man5/{,k}ftpusers.5 |
108 |
mv "${D}"/usr/share/man/man5/{,k}ftpusers.5 |
112 |
mv "${D}"/usr/share/man/man5/{,k}login.access.5 |
109 |
mv "${D}"/usr/share/man/man5/{,k}login.access.5 |
113 |
|
110 |
|
114 |
# Create symlinks for the includes |
|
|
115 |
#dosym heimdal /usr/include/gssapi |
116 |
#dosym heimdal/krb5-types.h /usr/include/krb5-types.h |
117 |
#dosym heimdal/krb5.h /usr/include/krb5.h |
118 |
#dosym heimdal/asn1_err.h /usr/include/asn1_err.h |
119 |
#dosym heimdal/krb5_asn1.h /usr/include/krb5_asn1.h |
120 |
#dosym heimdal/krb5_err.h /usr/include/krb5_err.h |
121 |
#dosym heimdal/heim_err.h /usr/include/heim_err.h |
122 |
#dosym heimdal/k524_err.h /usr/include/k524_err.h |
123 |
#dosym heimdal/krb5-protos.h /usr/include/krb5-protos.h |
124 |
|
125 |
# Hacky symlinks for silly old SASL checks |
111 |
# Hacky symlinks for silly old SASL checks |
126 |
dosym . /usr/include/heimdal/include |
112 |
#dosym . /usr/include/heimdal/include |
127 |
dosym /usr/lib /usr/include/heimdal/lib |
113 |
#dosym /usr/lib /usr/include/heimdal/lib |
128 |
|
114 |
|
129 |
doinitd "${GENTOODIR}"/configs/heimdal-kdc |
115 |
doinitd "${GENTOODIR}"/configs/heimdal-kdc |
130 |
doinitd "${GENTOODIR}"/configs/heimdal-kadmind |
116 |
doinitd "${GENTOODIR}"/configs/heimdal-kadmind |
Lines 143-146
Link Here
|
143 |
|
129 |
|
144 |
# default database dir |
130 |
# default database dir |
145 |
keepdir /var/heimdal |
131 |
keepdir /var/heimdal |
|
|
132 |
|
133 |
dodir /etc/env.d |
134 |
cat > "${D}"/etc/env.d/15heimdal <<-EOF |
135 |
PATH=/usr/bin |
136 |
ROOTPATH=/usr/sbin |
137 |
LDPATH=${KRB5_PREFIX}/lib |
138 |
MANDIR=/usr/share/man |
139 |
INFODIR=/usr/share/info |
140 |
EOF |
141 |
|
142 |
dodir /usr/lib/pkgconfig |
143 |
for package in krb5 gssapi kadm-client kadm-server kafs; do |
144 |
cat > "${D}"/usr/lib/pkgconfig/"${package}.pc" <<-EOF |
145 |
prefix=`"${D}/${KRB5CONFIG}" --prefix "${package}"` |
146 |
exec_prefix=`"${D}/${KRB5CONFIG}" --exec-prefix "${package}"` |
147 |
libdir=`"${D}/${KRB5CONFIG}" --libs |sed -e's/^-L\([^ ]*\)\($\| .*$\)/\1/'` |
148 |
includedir=`"${D}/${KRB5CONFIG}" --cflags |sed -e's/^-I\([^ ]*\)\($\| .*$\)/\1/'` |
149 |
|
150 |
Name: Heimdal ${package} |
151 |
Description: the $package part of Heimdal |
152 |
Version: ${PV} |
153 |
Requires: |
154 |
Libs: `"${D}/${KRB5CONFIG}" --libs "${package}"` |
155 |
Cflags: `"${D}/${KRB5CONFIG}" --cflags "${package}"` |
156 |
EOF |
157 |
done |
158 |
|
159 |
|
146 |
} |
160 |
} |