98 lines
3.1 KiB
Bash
98 lines
3.1 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=krb5
|
|
_pkgvermajor=1.21
|
|
pkgver=1.21.2
|
|
pkgrel=02
|
|
pkgdesc='The Kerberos network authentication system w/o systemd'
|
|
url='https://web.mit.edu/kerberos/'
|
|
depends=(glibc e2fsprogs libldap keyutils libverto-module-base
|
|
libkeyutils.so libss.so libcom_err.so libverto.so)
|
|
makedepends=(perl bison gettext)
|
|
provides=(
|
|
libgssapi_krb5.so
|
|
libgssrpc.so
|
|
libk5crypto.so
|
|
libkadm5clnt_mit.so
|
|
libkadm5srv_mit.so
|
|
libkdb5.so
|
|
libkdb_ldap.so
|
|
libkrad.so
|
|
libkrb5.so
|
|
libkrb5support.so
|
|
)
|
|
backup=(
|
|
'etc/krb5.conf'
|
|
'var/lib/krb5kdc/kdc.conf'
|
|
)
|
|
options=('!emptydirs')
|
|
source=(https://web.mit.edu/kerberos/dist/krb5/${_pkgvermajor}/${pkgname}-${pkgver}.tar.gz{,.asc})
|
|
# 0001-krb5-config_LDFLAGS.patch::https://github.com/krb5/krb5/commit/0bfd22feb6493f34fdc894daaf680c3a2f2e7784.patch)
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
# # https://github.com/krb5/krb5/commit/0bfd22feb6493f34fdc894daaf680c3a2f2e7784
|
|
# # https://krbdev.mit.edu/rt/Ticket/Display.html?id=9057
|
|
# patch -Np1 < "${srcdir}"/0001-krb5-config_LDFLAGS.patch
|
|
|
|
# FS#25384
|
|
sed -i "/KRB5ROOT=/s/\/local//" src/util/ac_check_krb5.m4
|
|
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}/src
|
|
export CFLAGS+=" -fPIC -fno-strict-aliasing -fstack-protector-all"
|
|
export CPPFLAGS+=" -I/usr/include/et"
|
|
./configure --prefix=/usr \
|
|
--sbindir=/usr/bin \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var/lib \
|
|
--enable-shared \
|
|
--with-system-et \
|
|
--with-system-ss \
|
|
--disable-rpath \
|
|
--without-tcl \
|
|
--enable-dns-for-realm \
|
|
--with-ldap \
|
|
--with-system-verto
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}/src
|
|
make DESTDIR="${pkgdir}" EXAMPLEDIR=/usr/share/doc/${pkgname}/examples install
|
|
|
|
# Fix FS#29889
|
|
install -m 644 plugins/kdb/ldap/libkdb_ldap/kerberos.{ldif,schema} \
|
|
"${pkgdir}/usr/share/doc/${pkgname}/examples"
|
|
|
|
install -Dpm 644 config-files/krb5.conf -t "${pkgdir}/etc"
|
|
install -Dpm 644 config-files/kdc.conf -t "${pkgdir}/var/lib/krb5kdc"
|
|
|
|
install -Dm 644 util/ac_check_krb5.m4 -t "${pkgdir}/usr/share/aclocal"
|
|
|
|
install -Dm 644 "${srcdir}"/${pkgname}-${pkgver}/NOTICE \
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(custom)
|
|
|
|
validpgpkeys=('2C732B1C0DBEF678AB3AF606A32F17FD0055C305' # Tom Yu <tlyu@mit.edu>
|
|
'C4493CB739F4A89F9852CBC20CBA08575F8372DF') # Greg Hudson <ghudson@mit.edu>
|
|
|
|
sha256sums=(9560941a9d843c0243a71b17a7ac6fe31c7cebb5bce3983db79e52ae7e850491 # krb5-1.21.2.tar.gz
|
|
780b07aad5ac5449d1dd735dd42fd3325ec851b316d075a54a24f35d3e945190) # krb5-1.21.2.tar.gz.asc
|
|
|
|
## 1386f67a7c22d5dcea16b3acc1eca2e9b0f49cf526f03a8e3b052a1d6492f9b4 krb5-1.21.2-02-x86_64.pkg.tar.lz
|
|
|