[arch-commits] Commit in sssd/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 20:08:39 UTC 2020
Date: Thursday, November 12, 2020 @ 20:08:39
Author: foutrelis
Revision: 753698
archrelease: copy trunk to community-staging-x86_64
Added:
sssd/repos/community-staging-x86_64/
sssd/repos/community-staging-x86_64/PKGBUILD
(from rev 753697, sssd/trunk/PKGBUILD)
----------+
PKGBUILD | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 116 insertions(+)
Copied: sssd/repos/community-staging-x86_64/PKGBUILD (from rev 753697, sssd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-12 20:08:39 UTC (rev 753698)
@@ -0,0 +1,116 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Maintainer: Mantas M. <grawity at gmail.com>
+
+pkgname=sssd
+pkgver=2.4.0
+pkgrel=2
+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'
+ 'libtevent.so'
+ 'libldb.so'
+)
+makedepends=(
+ 'docbook-xsl'
+ 'doxygen'
+ 'python'
+ 'samba' # for libndr-nbt headers
+ 'systemd'
+ 'tevent'
+ 'ldb'
+)
+checkdepends=(
+ 'check'
+ 'cmocka'
+ 'libfaketime'
+ 'openssh'
+ 'softhsm'
+)
+backup=('etc/logrotate.d/sssd')
+source=("https://github.com/SSSD/$pkgname/releases/download/$pkgname-${pkgver//./_}/$pkgname-$pkgver.tar.gz"{,.asc})
+sha512sums=('d9a4b17665ce3a1ea51cfe2fdb53818ac1e265a33c61f657f61699ecc716e1244e45b5b628aeae6c54e601383084f3cac327cb3edd7bea80bca397b1fbe4ab72'
+ 'SKIP')
+validpgpkeys=('E4E366758CA0716AAB8048671EC6AB7532E7BC25'
+ '16F24229488E736048952737BA88000FE6398272'
+ '1A41DC67505F89A330828B66AFFE75DDE8508E12')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ for f in "${source[@]}"; do
+ if [[ $f == *.patch ]]; then
+ patch -p1 < "$srcdir/$f"
+ fi
+ done
+
+ sed -i 's#/var/run/#/run/#' src/examples/logrotate
+
+ # 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
More information about the arch-commits
mailing list