1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
2 # Contributor: Mantas Mikulėnas <grawity@gmail.com>
9 url="https://github.com/gssapi/gssproxy"
10 license=('custom: MIT')
11 depends=('libverto-module-base' 'popt' 'ding-libs' 'systemd-libs')
12 makedepends=('libxslt' 'systemd' 'docbook-xsl' 'doxygen' 'po4a')
13 options=('emptydirs' 'makeflags')
14 backup=(etc/gssproxy/{gssproxy,24-nfs-server,80-httpd,99-network-fs-clients}.conf
15 etc/gss/mech.d/proxymech.conf)
16 source=(https://github.com/gssapi/gssproxy/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
17 # https://github.com/gssapi/gssproxy/releases/download/v0.9.1/gssproxy-0.9.1.tar.gz.sha512sum.txt
18 sha512sums=('767c4e73d5240a43a0586e836e7dc199b8baf0adbc5a1a2cbb6ffc6f0a7ca574a4fc541ca474ef696d78956724eb24c465760f680e7170f8d77d056513b6226b')
21 cd "$srcdir/gssproxy-$pkgver"
22 # delete unneeded service dependency
23 sed -i "/# GSSPROXY will not be started until syslog is/d" systemd/gssproxy.service.in
24 sed -i "s/syslog.target //" systemd/gssproxy.service.in
31 ./configure --prefix=/usr \
33 --with-pubconf-path=/etc/gssproxy \
35 --localstatedir=/var \
37 --with-initscript=systemd \
38 --with-gpp-default-behavior=REMOTE_FIRST
39 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
51 make DESTDIR=$pkgdir install
53 # cleanup empty directories
54 rm -rf "$pkgdir"/usr/include
55 rm -rf "$pkgdir"/usr/share/doc
57 # install default config files
58 install -m644 examples/gssproxy.conf "$pkgdir"/etc/gssproxy/gssproxy.conf
60 install -m644 examples/24-nfs-server.conf "$pkgdir"/etc/gssproxy/24-nfs-server.conf
61 install -m644 examples/99-network-fs-clients.conf "$pkgdir"/etc/gssproxy/99-network-fs-clients.conf
62 # httpd service / use Arch UID/GID http/33 (by pkg filesystem)
63 install -m644 examples/80-httpd.conf "$pkgdir"/etc/gssproxy/80-httpd.conf
64 sed -i -e "s:euid = apache:euid = http:" "$pkgdir"/etc/gssproxy/80-httpd.conf
66 # install -Dm644 examples/mech "$pkgdir"/etc/gss/mech.d/gssproxy.conf
69 install -m700 -d ${pkgdir}/var/lib/gssproxy/rcache
71 install -m755 -d ${pkgdir}/usr/share/licenses/$pkgname
72 install -m644 COPYING ${pkgdir}/usr/share/licenses/$pkgname/