🔒 Repository is read-only – file editing is disabled.

recipes/utils/cyrus-sasl/PAGBUILD.yaml main

55 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
pkgname: cyrus-sasl
pkgver: '2.1.28'
pkgrel: '8'
pkgdesc: Cyrus saslauthd SASL authentication daemon
url: 'https://cyrusimap.org/'
arch: x86_64
depends: []
makedepends:
- db
- automake
- libtool
- libxcrypt
source:
- cyrus-sasl-2.1.28-gcc15_fixes-1.patch
- 'https://github.com/cyrusimap/${pkgname}/archive/refs/tags/${pkgname}-${pkgver}.tar.gz'
- 'https://repo.paganlinux.eu/sources/pagan-scripts-20260822.tar.gz'
sha256sums:
- SKIP
- SKIP
- 32e0aec88cc56a8afe0b2671debe47d19357792a6ffaffaf6e3db8a021a57072
build: |
  cd ${pkgname}-${pkgver}
  patch -Np1 -i ../cyrus-sasl-2.1.28-gcc15_fixes-1.patch
  autoreconf -fiv
  sed '/saslint/a   #include <time.h>' -i lib/saslutil.c
  sed '/plugin_common/a #include <time.h>' -i plugins/cram.c

  ./configure --prefix=/usr \
              --sbindir=/usr/bin \
              --sysconfdir=/etc \
              --mandir=/usr/share/man \
              --enable-auth-sasldb \
              --with-dbpath=/var/lib/sasl/sasldb2 \
              --with-saslauthd=/var/run/saslauthd

  make
  make DESTDIR=${PKGDIR} install
  install -v -m700 -d ${PKGDIR}/var/lib/sasl ${PKGDIR}/var/run/saslauthd

  # Obsolete libs
  rm -f ${PKGDIR}/usr/lib/libsasl2.la
  rm -f ${PKGDIR}/usr/lib/sasl2/libanonymous.la
  rm -f ${PKGDIR}/usr/lib/sasl2/libcrammd5.la
  rm -f ${PKGDIR}/usr/lib/sasl2/libdigestmd5.la
  rm -f ${PKGDIR}/usr/lib/sasl2/libotp.la
  rm -f ${PKGDIR}/usr/lib/sasl2/libplain.la
  rm -f ${PKGDIR}/usr/lib/sasl2/libsasldb.la
  rm -f ${PKGDIR}/usr/lib/sasl2/libscram.la

  # Service
  cd ../pagan-scripts-20260822
  make DESTDIR=${PKGDIR} install-sysd-saslauthd

package: |
  true