# Maintainer: Erich Eckner arch=('x86_64') pkgbase='mandos' pkgname=('mandos-server' 'mandos-client-nokey') pkgdesc='system for allowing servers with encrypted root file systems to reboot unattended and/or remotely' pkgver='1.8.16' pkgrel=3 url='https://www.recompile.se/mandos' license=('GPL') source=("https://ftp.recompile.se/pub/${pkgbase}/${pkgbase}_${pkgver}.orig.tar.gz" "https://ftp.recompile.se/pub/${pkgbase}/${pkgbase}_${pkgver}.orig.tar.gz.asc") sha512sums=('5ca8a822e2562212f6f5ef6dea9af8c38ee3e53cb7162e45ba9de19eca394199000e39edd96224bb4be5a53c3627e4f4ca7bb0ccc7fe098869b239c3fc472ff5' 'SKIP') validpgpkeys=('153A37F10BBA0435987F2C4A72232973CA34C2C4') depends=(avahi) makedepends=(docbook-xsl) prepare() { cd "$srcdir/$pkgbase-$pkgver" sed -i ' s@^\s\+install\b@\0 -D@ s@\bsbin\b@bin@g 434 s@^\s\+@\0install -d $(MANDIR)/man8\n\0@ 440 s@^\s\+@\0install -d $(MANDIR)/man5\n\0@ 513 s@^\s\+@\0install -d $(MANDIR)/man8\n\0@ /docbook\.xsl/ s@/stylesheet/nwalsh/@/'"$( ls /usr/share/xml/docbook/ \ | grep -wF xsl-stylesheets \ | grep -vwF nons \ | sort -V \ | tail -n1 )"'/@ ' Makefile } build() { cd "$srcdir/$pkgbase-$pkgver" make all doc find . -type f \( -name '*.8' -o -name '*.8mandos' -o -name '*.5' \) -exec sed -i 's@^\s\+@@' {} + } _package() { cd "$srcdir/$pkgbase-$pkgver" make install-$1 DESTDIR="$pkgdir" } package_mandos-server() { arch=(any) _pinned_dependencies=( ) _package server } package_mandos-client-nokey() { _pinned_dependencies=( 'gcc-libs=13.2.1' 'glibc>=2.38' 'gnutls=3.8.4' 'libavahi-common.so=3' 'libavahi-core.so=7' 'libglib-2.0.so=0' 'libgpgme.so=11' 'libnl-3.so=200' 'libnl-route-3.so=200' ) depends+=("${_pinned_dependencies[@]}") _package client-nokey }