Annotation of /trunk/extras/krb5/krb5-1.16.2-r3.smage2
Parent Directory | Revision Log
Revision 31790 -
(hide annotations)
(download)
Tue Dec 11 13:00:03 2018 UTC (5 years, 6 months ago) by niro
File size: 2693 byte(s)
Tue Dec 11 13:00:03 2018 UTC (5 years, 6 months ago) by niro
File size: 2693 byte(s)
-krb5-config: honor multilib setups
1 | niro | 31790 | # $Id$ |
2 | |||
3 | PNAME="krb5" | ||
4 | PVER="1.16.2" | ||
5 | PBUILD="r3" | ||
6 | |||
7 | PCAT="net-nds" | ||
8 | |||
9 | DESCRIPTION="Kerberos: The Network Authentication Protocol." | ||
10 | HOMEPAGE="https://web.mit.edu/kerberos/" | ||
11 | |||
12 | DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1" | ||
13 | SPECIAL_VARS="DEPEND_x86_64" | ||
14 | |||
15 | # e2fsprogs for ss && et support | ||
16 | DEPEND="$(marchdepend) | ||
17 | >= dev-libs/libverto-0.3 | ||
18 | >= sys-apps/keyutils-1.6 | ||
19 | >= sys-fs/e2fsprogs-1.43 | ||
20 | >= net-nds/libldap-2.4" | ||
21 | |||
22 | SDEPEND=">= dev-lang/perl-5 | ||
23 | >= sys-dev/bison-3.2" | ||
24 | |||
25 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
27 | |||
28 | sminclude multilib mtools systemd | ||
29 | |||
30 | SRC_URI=( | ||
31 | https://kerberos.org/dist/${PNAME}/${PVER%.*}/${SRCFILE} | ||
32 | mirror://${PNAME}/${SRCFILE} | ||
33 | mirror://${PNAME}/krb5-kadmind.service | ||
34 | mirror://${PNAME}/krb5-kdc.service | ||
35 | mirror://${PNAME}/krb5-kpropd.service | ||
36 | mirror://${PNAME}/krb5-kpropd.socket | ||
37 | mirror://${PNAME}/krb5-kpropd@.service | ||
38 | mirror://${PNAME}/${PNAME}-1.11-krb5-config-ldflags.patch | ||
39 | ) | ||
40 | |||
41 | UP2DATE="updatecmd https://kerberos.org/dist/ | highesttarball gz" | ||
42 | |||
43 | src_prepare() | ||
44 | { | ||
45 | munpack ${SRCFILE} || die | ||
46 | |||
47 | # do not show build flags when calling krb5-config --libs | ||
48 | mpatch ${PNAME}-1.11-krb5-config-ldflags.patch || die | ||
49 | } | ||
50 | |||
51 | src_compile() | ||
52 | { | ||
53 | export CFLAGS+=" -fPIC -fno-strict-aliasing -fstack-protector-all" | ||
54 | export CPPFLAGS+=" -I/usr/include/et" | ||
55 | |||
56 | SRCSUBDIR="src" \ | ||
57 | mconfigure \ | ||
58 | --enable-shared \ | ||
59 | --disable-rpath \ | ||
60 | --with-system-et \ | ||
61 | --with-system-ss \ | ||
62 | --with-system-verto \ | ||
63 | --with-ldap \ | ||
64 | --without-tcl \ | ||
65 | --enable-dns-for-realm \ | ||
66 | || die | ||
67 | |||
68 | SRCSUBDIR="src" mmake || die | ||
69 | } | ||
70 | |||
71 | src_install() | ||
72 | { | ||
73 | SRCSUBDIR="src" mmake DESTDIR=${BINDIR} install || die | ||
74 | |||
75 | # honor multilib setups | ||
76 | if [[ $(mlibdir) != lib ]] | ||
77 | then | ||
78 | SRCSUBDIR="src" all-abis minstallexec build-tools/krb5-config /usr/bin/krb5-config-$(mabi) || die | ||
79 | mdelete /usr/bin/krb5-config || die | ||
80 | mlink multiarch-wrapper /usr/bin/krb5-config || die | ||
81 | fi | ||
82 | |||
83 | # configs | ||
84 | minstalldir /etc || die | ||
85 | minstallfile config-files/krb5.conf /etc || die | ||
86 | minstalldir /var/lib/krb5kdc || die | ||
87 | minstallfile config-files/kdc.conf /var/lib/krb5kdc/ || die | ||
88 | |||
89 | # provide some examples | ||
90 | minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die | ||
91 | minstallfile plugins/kdb/ldap/libkdb_ldap/kerberos.ldif /usr/share/doc/${PNAME}-${PVER}/examples/ || die | ||
92 | minstallfile plugins/kdb/ldap/libkdb_ldap/kerberos.schema /usr/share/doc/${PNAME}-${PVER}/examples/ || die | ||
93 | |||
94 | # missing aclocal | ||
95 | minstalldir /usr/share/aclocal || die | ||
96 | minstallfile util/ac_check_krb5.m4 /usr/share/aclocal/ || die | ||
97 | |||
98 | # systemd | ||
99 | minstallunit krb5-kadmind.service || die | ||
100 | minstallunit krb5-kdc.service || die | ||
101 | minstallunit krb5-kpropd.service || die | ||
102 | minstallunit krb5-kpropd.socket || die | ||
103 | minstallunit krb5-kpropd@.service || die | ||
104 | |||
105 | minstalldocs NOTICE README || die | ||
106 | } |