From fcdd4726d9b7072bb140e9d8b4afc1ebd383da32 Mon Sep 17 00:00:00 2001 From: Release Configuration Management Date: Tue, 18 Mar 2025 03:25:42 -0400 Subject: [PATCH] - Initial commit on c9s Resolves: RHEL-83144 --- .gitignore | 2 + bind9.18-dyndb-ldap.spec | 134 +++++++++++++++++++++++++++++++++++++++ gating.yaml | 7 ++ sources | 2 + 4 files changed, 145 insertions(+) create mode 100644 bind9.18-dyndb-ldap.spec create mode 100644 gating.yaml create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..519dc5a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/bind-dyndb-ldap-11.11.tar.bz2 +/bind-dyndb-ldap-11.11.tar.bz2.asc diff --git a/bind9.18-dyndb-ldap.spec b/bind9.18-dyndb-ldap.spec new file mode 100644 index 0000000..e58da12 --- /dev/null +++ b/bind9.18-dyndb-ldap.spec @@ -0,0 +1,134 @@ +%global upname bind-dyndb-ldap + +%define VERSION %{version} + +%define bind_name bind9.18 +%define bind_version 32:9.18.29-2 + +%if 0%{?fedora} >= 31 || 0%{?rhel} > 8 +%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10 + %global openssl_pkcs11_version 0.3 + %global openssl_pkcs11_name pkcs11-provider + %global softhsm_version 2.6.1 +%else + %global openssl_pkcs11_version 0.4.10-6 + %global openssl_pkcs11_name openssl-pkcs11 + %global softhsm_version 2.5.0-4 +%endif +%else + %global with_bind_pkcs11 1 +%endif + +Name: bind9.18-dyndb-ldap +Version: 11.11 +Release: 3%{?dist} +Summary: LDAP back-end plug-in for BIND + +License: GPLv2+ +URL: https://releases.pagure.org/bind-dyndb-ldap +Source0: https://releases.pagure.org/%{upname}/%{upname}-%{VERSION}.tar.bz2 +Source1: https://releases.pagure.org/%{upname}/%{upname}-%{VERSION}.tar.bz2.asc + +BuildRequires: %{bind_name}-devel >= %{bind_version}, %{bind_name}-lite-devel >= %{bind_version} +BuildRequires: krb5-devel +BuildRequires: openldap-devel +BuildRequires: libuuid-devel +BuildRequires: automake, autoconf, libtool +BuildRequires: autoconf-archive + +Provides: bind-dyndb-ldap = %{version}-%{release} + +# https://bugzilla.redhat.com/show_bug.cgi?id=2165256 +Conflicts: bind9-next + +%if %{with bind_pkcs11} +BuildRequires: %{bind_name}-pkcs11-devel >= %{bind_version} +BuildRequires: make +Requires(pre): %{bind_name}-pkcs11 >= %{bind_version} +Requires: %{bind_name}-pkcs11 >= %{bind_version} +Requires: %{bind_name}-pkcs11-utils >= %{bind_version} +%else +Requires: softhsm >= %{softhsm_version} +Requires: %{openssl_pkcs11_name} >= %{openssl_pkcs11_version} +Requires(pre): %{bind_name} >= %{bind_version} +Requires: %{bind_name} >= %{bind_version} +%endif + +%description +This package provides an LDAP back-end plug-in for BIND. It features +support for dynamic updates and internal caching, to lift the load +off of your LDAP server. + + +%prep +%autosetup -n %{upname}-%{VERSION} -p1 + +%build +autoreconf -fiv +export BIND9_CFLAGS='-I /usr/include/bind9 -DHAVE_TLS -DHAVE_THREAD_LOCAL' +%configure +%make_build + + +%install +%make_install +mkdir -m 770 -p %{buildroot}/%{_localstatedir}/named/dyndb-ldap + +# Remove unwanted files +rm %{buildroot}%{_libdir}/bind/ldap.la +rm -r %{buildroot}%{_datadir}/doc/%{upname} + + +%post +[ -f /etc/named.conf ] || exit 0 + +# Transform named.conf if it still has old-style API. +PLATFORM=$(uname -m) + +if [ $PLATFORM == "x86_64" ] ; then + LIBPATH=/usr/lib64 +else + LIBPATH=/usr/lib +fi + +# The following sed script: +# - scopes the named.conf changes to dynamic-db +# - replaces arg "name value" syntax with name "value" +# - changes dynamic-db header to dyndb +# - uses the new way the define path to the library +# - removes no longer supported arguments (library, cache_ttl, +# psearch, serial_autoincrement, zone_refresh) +while read -r PATTERN +do + SEDSCRIPT+="$PATTERN" +done < - 11.11-3 +- Initial commit on c9s + Resolves: RHEL-83144 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..6ab516d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +# recipients: abokovoy, frenaud, kaleem, ftrivino +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: idm-ci.brew-build.tier1.functional} diff --git a/sources b/sources new file mode 100644 index 0000000..5c8bee8 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (bind-dyndb-ldap-11.11.tar.bz2) = c04792e05317e83eaddf08d751cc9887a0ecb13705c84399b3165790e23661a7b85f12c201cfb74aecf3f549b8053b6a87426d9f21431dd4bdce316b4ff835bb +SHA512 (bind-dyndb-ldap-11.11.tar.bz2.asc) = 695b8af4de49f6f0b36ab06d22f609cddfd92fcc41958b396ab3d8cb4aa8e006e931388cb7339fc2306a705bcf8846660a03339dc79716e04e6ecdc0f1124b5e