summaryrefslogtreecommitdiff
path: root/mandos/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'mandos/PKGBUILD')
-rw-r--r--mandos/PKGBUILD70
1 files changed, 70 insertions, 0 deletions
diff --git a/mandos/PKGBUILD b/mandos/PKGBUILD
new file mode 100644
index 000000000..9b5b53982
--- /dev/null
+++ b/mandos/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+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=1
+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@
+ 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
+}
+
+_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.2'
+ '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
+}