[csw-devel] SF.net SVN: gar:[7094] csw/mgar/pkg/unixodbc/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Nov 3 19:41:09 CET 2009


Revision: 7094
          http://gar.svn.sourceforge.net/gar/?rev=7094&view=rev
Author:   wahwah
Date:     2009-11-03 18:41:09 +0000 (Tue, 03 Nov 2009)

Log Message:
-----------
unixodbc: Using cswmigrateconf

Modified Paths:
--------------
    csw/mgar/pkg/unixodbc/trunk/Makefile
    csw/mgar/pkg/unixodbc/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/unixodbc/trunk/files/cswmigrateconf

Property Changed:
----------------
    csw/mgar/pkg/unixodbc/trunk/


Property changes on: csw/mgar/pkg/unixodbc/trunk
___________________________________________________________________
Modified: svn:externals
   - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2

   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2-migrateconf


Modified: csw/mgar/pkg/unixodbc/trunk/Makefile
===================================================================
--- csw/mgar/pkg/unixodbc/trunk/Makefile	2009-11-03 18:40:12 UTC (rev 7093)
+++ csw/mgar/pkg/unixodbc/trunk/Makefile	2009-11-03 18:41:09 UTC (rev 7094)
@@ -8,13 +8,11 @@
 
 DESCRIPTION = ODBC drivers for Unix systems
 define BLURB
-  It does stuff with things
 endef
 DL_NAME = unixODBC
 MASTER_SITES = http://www.unixodbc.org/
 DISTFILES  = $(DL_NAME)-$(GARVERSION).tar.gz
-# The configuration migratin is pending decision.
-# DISTFILES += CSWunixodbc.postinstall
+DISTFILES += cswmigrateconf
 WORKSRC = $(WORKDIR)/$(DL_NAME)-$(GARVERSION)
 UFILES_REGEX = $(DL_NAME)-(\d+(?:\.\d+)*).tar.gz
 REQUIRED_PKGS  = CSWiconv
@@ -23,14 +21,17 @@
 localstatedir = /var/opt/csw
 CONFIGURE_ARGS = $(DIRPATHS) --enable-gui=no
 BUILD64 = 1
-SAMPLECONF = /\/etc\/opt\/csw\/.*\.CSW
+SAMPLECONF = \/etc\/opt\/csw\/odbc(inst|).ini
+MIGRATECONF = \/etc\/opt\/csw\/pkg\/$(GARNAME)\/cswmigrateconf
 TEST_SCRIPTS =
 
 post-install-modulated:
 	(cd $(DESTDIR)$(sysconfdir); \
-	for f in ODBCDataSources odbc.ini odbcinst.ini; do \
+	for f in odbc.ini odbcinst.ini; do \
 		mv "$${f}" "$${f}.CSW"; \
 	done)
+	ginstall -d -m 755 $(DESTDIR)$(sysconfdir)/pkg/$(GARNAME)
+	ginstall -m 644 $(FILEDIR)/cswmigrateconf $(DESTDIR)$(sysconfdir)/pkg/$(GARNAME)
 	@$(MAKECOOKIE)
 
 include gar/category.mk

Modified: csw/mgar/pkg/unixodbc/trunk/checksums
===================================================================
--- csw/mgar/pkg/unixodbc/trunk/checksums	2009-11-03 18:40:12 UTC (rev 7093)
+++ csw/mgar/pkg/unixodbc/trunk/checksums	2009-11-03 18:41:09 UTC (rev 7094)
@@ -1 +1,2 @@
-f47c2efb28618ecf5f33319140a7acd0  download/unixODBC-2.2.14.tar.gz
+8359050c8b7b37641805301da4d230c2  cswmigrateconf
+f47c2efb28618ecf5f33319140a7acd0  unixODBC-2.2.14.tar.gz

Added: csw/mgar/pkg/unixodbc/trunk/files/cswmigrateconf
===================================================================
--- csw/mgar/pkg/unixodbc/trunk/files/cswmigrateconf	                        (rev 0)
+++ csw/mgar/pkg/unixodbc/trunk/files/cswmigrateconf	2009-11-03 18:41:09 UTC (rev 7094)
@@ -0,0 +1,3 @@
+# $Id$
+
+MIGRATE_FILES="odbc.ini odbcinst.ini ODBCDataSources"


Property changes on: csw/mgar/pkg/unixodbc/trunk/files/cswmigrateconf
___________________________________________________________________
Added: svn:keywords
   + Id


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