PKG_NAME:=openvpn-easy-rsa
-PKG_VERSION:=3.0.8
-PKG_RELEASE:=4
+PKG_VERSION:=3.1.3
+PKG_RELEASE:=1
PKG_SOURCE_URL:=https://codeload.github.com/OpenVPN/easy-rsa/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_HASH:=fd6b67d867c3b8afd53efa2ca015477f6658a02323e1799432083472ac0dd200
+PKG_HASH:=f2967aa598cb603dd20791002e767d0ce58e300b04c9cff1b6d6b14fedae6a80
# For git snapshots
#PKG_SOURCE_PROTO:=git
--- a/build/build-dist.sh
+++ b/build/build-dist.sh
-@@ -80,7 +80,7 @@ stage_unix() {
-
+@@ -86,7 +86,7 @@ stage_unix() {
+
# FreeBSD does not accept -i without argument in a way also acceptable by GNU sed
sed -i.tmp -e "s/~VER~/$VERSION/" \
- -e "s/~DATE~/$(date)/" \
-e "s/~HOST~/$(hostname -s)/" \
-e "s/~GITHEAD~/$(git rev-parse HEAD)/" \
"$DIST_ROOT/unix/$PV/easyrsa" || die "Cannot update easyrsa version data"
-@@ -122,7 +122,7 @@ stage_win() {
+@@ -128,7 +128,7 @@ stage_win() {
done
-
+
sed -i.tmp -e "s/~VER~/$VERSION/" \
- -e "s/~DATE~/$(date)/" \
+ -e "s/~DATE~/$(SOURCE_DATE_EPOCH)/" \