4 pkgdesc="protects machines from accidental shutdowns/reboots (via ssh)"
6 url="http://packages.debian.org/source/sid/molly-guard" # Didn't found anything else
7 license=('Artistic Licence 2.0')
8 depends=('openssh' 'run-parts')
9 makedepends=('docbook-xsl')
10 install='molly.install'
11 source=(http://ftp.de.debian.org/debian/pool/main/m/$pkgname/${pkgname}_${pkgver}.orig.tar.gz)
12 md5sums=('4ed4928a29813017f68982f224b09ade')
15 cd "$srcdir/$pkgname-$pkgver"
18 sed -i "s&DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl&DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-`pacman -Q docbook-xsl | awk '{ print $2 }' | awk -F"-" '{ print $1 }'`/manpages/docbook.xsl&" Makefile
19 make DEST="" etc_prefix="" prefix="usr" || return 1
20 sed -i 's&HOSTNAME="$(hostname --short)"&HOSTNAME="$(uname -n)"&' run.d/30-query-hostname
21 make DEST="$pkgdir" etc_prefix="" prefix="/usr" install
24 # vim:set ts=2 sw=2 et: