Date: Friday, May 12, 2023 @ 08:37:49
  Author: mtorromeo
Revision: 1460085

archrelease: copy trunk to community-x86_64

Added:
  sssd/repos/community-x86_64/PKGBUILD
    (from rev 1460084, sssd/trunk/PKGBUILD)
  sssd/repos/community-x86_64/keys/

----------+
 PKGBUILD |  125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 125 insertions(+)

Copied: sssd/repos/community-x86_64/PKGBUILD (from rev 1460084, 
sssd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-05-12 08:37:49 UTC (rev 1460085)
@@ -0,0 +1,125 @@
+# Maintainer: Massimiliano Torromeo <[email protected]>
+# Maintainer: Mantas M. <[email protected]>
+
+pkgname=sssd
+pkgver=2.9.0
+pkgrel=1
+pkgdesc="System Security Services Daemon"
+arch=('x86_64')
+url="https://github.com/SSSD/sssd";
+license=('GPL3')
+depends=(
+  'bind'          # for nsupdate
+  'c-ares'
+  'cyrus-sasl-gssapi'
+  'ding-libs'
+  'libnl'
+  'libunistring'
+  'smbclient'     # for libndr-nbt
+  'nfsidmap'
+  'jansson'
+  'jose'
+  'libtevent.so'
+  'libldb.so'
+  'curl'
+  'pcre2'
+)
+makedepends=(
+  'docbook-xsl'
+  'doxygen'
+  'python'
+  'samba'         # for libndr-nbt headers
+  'systemd'
+  'tevent'
+  'ldb'
+  'bc'
+)
+checkdepends=(
+  'check'
+  'cmocka'
+  'libfaketime'
+  'openssh'
+  'softhsm'
+)
+options=('!lto')
+backup=('etc/logrotate.d/sssd')
+source=("https://github.com/SSSD/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
+        
"https://patch-diff.githubusercontent.com/raw/SSSD/sssd/pull/6724/file-watch-realpath.patch";)
+sha512sums=('cf65572cfa6468c4b3edc3a33a48ab6d58979917901662eb8b2d8fc5931494be81da13295246500a3a315b71d0395594c9a565014e5875f3cdde50da096f253d'
+            'SKIP'
+            
'778b448ab80cac2f225802746b1db53656ba7bde4deaca9596f0509ff4fb057a82812c43f7c7e5b70afcc7622ff61081f48a511d270376abb144f382c2d11ad0')
+validpgpkeys=('C13CD07FFB2DB1408E457A3CD3D21B2910CF6759')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  for f in "${source[@]}"; do
+    f=$(basename "$f")
+    if [[ $f == *.patch ]]; then
+      patch -p1 < "$srcdir/$f"
+    fi
+  done
+
+  sed -i 's#/var/run/#/run/#' src/examples/logrotate
+
+  # Fix issue with autoconf 2.70+
+  sed '/AM_PROG_CC_C_O/ i AC_PROG_CPP' -i configure.ac
+
+  # dbus policy files in /usr/share/dbus-1
+  sed -i 's/^dbuspolicydir = $(sysconfdir)/dbuspolicydir = $(datadir)/' 
Makefile.in
+
+  # fix search path for libsofthsm2.so
+  # see: https://github.com/SSSD/sssd/issues/5329
+  sed -i 's#/usr/lib64/pkcs11/libsofthsm2.so ##' src/external/test_ca.m4
+
+  # remove flaky network test
+  sed '/fail_over-tests/d' -i Makefile.am
+  autoreconf -fiv
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure \
+    --prefix=/usr                                 \
+    --sbindir=/usr/bin                            \
+    --sysconfdir=/etc                             \
+    --localstatedir=/var                          \
+    --libexecdir=/usr/lib/sssd                    \
+    --datadir=/usr/share                          \
+    --enable-pammoddir=/usr/lib/security          \
+    --enable-pac-responder                        \
+    --with-initscript=systemd                     \
+    --with-os=fedora                              \
+    --with-pid-path=/run                          \
+    --without-python2-bindings                    \
+    --with-python3-bindings                       \
+    --with-syslog=journald                        \
+    --without-selinux                             \
+    --without-semanage                            \
+    --with-systemdunitdir=/usr/lib/systemd/system \
+    ;
+  sed -i '/\<HAVE_KRB5_SET_TRACE_CALLBACK\>/d' config.h
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make check
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make -j1 DESTDIR="$pkgdir/" install
+  rm -rf "$pkgdir"/etc/rc.d
+  rm -rf "$pkgdir"/lib
+  rm -rf "$pkgdir"/run
+  rm -f "$pkgdir"/usr/lib/ldb/modules/ldb/memberof.la
+  find "$pkgdir"/usr -depth -type d \
+    -exec rmdir --ignore-fail-on-non-empty {} \;
+
+  install -Dm0644 src/examples/logrotate "$pkgdir/etc/logrotate.d/sssd"
+
+  cd "$srcdir"
+  rm -rf "$pkgdir/etc/systemd" # remove the drop-in
+}
+
+# vim: ts=2:sw=2:et:nowrap

Reply via email to