PortSystem 1.0
name monkeysphere
-version 0.24
+version 0.25
categories net security
maintainers nomaintainer
description use the OpenPGP web of trust to verify ssh connections
distname ${name}_${version}
extract.suffix .orig.tar.gz
worksrcdir ${name}-${version}
-checksums md5 8590532f4702fa44027a6a583657c9ef
+checksums md5 3ac1918eee99725869e65f3f5a24fe17
use_configure no
--- /dev/null
+#!/bin/bash -e
+
+PORTFILE="packaging/macports/Portfile"
+
+VERSION=`head -n1 packaging/debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
+MD5=`md5sum monkeysphere_${VERSION}.orig.tar.gz | awk '{ print $1 }'`
+
+sed -i~ 's/^version.*$/version '"$VERSION"/ "$PORTFILE"
+sed -i~ 's/^checksums.*$/checksums md5 '"$MD5"/ "$PORTFILE"