jobcore/gssproxy/PKGBUILD-b4-9

85 lines
2.7 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=gssproxy
pkgver=0.8.4
pkgrel=02
pkgdesc="GSSAPI Proxy w/o systemd - deprecated after 0.9.0"
# This was a dependency of nfs-utils and its dependents
# We opted in building nfs-utils without gssproxy (like Void does)
# So remove this RedHat garbage if nothing else depends on it
# If another pkg still depends on gssproxy let us know and
# we will attempt to build that one
arch=(x86_64)
url="https://github.com/gssapi/gssproxy"
depends=('krb5' 'popt' 'ding-libs')
makedepends=('libxslt' 'docbook-xsl' 'doxygen' 'po4a')
options=('emptydirs' 'makeflags')
backup=(etc/gssproxy/{gssproxy,24-nfs-server,80-httpd,99-nfs-client}.conf
etc/gss/mech.d/gssproxy.conf)
source=(https://github.com/gssapi/gssproxy/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
prepare() {
cd "$srcdir/gssproxy-$pkgver"
# delete unneeded service dependency
autoreconf -vfi
}
build() {
cd gssproxy-$pkgver
# make it find bundled verto from krb5 without its own pkg-config file
export VERTO_CFLAGS="-I/usr/include"
export VERTO_LIBS="-L/usr/lib -lverto"
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-pubconf-path=/etc/gssproxy \
--sbindir=/usr/bin \
--localstatedir=/var \
--without-selinux \
--with-initscript=none \
--with-gpp-default-behavior=REMOTE_FIRST
make
}
check() {
cd "$pkgname"-$pkgver
make test_proxymech
}
package() {
cd gssproxy-$pkgver
make DESTDIR=$pkgdir install
# cleanup empty directories
rm -rf "$pkgdir"/usr/include
rm -rf "$pkgdir"/usr/share/doc
# install default config files
install -m644 examples/gssproxy.conf "$pkgdir"/etc/gssproxy/gssproxy.conf
# nfs services
install -m644 examples/24-nfs-server.conf "$pkgdir"/etc/gssproxy/24-nfs-server.conf
install -m644 examples/99-nfs-client.conf "$pkgdir"/etc/gssproxy/99-nfs-client.conf
# httpd service / use Arch UID/GID http/33 (by pkg filesystem)
install -m644 examples/80-httpd.conf "$pkgdir"/etc/gssproxy/80-httpd.conf
sed -i -e "s:euid = apache:euid = http:" "$pkgdir"/etc/gssproxy/80-httpd.conf
install -Dm644 examples/mech "$pkgdir"/etc/gss/mech.d/gssproxy.conf
# FS#51574
install -m700 -d ${pkgdir}/var/lib/gssproxy/rcache
install -m755 -d ${pkgdir}/usr/share/licenses/$pkgname
install -m644 COPYING ${pkgdir}/usr/share/licenses/$pkgname/
}
#---- license gpg-key sha256sums ----
license=('custom: MIT')
sha256sums=(cf1eb125d6273d7fb2fd382581653b4da24abe2b13e054a3400d22bf2448b8c6) # gssproxy-0.8.4.tar.gz