From 62e14c36a804f90e50db28d150e5cea1de2f52c4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 13 Oct 2024 22:23:54 +0200 Subject: mandos: aur original --- mandos/PKGBUILD | 126 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 67 insertions(+), 59 deletions(-) (limited to 'mandos/PKGBUILD') diff --git a/mandos/PKGBUILD b/mandos/PKGBUILD index 927c770b2..21c8b61c6 100644 --- a/mandos/PKGBUILD +++ b/mandos/PKGBUILD @@ -1,70 +1,78 @@ -# 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.17' -pkgrel=2 -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" - Makefile.patch) - -sha512sums=('0059593ab6b92b5178bbbf0be5d6852ec93393ed39032b05bc54c20c698a9e000c1db6c5069fad40f4d173f5b9d397503ca0077446ef460571138fac0f33f5ea' - 'SKIP' - '6561dfcd1c7ecc593b5d387796b01507fea7c1eb737196b880ac90c3ee561d4c7a803e2b21dc16d4c617ae116a7817465d99fa466398f53e4d7508ef8354110f') - -validpgpkeys=('153A37F10BBA0435987F2C4A72232973CA34C2C4') - -depends=(avahi) -makedepends=(docbook-xsl libnl man-db) +# Maintainer: C. Dominik Bódi +pkgname=mandos-server +_srcname=mandos +pkgver=1.8.9 +pkgrel=1 +pkgdesc="unlock LUKS encrypted drives remotely - server component" +arch=(any) +url="https://wiki.recompile.se/wiki/Mandos" +license=('GPL3') +depends=(avahi + gnupg + python2-gnutls + python-gobject2 + python2-gobject2 + python-dbus + python2-dbus + python-urwid + python2-urwid + openssh) +makedepends=(docbook-xml + docbook-xsl + pkg-config + quilt) +optdepends=('fping: host uptime checking - legacy method') +backup=('etc/mandos/mandos.conf' + 'etc/mandos/clients.conf' + 'etc/dbus-1/system.d/mandos.conf') +install=mandos.install +source=("http://httpredir.debian.org/debian/pool/main/m/mandos/mandos_$pkgver.orig.tar.gz" + 'series' + 'fix_makefile.patch') +sha256sums=('9bec9f41b429fe9f554092719127b710a379003641d17aeb01189eb51dcf3deb' + 'd5d2d190799efdc4ecba1221a405983a3e770b085f055c1c156199436836dc47' + '26ede8999354df4a1697e697d317c2f9e90c532ca849888d544c1905847ef1e5') prepare() { - cd "$srcdir/$pkgbase-$pkgver" - patch -p1 -i "$srcdir/Makefile.patch" - sed -i ' - /docbook\.xsl/ s@/stylesheet/nwalsh/@/'"$( - ls /usr/share/xml/docbook/ \ - | grep -wF xsl-stylesheets \ - | grep -vwF nons \ - | sort -V \ - | tail -n1 - )"'/@ - ' Makefile + mkdir -p "$_srcname-$pkgver/patches" + cp series "$_srcname-$pkgver/patches/" + cp fix_makefile.patch "$_srcname-$pkgver/patches/" + cd "$_srcname-$pkgver" + quilt push -a } build() { - cd "$srcdir/$pkgbase-$pkgver" - make all doc - find . -type f \( -name '*.8' -o -name '*.8mandos' -o -name '*.5' \) -exec sed -i 's@^\s\+@@' {} + + cd "$_srcname-$pkgver" + make doc + make } -_package() { - cd "$srcdir/$pkgbase-$pkgver" - make install-$1 DESTDIR="$pkgdir" BINDIR="$pkgdir/usr/bin" +check() { + cd "$_srcname-$pkgver" + make -k check } -package_mandos-server() { - arch=(any) - _pinned_dependencies=( - ) - _package server -} +package() { + cd "$_srcname-$pkgver" + install --directory $pkgdir/var/lib/mandos + install -D --mode=u=rwx,go=rx mandos $pkgdir/usr/bin/mandos + install -D --mode=u=rwx,go=rx mandos-ctl $pkgdir/usr/bin/mandos-ctl + install -D --mode=u=rwx,go=rx mandos-monitor $pkgdir/usr/bin/mandos-monitor + install -D --mode=u=rw,go=r mandos.conf $pkgdir/etc/mandos/mandos.conf + install -D --mode=u=rw clients.conf $pkgdir/etc/mandos/clients.conf + install -D --mode=u=rw,go=r dbus-mandos.conf $pkgdir/etc/dbus-1/system.d/mandos.conf + install -D --mode=u=rw,go=r mandos.service $pkgdir/usr/lib/systemd/system/mandos.service + install -D mandos.8 $pkgdir/usr/share/man/man8/mandos.8 + install -D mandos-monitor.8 $pkgdir/usr/share/man/man8/mandos-monitor.8 + install -D mandos-ctl.8 $pkgdir/usr/share/man/man8/mandos-ctl.8 + install -D mandos.conf.5 $pkgdir/usr/share/man/man5/mandos.conf.5 + install -D mandos-clients.conf.5 $pkgdir/usr/share/man/man5/mandos-clients.conf.5 + install -D intro.8mandos $pkgdir/usr/share/man/man8/intro.8mandos + gzip --best $pkgdir/usr/share/man/man8/mandos.8 + gzip --best $pkgdir/usr/share/man/man8/mandos-monitor.8 + gzip --best $pkgdir/usr/share/man/man8/mandos-ctl.8 + gzip --best $pkgdir/usr/share/man/man5/mandos.conf.5 + gzip --best $pkgdir/usr/share/man/man5/mandos-clients.conf.5 + gzip --best $pkgdir/usr/share/man/man8/intro.8mandos -package_mandos-client-nokey() { - _pinned_dependencies=( - 'gcc-libs=14.2.1+r134+gab884fffe3fc' - 'glibc>=2.38' - 'gnutls=3.8.7' - '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 } -- cgit v1.2.3-70-g09d2