Update freeipa-client

This commit is contained in:
2024-09-03 14:14:10 +02:00
parent 611a04f2fb
commit b15b4cb00e
11 changed files with 236 additions and 0 deletions

View File

@ -0,0 +1,47 @@
PORTNAME= freeipa-client
DISTVERSION= 4.12.2
CATEGORIES= net
MASTER_SITES= https://releases.pagure.org/freeipa/
DISTNAME= freeipa-${DISTVERSION}
#WRKSRC= ${DISTNAME}
MAINTAINER= xavier.beaudouin@klarasystems.com
COMMENT= FreeIPA Client tools
WWW= https://www.freeipa.org/
LICENSE= GPLv3
USES= autoreconf libtool gmake gettext python pkgconfig gssapi:mit \
ldap
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
LIB_DEPENDS= libpopt.so:devel/popt \
libjansson.so:devel/jansson \
libnspr4.so:devel/nspr \
libnss3.so:security/nss \
libpwquality.so:security/libpwquality \
libcmocka.so:sysutils/cmocka \
libini_config.so:devel/ding-libs \
libcurl.so:ftp/curl \
libsasl2.so:security/cyrus-sasl2 \
libxmlrpc.so:net/xmlrpc-c
CFLAGS+= -I${PREFIX}/include
LDFLAGS+= -L${PREFIX}/lib
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --prefix=${PREFIX} --disable-server \
--with-ipaplatform=freebsd \
--disable-dependency-tracking \
--without-ipatests --without-server
post-patch:
@${RM} -rf ${WRKSRC}/client/systemd
@${RM} -rf ${WRKSRC}/daemons/dnssec
@${RM} -rf ${WRKSRC}/daemons/ipa-otpd
@${RM} -rf ${WRKSRC}/daemons/ipa-slapi-plugins
@${RM} -rf ${WRKSRC}/init/systemd
@${RM} -rf ${WRKSRC}/init/tmpfilesd
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1725364321
SHA256 (freeipa-4.12.2.tar.gz) = dc88f5404e7613eb6530d71142ef43a9f89019d59cdc6ec25b778413258c317f
SIZE (freeipa-4.12.2.tar.gz) = 5699673

View File

@ -0,0 +1,10 @@
--- asn1/asn1c/INTEGER.c.orig 2024-08-21 15:06:37 UTC
+++ asn1/asn1c/INTEGER.c
@@ -7,6 +7,7 @@
#include <INTEGER.h>
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */
#include <errno.h>
+#include <stdlib.h>
/*
* INTEGER basic type description.

View File

@ -0,0 +1,10 @@
--- asn1/asn1c/NativeEnumerated.c.orig 2024-08-21 15:06:37 UTC
+++ asn1/asn1c/NativeEnumerated.c
@@ -11,6 +11,7 @@
*/
#include <asn_internal.h>
#include <NativeEnumerated.h>
+#include <stdlib.h>
/*
* NativeEnumerated basic type description.

View File

@ -0,0 +1,10 @@
--- asn1/asn1c/der_encoder.c.orig 2024-08-21 15:06:37 UTC
+++ asn1/asn1c/der_encoder.c
@@ -4,6 +4,7 @@
*/
#include <asn_internal.h>
#include <errno.h>
+#include <stdlib.h>
static ssize_t der_write_TL(ber_tlv_tag_t tag, ber_tlv_len_t len,
asn_app_consume_bytes_f *cb, void *app_key, int constructed);

View File

@ -0,0 +1,11 @@
--- client/Makefile.am.orig 2024-08-21 15:06:37 UTC
+++ client/Makefile.am
@@ -94,8 +94,6 @@ SUBDIRS = \
SUBDIRS = \
share \
man \
- sysconfig \
- systemd \
$(NULL)
# init

View File

@ -0,0 +1,112 @@
--- configure.ac.orig 2024-08-21 15:06:37 UTC
+++ configure.ac
@@ -25,9 +25,12 @@ dnl fail hard when includes statements are missing
dnl Enable features like strndup()
CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200809L"
dnl fail hard when includes statements are missing
-CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
+dnl Removing this failing hard because on implicit declaration of
+dnl alloca() used several plaice in the code.
+dnl CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
AC_PROG_CC_C99
+AC_GNU_SOURCE
AC_DISABLE_STATIC
LT_INIT
@@ -211,14 +214,7 @@ SAVE_LIBS="$LIBS"
dnl - Check for libintl
dnl ---------------------------------------------------------------------------
SAVE_LIBS="$LIBS"
-LIBINTL_LIBS=
-AC_CHECK_HEADER(libintl.h, [], [AC_MSG_ERROR([libintl.h not found, please install xgettext])])
-AC_SEARCH_LIBS([bindtextdomain], [libintl],[], [])
-if test "x$ac_cv_search_bindtextdomain" = "xno" ; then
- AC_MSG_ERROR([libintl is not found and your libc does not support gettext, please install xgettext])
-elif test "x$ac_cv_search_bindtextdomain" != "xnone required" ; then
- LIBINTL_LIBS="$ac_cv_search_bindtextdomain"
-fi
+LIBINTL_LIBS="-lintl"
LIBS="$SAVELIBS"
AC_SUBST(LIBINTL_LIBS)
@@ -249,39 +245,13 @@ dnl --------------------------------------------------
AC_SUBST([runstatedir])
dnl ---------------------------------------------------------------------------
-dnl - Check for systemd directories
-dnl ---------------------------------------------------------------------------
-
-PKG_CHECK_EXISTS([systemd], [], [AC_MSG_ERROR([systemd not found])])
-AC_ARG_WITH([systemdsystemunitdir],
- AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
- [Directory for systemd service files]),
- [systemdsystemunitdir=$with_systemdsystemunitdir],
- [systemdsystemunitdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=systemdsystemunitdir systemd)])
-AC_SUBST([systemdsystemunitdir])
-
-AC_ARG_WITH([systemdtmpfilesdir],
- AS_HELP_STRING([--with-systemdtmpfilesdir=DIR],
- [Directory for systemd-tmpfiles configuration files]),
- [systemdtmpfilesdir=$with_systemdtmpfilesdir],
- [systemdtmpfilesdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=tmpfilesdir systemd)])
-AC_SUBST([systemdtmpfilesdir])
-
-AC_ARG_WITH([systemdcatalogdir],
- AS_HELP_STRING([--with-systemdcatalogdir=DIR],
- [Directory for systemd journal catalog files]),
- [systemdcatalogdir=$with_systemdcatalogdir],
- [systemdcatalogdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=catalogdir systemd)])
-AC_SUBST([systemdcatalogdir])
-
-dnl ---------------------------------------------------------------------------
dnl - Server-only configuration
dnl ---------------------------------------------------------------------------
-AM_COND_IF([ENABLE_SERVER], [
- m4_include(server.m4)
-])
-AM_CONDITIONAL([USE_SSS_NSS_TIMEOUT], [test "x$ac_cv_have_decl_sss_nss_getpwnam_timeout" = xyes])
+dnl AM_COND_IF([ENABLE_SERVER], [
+dnl m4_include(server.m4)
+dnl ])
+dnl AM_CONDITIONAL([USE_SSS_NSS_TIMEOUT], [test "x$ac_cv_have_decl_sss_nss_getpwnam_timeout" = xyes])
dnl ---------------------------------------------------------------------------
dnl - Check if IPA certauth plugin can be build
@@ -625,35 +595,11 @@ AC_CONFIG_FILES([
client/Makefile
client/share/Makefile
client/man/Makefile
- client/sysconfig/Makefile
- client/systemd/Makefile
contrib/completion/Makefile
contrib/Makefile
- daemons/dnssec/Makefile
daemons/Makefile
daemons/ipa-kdb/Makefile
daemons/ipa-sam/Makefile
- daemons/ipa-otpd/Makefile
- daemons/ipa-slapi-plugins/Makefile
- daemons/ipa-slapi-plugins/libotp/Makefile
- daemons/ipa-slapi-plugins/ipa-cldap/Makefile
- daemons/ipa-slapi-plugins/ipa-dns/Makefile
- daemons/ipa-slapi-plugins/ipa-enrollment/Makefile
- daemons/ipa-slapi-plugins/ipa-graceperiod/Makefile
- daemons/ipa-slapi-plugins/ipa-lockout/Makefile
- daemons/ipa-slapi-plugins/ipa-otp-counter/Makefile
- daemons/ipa-slapi-plugins/ipa-otp-lasttoken/Makefile
- daemons/ipa-slapi-plugins/ipa-pwd-extop/Makefile
- daemons/ipa-slapi-plugins/ipa-extdom-extop/Makefile
- daemons/ipa-slapi-plugins/ipa-winsync/Makefile
- daemons/ipa-slapi-plugins/ipa-version/Makefile
- daemons/ipa-slapi-plugins/ipa-uuid/Makefile
- daemons/ipa-slapi-plugins/ipa-modrdn/Makefile
- daemons/ipa-slapi-plugins/ipa-sidgen/Makefile
- daemons/ipa-slapi-plugins/ipa-range-check/Makefile
- daemons/ipa-slapi-plugins/topology/Makefile
- init/systemd/Makefile
- init/tmpfilesd/Makefile
init/Makefile
install/Makefile
install/certmonger/Makefile

View File

@ -0,0 +1,14 @@
--- daemons/Makefile.am.orig 2023-08-21 16:29:00.040643147 +0200
+++ daemons/Makefile.am 2023-10-24 17:56:44.164932000 +0200
@@ -9,11 +9,8 @@
SUBDIRS = \
. \
- dnssec \
ipa-kdb \
- ipa-slapi-plugins \
ipa-sam \
- ipa-otpd \
$(NULL)
ipa-version.h: ipa-version.h.in $(top_builddir)/$(CONFIG_STATUS)

View File

@ -0,0 +1,11 @@
--- init/Makefile.am.orig 2023-10-24 17:29:14.662539000 +0200
+++ init/Makefile.am 2023-10-24 17:29:28.779983000 +0200
@@ -2,7 +2,7 @@
#
AUTOMAKE_OPTIONS = 1.7
-SUBDIRS = systemd tmpfilesd
+#SUBDIRS = systemd tmpfilesd
dist_sysconfenv_DATA = \
ipa-dnskeysyncd \

View File

@ -0,0 +1,4 @@
--- /dev/null 2023-10-25 10:42:48.658581000 +0200
+++ ipaplatform/freebsd/__init__.py 2023-10-25 10:42:03.380066000 +0200
@@ -0,0 +1 @@
+NAME = 'freebsd'

View File

@ -0,0 +1,4 @@
Domoticz is a Home Automation System that lets you monitor and configure
various devices like: Lights, Switches, various sensors/meters like
Temperature, Rain, Wind, UV, Electra, Gas, Water and much more.
Notifications/Alerts can be sent to any mobile device