summaryrefslogtreecommitdiff
path: root/repo/system/krb5.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
commitcb447620084a20be80d116c81c2e9ec110be7118 (patch)
tree9fc0d714abbb5c6326b60616a5fd27ec9f984895 /repo/system/krb5.xibuild
parent153011e9129c6055ef21c48caf65a23e74a91418 (diff)
restructured repo system
Diffstat (limited to 'repo/system/krb5.xibuild')
-rw-r--r--repo/system/krb5.xibuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/repo/system/krb5.xibuild b/repo/system/krb5.xibuild
new file mode 100644
index 0000000..8769e1f
--- /dev/null
+++ b/repo/system/krb5.xibuild
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+DEPS=(glibc e2fsprogs libldap keyutils)
+
+SOURCE=https://kerberos.org/dist/krb5/1.19/krb5-1.19.2.tar.gz
+DESC="The Kerberos network authentication system"
+
+build () {
+ # fix denial of service vulnerability
+ sed -i '210a if (sprinc == NULL) {\
+ status = "NULL_SERVER";\
+ errcode = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN;\
+ goto cleanup;\
+ }' src/kdc/do_tgs_req.c
+
+ cd src &&
+
+ sed -i -e 's@\^u}@^u cols 300}@' tests/dejagnu/config/default.exp &&
+ sed -i -e '/eq 0/{N;s/12 //}' plugins/kdb/db2/libdb2/test/run.test &&
+ sed -i '/t_iprop.py/d' tests/Makefile.in &&
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --runstatedir=/run \
+ --with-system-et \
+ --with-system-ss \
+ --with-system-verto=no \
+ --enable-dns-for-realm &&
+ make
+ make DESTDIR=$PKG_DEST install
+
+ install -v -dm755 $PKG_DEST/usr/share/doc/krb5-1.19.2 &&
+ cp -vfr ../doc/* $PKG_DEST/usr/share/doc/krb5-1.19.2
+}