From 5a9d7587f50691dcccdd28b89df93930fba1a842 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Mon, 15 Oct 2007 03:16:13 +0000 Subject: [PATCH] - fix install error --- databases/mysql-proxy/Makefile | 1 + .../files/patch-examples-Makefile.in | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 databases/mysql-proxy/files/patch-examples-Makefile.in diff --git a/databases/mysql-proxy/Makefile b/databases/mysql-proxy/Makefile index a5c4cfb4244d..41572eced956 100644 --- a/databases/mysql-proxy/Makefile +++ b/databases/mysql-proxy/Makefile @@ -7,6 +7,7 @@ PORTNAME= mysql-proxy PORTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_MYSQL} MASTER_SITE_SUBDIR= MySQL-Proxy diff --git a/databases/mysql-proxy/files/patch-examples-Makefile.in b/databases/mysql-proxy/files/patch-examples-Makefile.in new file mode 100644 index 000000000000..41791d09666c --- /dev/null +++ b/databases/mysql-proxy/files/patch-examples-Makefile.in @@ -0,0 +1,45 @@ +--- examples/Makefile.in.orig 2007-09-12 00:55:20.000000000 +0800 ++++ examples/Makefile.in 2007-09-22 07:50:30.000000000 +0800 +@@ -157,6 +157,7 @@ + build_os = @build_os@ + build_vendor = @build_vendor@ + datadir = @datadir@ ++examplesdir = @datadir@/examples/mysql-proxy + exec_prefix = @exec_prefix@ + host = @host@ + host_alias = @host_alias@ +@@ -236,20 +237,20 @@ + uninstall-info-am: + install-dist_dataDATA: $(dist_data_DATA) + @$(NORMAL_INSTALL) +- test -z "$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)" ++ test -z "$(examplesdir)" || $(mkdir_p) "$(DESTDIR)$(examplesdir)" + @list='$(dist_data_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ +- echo " $(dist_dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(datadir)/$$f'"; \ +- $(dist_dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(datadir)/$$f"; \ ++ echo " $(dist_dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(examplesdir)/$$f'"; \ ++ $(dist_dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(examplesdir)/$$f"; \ + done + + uninstall-dist_dataDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_data_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ +- echo " rm -f '$(DESTDIR)$(datadir)/$$f'"; \ +- rm -f "$(DESTDIR)$(datadir)/$$f"; \ ++ echo " rm -f '$(DESTDIR)$(examplesdir)/$$f'"; \ ++ rm -f "$(DESTDIR)$(examplesdir)/$$f"; \ + done + tags: TAGS + TAGS: +@@ -289,7 +290,7 @@ + check: check-am + all-am: Makefile $(DATA) + installdirs: +- for dir in "$(DESTDIR)$(datadir)"; do \ ++ for dir in "$(DESTDIR)$(examplesdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done + install: install-am