Krb5 (#893)
* libdb: enable 1.85 compat api for krb5 * krb5: improve package remove dependency on c-ares use external shared libdb use sample confs for defaults provide check_krb5 aclocal fix krb5-config --libs * krb5: change defaults in kdc.conf
This commit is contained in:
parent
b81361aaa4
commit
0812ad2a2c
@ -1,12 +1,20 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://web.mit.edu/kerberos
|
||||
TERMUX_PKG_DESCRIPTION="The Kerberos network authentication system"
|
||||
TERMUX_PKG_VERSION=1.15.1
|
||||
TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, readline, c-ares, openssl, libutil"
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, readline, openssl, libutil, libdb"
|
||||
TERMUX_PKG_SRCURL="https://web.mit.edu/kerberos/dist/krb5/1.15/krb5-$TERMUX_PKG_VERSION.tar.gz"
|
||||
TERMUX_PKG_SHA256=437c8831ddd5fde2a993fef425dedb48468109bb3d3261ef838295045a89eb45
|
||||
TERMUX_PKG_FOLDERNAME="krb5-$TERMUX_PKG_VERSION/src"
|
||||
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-readline --with-netlib=-lcares --without-system-verto"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-readline
|
||||
--without-system-verto
|
||||
--with-netlib=-lc
|
||||
--enable-dns-for-realm
|
||||
--sbindir=$TERMUX_PREFIX/bin
|
||||
--with-size-optimizations
|
||||
--with-system-db
|
||||
"
|
||||
|
||||
termux_step_pre_configure () {
|
||||
# cannot test these when cross compiling
|
||||
@ -19,3 +27,15 @@ termux_step_pre_configure () {
|
||||
|
||||
LDFLAGS="$LDFLAGS -landroid-glob -llog"
|
||||
}
|
||||
|
||||
termux_step_post_make_install () {
|
||||
# Sample KDC config file
|
||||
install -dm 700 $TERMUX_PREFIX/var/krb5kdc
|
||||
install -pm 600 $TERMUX_PKG_SRCDIR/config-files/kdc.conf $TERMUX_PREFIX/var/krb5kdc/kdc.conf
|
||||
|
||||
# Default configuration file
|
||||
install -pm 600 $TERMUX_PKG_SRCDIR/config-files/krb5.conf $TERMUX_PREFIX/etc/krb5.conf
|
||||
|
||||
install -dm 700 $TERMUX_PREFIX/share/aclocal
|
||||
install -m 600 $TERMUX_PKG_SRCDIR/util/ac_check_krb5.m4 $TERMUX_PREFIX/share/aclocal
|
||||
}
|
||||
|
24
packages/krb5/config-files-kdc.conf.patch
Normal file
24
packages/krb5/config-files-kdc.conf.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- ./config-files/kdc.conf 2017-03-03 03:36:02.000000000 +0530
|
||||
+++ ../kdc.conf 2017-04-02 20:29:55.296108766 +0530
|
||||
@@ -1,14 +1,14 @@
|
||||
[kdcdefaults]
|
||||
- kdc_listen = 88
|
||||
- kdc_tcp_listen = 88
|
||||
+ kdc_listen = 1088
|
||||
+ kdc_tcp_listen = 1088
|
||||
|
||||
[realms]
|
||||
ATHENA.MIT.EDU = {
|
||||
- database_name = /usr/local/var/krb5kdc/principal
|
||||
- acl_file = /usr/local/var/krb5kdc/kadm5.acl
|
||||
- key_stash_file = /usr/local/var/krb5kdc/.k5.ATHENA.MIT.EDU
|
||||
- kdc_listen = 88
|
||||
- kdc_tcp_listen = 88
|
||||
+ database_name = @TERMUX_PREFIX@/var/krb5kdc/principal
|
||||
+ acl_file = @TERMUX_PREFIX@/var/krb5kdc/kadm5.acl
|
||||
+ key_stash_file = @TERMUX_PREFIX@/var/krb5kdc/.k5.ATHENA.MIT.EDU
|
||||
+ kdc_listen = 1088
|
||||
+ kdc_tcp_listen = 1088
|
||||
max_life = 10h 0m 0s
|
||||
max_renewable_life = 7d 0h 0m 0s
|
||||
}
|
12
packages/krb5/krb5-config_LDFLAGS.patch
Normal file
12
packages/krb5/krb5-config_LDFLAGS.patch
Normal file
@ -0,0 +1,12 @@
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=448778
|
||||
--- ./build-tools/krb5-config.in 2012-12-18 02:47:04.000000000 +0000
|
||||
+++ ./build-tools/krb5-config.in 2012-12-28 07:13:16.582693363 +0000
|
||||
@@ -217,7 +217,7 @@
|
||||
-e 's#\$(PROG_RPATH)#'$libdir'#' \
|
||||
-e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \
|
||||
-e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \
|
||||
- -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \
|
||||
+ -e 's#\$(LDFLAGS)##' \
|
||||
-e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \
|
||||
-e 's#\$(CFLAGS)##'`
|
||||
|
44
packages/krb5/plugins-kdb-db2.patch
Normal file
44
packages/krb5/plugins-kdb-db2.patch
Normal file
@ -0,0 +1,44 @@
|
||||
--- ./plugins/kdb/db2/policy_db.h 2017-03-03 03:36:02.000000000 +0530
|
||||
+++ ../policy_db.h 2017-04-02 09:46:43.244368060 +0530
|
||||
@@ -30,7 +30,7 @@
|
||||
where we find u_int32_t. */
|
||||
#include <gssrpc/types.h>
|
||||
#include <gssrpc/xdr.h>
|
||||
-#include <db.h>
|
||||
+#include <db_185.h>
|
||||
#include "adb_err.h"
|
||||
#include <com_err.h>
|
||||
|
||||
--- ./plugins/kdb/db2/adb_openclose.c 2017-03-03 03:36:02.000000000 +0530
|
||||
+++ ../adb_openclose.c 2017-04-02 09:50:13.854729855 +0530
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <unistd.h>
|
||||
#include "policy_db.h"
|
||||
#include <stdlib.h>
|
||||
-#include <db.h>
|
||||
+#include <db_185.h>
|
||||
|
||||
struct _locklist {
|
||||
osa_adb_lock_ent lockinfo;
|
||||
--- ./plugins/kdb/db2/db2_exp.c 2017-03-03 03:36:02.000000000 +0530
|
||||
+++ ../db2_exp.c 2017-04-02 09:51:07.528042151 +0530
|
||||
@@ -38,7 +38,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
-#include <db.h>
|
||||
+#include <db_185.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <utime.h>
|
||||
--- ./plugins/kdb/db2/kdb_db2.c 2017-03-03 03:36:02.000000000 +0530
|
||||
+++ ../kdb_db2.c 2017-04-02 09:52:14.924568844 +0530
|
||||
@@ -57,7 +57,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
-#include <db.h>
|
||||
+#include <db_185.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <utime.h>
|
@ -2,11 +2,13 @@ TERMUX_PKG_HOMEPAGE=https://www.oracle.com/database/berkeley-db
|
||||
TERMUX_PKG_DESCRIPTION="The Berkeley DB embedded database system (library)"
|
||||
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
|
||||
TERMUX_PKG_VERSION=6.2.23
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=http://download.oracle.com/berkeley-db/db-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=47612c8991aa9ac2f6be721267c8d3cdccf5ac83105df8e50809daea24e95dc7
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--enable-hash
|
||||
--enable-smallbuild
|
||||
--enable-compat185
|
||||
db_cv_atomic=gcc-builtin
|
||||
"
|
||||
TERMUX_PKG_RM_AFTER_INSTALL="docs"
|
||||
|
Loading…
Reference in New Issue
Block a user