[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (75369fda366a897cb8483459f3621767162ec0f1)

Vlad Glagolev scm at sourcemage.org
Fri Jun 24 10:11:50 EDT 2011


GIT changes to master grimoire by Vlad Glagolev <stealth at sourcemage.org>:

 net/openswan/DEPENDS |   11 ++++-------
 net/openswan/HISTORY |    3 +++
 2 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 75369fda366a897cb8483459f3621767162ec0f1
Author: Vlad Glagolev <stealth at sourcemage.org>
Commit: Vlad Glagolev <stealth at sourcemage.org>

    openswan: reimplemented version checking

diff --git a/net/openswan/DEPENDS b/net/openswan/DEPENDS
index 3f2f5ad..c63eeba 100755
--- a/net/openswan/DEPENDS
+++ b/net/openswan/DEPENDS
@@ -1,16 +1,13 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+
 depends gmp &&
 depends iproute2 &&
 depends iptables &&
 
-local IPR2VER=$(installed_version iproute2) &&
-
-if spell_ok iproute2 && [[ $IPR2VER < 2.6.08 ]]; then
+if spell_ok iproute2 && is_version_less $(installed_version iproute2) 2.6.8; then
   force_depends iproute2
 fi &&
 
-. "$GRIMOIRE/FUNCTIONS" &&
-local KVER=$(get_kernel_version) &&
-
-if [[ $KVER < 2.6.09 ]]; then
+if is_version_less $(get_kernel_version) 2.6.9; then
   depends ipsec-tools
 fi
diff --git a/net/openswan/HISTORY b/net/openswan/HISTORY
index fe442ce..2d48929 100644
--- a/net/openswan/HISTORY
+++ b/net/openswan/HISTORY
@@ -1,3 +1,6 @@
+2011-06-24 Vlad Glagolev <stealth at sourcemage.org>
+	* DEPENDS: use is_version_less() to compare versions carefully
+
 2011-06-20 Vlad Glagolev <stealth at sourcemage.org>
 	* DEPENDS: corrected version check
 


More information about the SM-Commit mailing list