Contents of /smage/branches/alx07x-stable/extras/krb5/krb5-1.18.2-r2.smage2
Parent Directory | Revision Log
Revision 15599 -
(show annotations)
(download)
Tue Sep 15 10:56:56 2020 UTC (3 years, 8 months ago) by niro
Original Path: smage/branches/alx07x-unstable/extras/krb5/krb5-1.18.2-r2.smage2
File size: 2973 byte(s)
Tue Sep 15 10:56:56 2020 UTC (3 years, 8 months ago) by niro
Original Path: smage/branches/alx07x-unstable/extras/krb5/krb5-1.18.2-r2.smage2
File size: 2973 byte(s)
-release branches/alx07x-unstable
1 | # $Id$ |
2 | |
3 | PNAME="krb5" |
4 | PVER="1.18.2" |
5 | PBUILD="r2" |
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-libs-1.43 |
20 | >= net-nds/libldap-2.4" |
21 | |
22 | ALX_DEV_DEPEND=">= dev-libs/libverto-dev-0.3 |
23 | >= sys-apps/keyutils-dev-1.6 |
24 | >= sys-fs/e2fsprogs-libs-dev-1.43 |
25 | >= sys-fs/e2fsprogs-dev-1.43 |
26 | >= net-nds/libldap-dev-2.4" |
27 | |
28 | SDEPEND=">= dev-lang/perl-5 |
29 | >= sys-dev/bison-3.2 |
30 | ${ALX_DEV_DEPEND}" |
31 | |
32 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
33 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
34 | |
35 | sminclude multilib mtools systemd |
36 | |
37 | SRC_URI=( |
38 | https://kerberos.org/dist/${PNAME}/${PVER%.*}/${SRCFILE} |
39 | mirror://${PNAME}/${SRCFILE} |
40 | mirror://${PNAME}/krb5-kadmind.service |
41 | mirror://${PNAME}/krb5-kdc.service |
42 | mirror://${PNAME}/krb5-kpropd.service |
43 | mirror://${PNAME}/krb5-kpropd.socket |
44 | mirror://${PNAME}/krb5-kpropd@.service |
45 | mirror://${PNAME}/${PNAME}-1.11-krb5-config-ldflags.patch |
46 | ) |
47 | |
48 | UP2DATE="updatecmd https://kerberos.org/dist/ | highesttarball gz" |
49 | |
50 | src_prepare() |
51 | { |
52 | munpack ${SRCFILE} || die |
53 | |
54 | # do not show build flags when calling krb5-config --libs |
55 | mpatch ${PNAME}-1.11-krb5-config-ldflags.patch || die |
56 | |
57 | # install krb5.m4 |
58 | sed -i "/KRB5ROOT=/s/\/local//" src/util/ac_check_krb5.m4 || die |
59 | } |
60 | |
61 | src_compile() |
62 | { |
63 | export CFLAGS+=" -fPIC -fno-strict-aliasing -fstack-protector-all" |
64 | export CPPFLAGS+=" -I/usr/include/et" |
65 | |
66 | SRCSUBDIR="src" \ |
67 | mconfigure \ |
68 | --enable-shared \ |
69 | --disable-rpath \ |
70 | --with-system-et \ |
71 | --with-system-ss \ |
72 | --with-system-verto \ |
73 | --with-ldap \ |
74 | --without-tcl \ |
75 | --enable-dns-for-realm \ |
76 | || die |
77 | |
78 | SRCSUBDIR="src" mmake || die |
79 | } |
80 | |
81 | src_install() |
82 | { |
83 | SRCSUBDIR="src" mmake DESTDIR=${BINDIR} install || die |
84 | |
85 | # honor multilib setups |
86 | if [[ $(mlibdir) != lib ]] |
87 | then |
88 | SRCSUBDIR="src" all-abis minstallexec build-tools/krb5-config /usr/bin/krb5-config-$(mabi) || die |
89 | mdelete /usr/bin/krb5-config || die |
90 | mlink multiarch-wrapper /usr/bin/krb5-config || die |
91 | fi |
92 | |
93 | # configs |
94 | minstalldir /etc || die |
95 | minstallfile config-files/krb5.conf /etc || die |
96 | minstalldir /var/lib/krb5kdc || die |
97 | minstallfile config-files/kdc.conf /var/lib/krb5kdc/ || die |
98 | |
99 | # provide some examples |
100 | minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die |
101 | minstallfile plugins/kdb/ldap/libkdb_ldap/kerberos.ldif /usr/share/doc/${PNAME}-${PVER}/examples/ || die |
102 | minstallfile plugins/kdb/ldap/libkdb_ldap/kerberos.schema /usr/share/doc/${PNAME}-${PVER}/examples/ || die |
103 | |
104 | # missing aclocal |
105 | minstalldir /usr/share/aclocal || die |
106 | minstallfile util/ac_check_krb5.m4 /usr/share/aclocal/ || die |
107 | |
108 | # systemd |
109 | minstallunit krb5-kadmind.service || die |
110 | minstallunit krb5-kdc.service || die |
111 | minstallunit krb5-kpropd.service || die |
112 | minstallunit krb5-kpropd.socket || die |
113 | minstallunit krb5-kpropd@.service || die |
114 | |
115 | minstalldocs NOTICE README || die |
116 | } |