diff --git a/linphone/Makefile.am b/linphone/Makefile.am
index e8c5e38384a0b751b3e3ec2fe912a51f55f5c87d..e8c84e87146cb9139c2cbb94b4627750967b178e 100644
--- a/linphone/Makefile.am
+++ b/linphone/Makefile.am
@@ -139,7 +139,7 @@ newdate:
 
 PortFile:	$(top_srcdir)/scripts/PortFile.tmpl dist
 	sed -e 's/\@VERSION\@/$(LINPHONE_VERSION)/g' \
-	  -e 's/\@LINPHONE_MD5\@/$(shell md5 linphone-$(VERSION).tar.gz | awk {'print $$4'})/' < $< > PortFile
+	  -e 's/\@LINPHONE_MD5\@/$(shell md5sum linphone-$(VERSION).tar.gz | awk {'print $$1'})/' < $< > PortFile
 
 
 
diff --git a/linphone/configure.in b/linphone/configure.in
index 8e2cc23789969bbe31abb7bce68729d3137bf02c..86a1939cd8d99bff68a69e3ac320195b23bb214f 100644
--- a/linphone/configure.in
+++ b/linphone/configure.in
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT([linphone],[3.1.99.1],[linphone-developers@nongnu.org])
+AC_INIT([linphone],[3.1.99.2],[linphone-developers@nongnu.org])
 AC_CANONICAL_SYSTEM
 
 dnl Source packaging numbers