diff options
-rw-r--r-- | packaging/macports/Portfile | 4 | ||||
-rwxr-xr-x | utils/build-macports-portfile | 9 |
2 files changed, 11 insertions, 2 deletions
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" |