[csw-devel] SF.net SVN: gar:[5136] csw/mgar/pkg/stunnel/trunk

skayser at users.sourceforge.net skayser at users.sourceforge.net
Wed Jun 3 01:25:42 CEST 2009


Revision: 5136
          http://gar.svn.sourceforge.net/gar/?rev=5136&view=rev
Author:   skayser
Date:     2009-06-02 23:25:42 +0000 (Tue, 02 Jun 2009)

Log Message:
-----------
stunnel: added checkinstall to verify cswclassutils version

Modified Paths:
--------------
    csw/mgar/pkg/stunnel/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.checkinstall

Modified: csw/mgar/pkg/stunnel/trunk/Makefile
===================================================================
--- csw/mgar/pkg/stunnel/trunk/Makefile	2009-06-02 19:36:13 UTC (rev 5135)
+++ csw/mgar/pkg/stunnel/trunk/Makefile	2009-06-02 23:25:42 UTC (rev 5136)
@@ -20,6 +20,7 @@
 MASTER_SITES = http://www.stunnel.org/download/stunnel/src/
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
 #DISTFILES += CSWstunnel.postinstall
+DISTFILES += CSWstunnel.checkinstall
 
 SPKG_SOURCEURL = http://www.stunnel.org
 SPKG_CLASSES = none cswcpsampleconf cswinitsmf

Added: csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.checkinstall
===================================================================
--- csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.checkinstall	                        (rev 0)
+++ csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.checkinstall	2009-06-02 23:25:42 UTC (rev 5136)
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# Make sure we use at least cswclassutils 1.15 (this is where AUTOENABLE
+# support was introduced). pkgutil should take care of this sometime, but
+# as we don't know whether the system has a recent pkgutil, we do it here
+# for now.
+
+# Use the REV stamp as it is guaranteed to go up and is easier to compare
+# than the version field
+R=`/bin/pkgparam CSWcswclassutils VERSION | cut -d= -f2 | tr -d .`
+
+[ "0$R" -ge 20090602 ] && exit 0
+
+echo "Please install cswclassutils >= REV=2009-06-02 first." >&2
+echo "Aborting installation." >&2
+
+exit 1


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list