From b15b4cb00e7ad595236f68e52cdf54322b98ec7e Mon Sep 17 00:00:00 2001 From: Xavier Beaudouin Date: Tue, 3 Sep 2024 14:14:10 +0200 Subject: [PATCH] Update freeipa-client --- net/freeipa-client/Makefile | 47 ++++++++ net/freeipa-client/distinfo | 3 + .../files/patch-asn1_asn1c_INTEGER.c | 10 ++ .../files/patch-asn1_asn1c_NativeEnumerated.c | 10 ++ .../files/patch-asn1_asn1c_der__encoder.c | 10 ++ .../files/patch-client_Makefile.am | 11 ++ net/freeipa-client/files/patch-configure.ac | 112 ++++++++++++++++++ .../files/patch-daemons_Makefile.am | 14 +++ .../files/patch-init_Makefile.am | 11 ++ .../patch-ipaplatform_freebsd___init__.py | 4 + net/freeipa-client/pkg-descr | 4 + 11 files changed, 236 insertions(+) create mode 100644 net/freeipa-client/Makefile create mode 100644 net/freeipa-client/distinfo create mode 100644 net/freeipa-client/files/patch-asn1_asn1c_INTEGER.c create mode 100644 net/freeipa-client/files/patch-asn1_asn1c_NativeEnumerated.c create mode 100644 net/freeipa-client/files/patch-asn1_asn1c_der__encoder.c create mode 100644 net/freeipa-client/files/patch-client_Makefile.am create mode 100644 net/freeipa-client/files/patch-configure.ac create mode 100644 net/freeipa-client/files/patch-daemons_Makefile.am create mode 100644 net/freeipa-client/files/patch-init_Makefile.am create mode 100644 net/freeipa-client/files/patch-ipaplatform_freebsd___init__.py create mode 100644 net/freeipa-client/pkg-descr diff --git a/net/freeipa-client/Makefile b/net/freeipa-client/Makefile new file mode 100644 index 0000000..aa550ee --- /dev/null +++ b/net/freeipa-client/Makefile @@ -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 diff --git a/net/freeipa-client/distinfo b/net/freeipa-client/distinfo new file mode 100644 index 0000000..74bdf1b --- /dev/null +++ b/net/freeipa-client/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1725364321 +SHA256 (freeipa-4.12.2.tar.gz) = dc88f5404e7613eb6530d71142ef43a9f89019d59cdc6ec25b778413258c317f +SIZE (freeipa-4.12.2.tar.gz) = 5699673 diff --git a/net/freeipa-client/files/patch-asn1_asn1c_INTEGER.c b/net/freeipa-client/files/patch-asn1_asn1c_INTEGER.c new file mode 100644 index 0000000..7d8ad8d --- /dev/null +++ b/net/freeipa-client/files/patch-asn1_asn1c_INTEGER.c @@ -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 + #include /* Encoder and decoder of a primitive type */ + #include ++#include + + /* + * INTEGER basic type description. diff --git a/net/freeipa-client/files/patch-asn1_asn1c_NativeEnumerated.c b/net/freeipa-client/files/patch-asn1_asn1c_NativeEnumerated.c new file mode 100644 index 0000000..3776bdf --- /dev/null +++ b/net/freeipa-client/files/patch-asn1_asn1c_NativeEnumerated.c @@ -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 + #include ++#include + + /* + * NativeEnumerated basic type description. diff --git a/net/freeipa-client/files/patch-asn1_asn1c_der__encoder.c b/net/freeipa-client/files/patch-asn1_asn1c_der__encoder.c new file mode 100644 index 0000000..296af98 --- /dev/null +++ b/net/freeipa-client/files/patch-asn1_asn1c_der__encoder.c @@ -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 + #include ++#include + + 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); diff --git a/net/freeipa-client/files/patch-client_Makefile.am b/net/freeipa-client/files/patch-client_Makefile.am new file mode 100644 index 0000000..d839001 --- /dev/null +++ b/net/freeipa-client/files/patch-client_Makefile.am @@ -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 + diff --git a/net/freeipa-client/files/patch-configure.ac b/net/freeipa-client/files/patch-configure.ac new file mode 100644 index 0000000..16711b8 --- /dev/null +++ b/net/freeipa-client/files/patch-configure.ac @@ -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 diff --git a/net/freeipa-client/files/patch-daemons_Makefile.am b/net/freeipa-client/files/patch-daemons_Makefile.am new file mode 100644 index 0000000..28474b2 --- /dev/null +++ b/net/freeipa-client/files/patch-daemons_Makefile.am @@ -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) diff --git a/net/freeipa-client/files/patch-init_Makefile.am b/net/freeipa-client/files/patch-init_Makefile.am new file mode 100644 index 0000000..ba05d26 --- /dev/null +++ b/net/freeipa-client/files/patch-init_Makefile.am @@ -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 \ diff --git a/net/freeipa-client/files/patch-ipaplatform_freebsd___init__.py b/net/freeipa-client/files/patch-ipaplatform_freebsd___init__.py new file mode 100644 index 0000000..b1ed5b7 --- /dev/null +++ b/net/freeipa-client/files/patch-ipaplatform_freebsd___init__.py @@ -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' diff --git a/net/freeipa-client/pkg-descr b/net/freeipa-client/pkg-descr new file mode 100644 index 0000000..35880f7 --- /dev/null +++ b/net/freeipa-client/pkg-descr @@ -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