From: Jameson Graef Rollins Date: Tue, 7 Apr 2009 04:59:59 +0000 (-0700) Subject: add new util script to update the macports Portfile X-Git-Tag: monkeysphere_0.25~31^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=436fa72417f0d086347bcaa7256d5f83296bc6d6;p=monkeysphere.git add new util script to update the macports Portfile --- diff --git a/packaging/macports/Portfile b/packaging/macports/Portfile index d73a656..fd2eafe 100644 --- a/packaging/macports/Portfile +++ b/packaging/macports/Portfile @@ -3,7 +3,7 @@ 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 @@ -30,7 +30,7 @@ master_sites http://archive.monkeysphere.info/debian/pool/monkeysphere/m/ distname ${name}_${version} extract.suffix .orig.tar.gz worksrcdir ${name}-${version} -checksums md5 8590532f4702fa44027a6a583657c9ef +checksums md5 3ac1918eee99725869e65f3f5a24fe17 use_configure no diff --git a/utils/build-macports-portfile b/utils/build-macports-portfile new file mode 100755 index 0000000..c5e6a48 --- /dev/null +++ b/utils/build-macports-portfile @@ -0,0 +1,9 @@ +#!/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"