summaryrefslogtreecommitdiff
path: root/repo/system/krb5.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
commit003727289cc45e29eff0c0c48ad0f9660f96644f (patch)
tree0fd7f0ac830dee29984262980b8c144e26aa09ba /repo/system/krb5.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/system/krb5.xibuild')
-rw-r--r--repo/system/krb5.xibuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/repo/system/krb5.xibuild b/repo/system/krb5.xibuild
index c4f3abe..2012fbc 100644
--- a/repo/system/krb5.xibuild
+++ b/repo/system/krb5.xibuild
@@ -6,7 +6,7 @@ PKG_VER=1.19.2
SOURCE=https://kerberos.org/dist/krb5/$(echo $PKG_VER | cut -d. -f-2)/krb5-$PKG_VER.tar.gz
DESC="The Kerberos network authentication system"
-build () {
+patch () {
# fix denial of service vulnerability
sed -i '210a if (sprinc == NULL) {\
status = "NULL_SERVER";\
@@ -19,7 +19,9 @@ build () {
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 &&
+}
+build () {
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
@@ -29,6 +31,9 @@ build () {
--with-system-verto=no \
--enable-dns-for-realm &&
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
install -v -dm755 $PKG_DEST/usr/share/doc/krb5-$PKG_VER &&