[csw-devel] SF.net SVN: gar:[7097] csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Nov 3 21:19:16 CET 2009


Revision: 7097
          http://gar.svn.sourceforge.net/gar/?rev=7097&view=rev
Author:   dmichelsen
Date:     2009-11-03 20:19:16 +0000 (Tue, 03 Nov 2009)

Log Message:
-----------
mysql-5.0.x: Tweak Makefile

Modified Paths:
--------------
    csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile

Modified: csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile
===================================================================
--- csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile	2009-11-03 20:18:12 UTC (rev 7096)
+++ csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile	2009-11-03 20:19:16 UTC (rev 7097)
@@ -51,8 +51,6 @@
 SPKG_DESC_CSWmysql5rt     = MySQL 5 runtime files
 SPKG_DESC_CSWmysql5test   = MySQL 5 testing files
 
-support64 = (/(amd64|i386))?
-
 # Defining the client programs, which are going to pick up the 32- and 64-bit
 # binaries, symbolic links, isaexec stuff and man pages.
 CSWmysql5client_programs  = myisamlog
@@ -75,11 +73,11 @@
 
 PKGFILES_CSWmysql5bench   = $(prefix)/sql-bench.*
 PKGFILES_CSWmysql5client  = $(bindir)
-PKGFILES_CSWmysql5client += $(foreach bin_name,$(CSWmysql5client_programs),$(bindir)$(support64)/$(bin_name))
+PKGFILES_CSWmysql5client += $(foreach bin_name,$(CSWmysql5client_programs),$(call baseisadirs,$(bindir),$(bin_name)))
 PKGFILES_CSWmysql5client += $(foreach bin_name,$(CSWmysql5client_programs),$(mandir)/man1/$(bin_name)\.1)
 PKGFILES_CSWmysql5client += $(foreach bin_name,$(CSWmysql5client_programs),/opt/csw/bin/$(bin_name))
 PKGFILES_CSWmysql5client += $(foreach bin_name,$(CSWmysql5client_programs),/opt/csw/sbin/$(bin_name))
-PKGFILES_CSWmysql5devel  += $(bindir)$(support64)/mysql_config
+PKGFILES_CSWmysql5devel  += $(call baseisadirs,$(bindir),mysql_config)
 PKGFILES_CSWmysql5devel  += $(mandir)/man1/mysql_config\.1
 PKGFILES_CSWmysql5devel   = $(prefix)/include.*
 PKGFILES_CSWmysql5rt      = $(prefix)/lib/.*\.so.*
@@ -105,11 +103,11 @@
 
 # because we alter the prefix.  this gets us proper linking as well as
 # LD_OPTIONS (RPATH)
-EXTRA_LIB = /opt/csw/lib
-EXTRA_INC = /opt/csw/include
+# EXTRA_LIB = /opt/csw/lib
+# EXTRA_INC = /opt/csw/include
 EXTRA_CFLAGS = -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
 EXTRA_CXXFLAGS = -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
-EXTRA_LIB = /opt/csw/mysql5/lib/$$ISALIST/mysql
+# EXTRA_LIB = /opt/csw/mysql5/lib/$$ISALIST/mysql
 
 # Set ./configure options
 CONFIGURE_ARGS  = $(DIRPATHS)
@@ -130,14 +128,16 @@
 BUILD64 = 1
 
 USERGROUP = /etc/opt/csw/pkg/CSWmysql5/cswusergroup
-PROTOTYPE_FILTER = awk ' \
-    $$$$3 ~ /\/var\/opt\/csw\/mysql5$$$$/ { $$$$2 = "ugfiles"; \
-                                            $$$$4 = "0700"; \
-                                            $$$$5 = "mysql"; \
-                                            $$$$6 = "mysql" } \
-    { print }'
-SPKG_CLASSES = none cswusergroup ugfiles
 
+PROTOTYPE_MODIFIERS = ownmysql
+PROTOTYPE_FILES_ownmysql = /var/opt/csw/mysql5
+PROTOTYPE_USER_ownmysql = mysql
+PROTOTYPE_GROUP_ownmysql = mysql
+PROTOTYPE_PERMS_ownmysql = 0700
+PROTOTYPE_CLASS_ownmysql = ugfiles
+
+SPKG_CLASSES = none ugfiles
+
 include gar/category.mk
 
 post-install-modulated:


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