[csw-devel] SF.net SVN: gar:[14955] csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Fri Jul 1 22:50:27 CEST 2011
Revision: 14955
http://gar.svn.sourceforge.net/gar/?rev=14955&view=rev
Author: dmichelsen
Date: 2011-07-01 20:50:27 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
mysql5/branches/mysql-5.0.x: Add Alternatives
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 2011-07-01 19:47:49 UTC (rev 14954)
+++ csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile 2011-07-01 20:50:27 UTC (rev 14955)
@@ -177,6 +177,10 @@
# TODO: Make the tests pass. They don't at the moment.
TEST_SCRIPTS =
+ALTERNATIVES_CSW$(NAME)client = mysql$(BASE_VERSION)
+ALTERNATIVE_mysql$(BASE_VERSION) = $(global_bindir)/$(firstword $(CSW$(NAME)client_programs)) mysql $(bindir)/$(firstword $(CSW$(NAME)client_programs)) 50
+ALTERNATIVE_mysql$(BASE_VERSION) += $(foreach C,$(wordlist 2,$(words $(CSW$(NAME)client_programs)),$(CSW$(NAME)client_programs)),\
+ $(global_bindir)/$C $C $(bindir)/$C)
USERGROUP = /etc/opt/csw/pkg/CSW$(NAME)/cswusergroup
@@ -250,12 +254,12 @@
$(PKGROOT)$(global_sysconfdir)/pkg/CSW$(NAME)
# Create symlinks to binaries
ginstall -m 755 -d $(PKGROOT)$(global_bindir)
- for f in $(PKGROOT)$(bindir)/*; do \
- if echo $$f | grep amd64$$; then continue; fi; \
- if echo $$f | grep sparcv9$$; then continue; fi; \
- ln -s ../$(NAME)/bin/`basename $$f` \
- $(PKGROOT)$(global_bindir)/`basename $$f`; \
- done
+ #for f in $(PKGROOT)$(bindir)/*; do \
+ # if echo $$f | grep amd64$$; then continue; fi; \
+ # if echo $$f | grep sparcv9$$; then continue; fi; \
+ # ln -s ../$(NAME)/bin/`basename $$f` \
+ # $(PKGROOT)$(global_bindir)/`basename $$f`; \
+ #done
# http://www.opencsw.org/bugtrack/view.php?id=4149
ginstall -m 755 -d $(PKGROOT)$(sysconfdir)
@$(MAKECOOKIE)
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