add new util script to update the macports Portfile
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 7 Apr 2009 04:59:59 +0000 (21:59 -0700)
committerJameson Graef Rollins <jrollins@finestructure.net>
Tue, 7 Apr 2009 05:00:42 +0000 (22:00 -0700)
packaging/macports/Portfile
utils/build-macports-portfile [new file with mode: 0755]

index d73a6560d418ae0430d7f8c7049c3359ba437e82..fd2eafe72af225879834d77367b4a05e344208e3 100644 (file)
@@ -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 (executable)
index 0000000..c5e6a48
--- /dev/null
@@ -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"