Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 185899 | Differences between
and this patch

Collapse All | Expand All

(-)heimdal-1.0.ebuild (-27 / +50 lines)
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/${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 \
64
		--libexecdir=/usr/sbin \
67
		--prefix="${KRB5_PREFIX}" \
65
		--includedir=/usr/include/heimdal \
68
		--libexecdir="${KRB5_PREFIX}"/sbin \
69
		--mandir=/usr/share/man \
70
		--infodir=/usr/share/info \
66
		${myconf} || die "econf failed"
71
		${myconf} || die "econf failed"
67
72
68
	emake || die "emake failed"
73
	emake || die "emake failed"
69
74
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
}
75
}
79
76
80
src_test() {
77
src_test() {
Lines 91-100 Link Here
91
src_install() {
88
src_install() {
92
	emake DESTDIR="${D}" install || die "emake install failed"
89
	emake DESTDIR="${D}" install || die "emake install failed"
93
90
94
	#dolib lib/kadm5/sample_passwd_check.so
95
96
	dodoc ChangeLog README NEWS TODO
91
	dodoc ChangeLog README NEWS TODO
97
92
93
	# Symlink executables into the system tree
94
	dodir /usr/bin
95
	for i in `ls "${D}/${KRB5_PREFIX}"/bin`; do
96
		ln -s "${KRB5_PREFIX}/bin/${i}" "${D}"/usr/bin/
97
	done
98
99
	dodir /usr/sbin
100
	for i in `ls "${D}/${KRB5_PREFIX}"/sbin`; do
101
		ln -s "${KRB5_PREFIX}/sbin/${i}" "${D}"/usr/sbin/
102
	done
103
98
	# Begin client rename and install
104
	# Begin client rename and install
99
	for i in {telnetd,ftpd,rshd}
105
	for i in {telnetd,ftpd,rshd}
100
	do
106
	do
Lines 111-130 Link Here
111
	mv "${D}"/usr/share/man/man5/{,k}ftpusers.5
117
	mv "${D}"/usr/share/man/man5/{,k}ftpusers.5
112
	mv "${D}"/usr/share/man/man5/{,k}login.access.5
118
	mv "${D}"/usr/share/man/man5/{,k}login.access.5
113
119
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
120
	# Hacky symlinks for silly old SASL checks
126
	dosym . /usr/include/heimdal/include
121
	#dosym . /usr/include/heimdal/include
127
	dosym /usr/lib /usr/include/heimdal/lib
122
	#dosym /usr/lib /usr/include/heimdal/lib
128
123
129
	doinitd "${GENTOODIR}"/configs/heimdal-kdc
124
	doinitd "${GENTOODIR}"/configs/heimdal-kdc
130
	doinitd "${GENTOODIR}"/configs/heimdal-kadmind
125
	doinitd "${GENTOODIR}"/configs/heimdal-kadmind
Lines 143-146 Link Here
143
138
144
	# default database dir
139
	# default database dir
145
	keepdir /var/heimdal
140
	keepdir /var/heimdal
141
142
	dodir /etc/env.d
143
	cat > "${D}"/etc/env.d/15heimdal <<-EOF
144
		PATH=${KRB5_PREFIX}/bin
145
		ROOTPATH=${KRB5_PREFIX}/sbin
146
		LDPATH=${KRB5_PREFIX}/lib
147
		MANDIR=/usr/share/man
148
		INFODIR=/usr/share/info
149
	EOF
150
151
	dodir /usr/lib/pkgconfig
152
	for library in krb5 gssapi kadm-client kadm-server kafs; do
153
		cat > "${D}"/usr/lib/pkgconfig/"${library}.pc" <<-EOF
154
			prefix=`"${D}/${KRB5CONFIG}" --prefix "${library}"`
155
			exec_prefix=`"${D}/${KRB5CONFIG}" --exec-prefix "${library}"`
156
			libdir=`"${D}/${KRB5CONFIG}" --libs |sed -e's/^-L\([^ ]*\)\($\| .*$\)/\1/'`
157
			includedir=`"${D}/${KRB5CONFIG}" --cflags |sed -e's/^-I\([^ ]*\)\($\| .*$\)/\1/'`
158
159
			Name: ${PN} ${library}
160
			Description: the $library part of ${PN}
161
			Version: ${PV}
162
			Requires:
163
			Libs: `"${D}/${KRB5CONFIG}" --libs "${library}"`
164
			Cflags: `"${D}/${KRB5CONFIG}" --cflags "${library}"`
165
		EOF
166
	done
167
168
146
}
169
}

Return to bug 185899