summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2010-01-22 11:30:48 +0000
committerDavid Wragg <dpw@lshift.net>2010-01-22 11:30:48 +0000
commitcef1abc2345484dd2d90a653f0d46f20b406e767 (patch)
treeba98e3044d5bccbb9ea1516d941abd2d1aeaa2d8
parentbcec81d0c64799a7fdc6c24109bf8fc14a4c93b8 (diff)
downloadrabbitmq-server-git-cef1abc2345484dd2d90a653f0d46f20b406e767.tar.gz
Generate the macports index files by sshing over to an OSX box
-rw-r--r--packaging/macports/Makefile25
1 files changed, 24 insertions, 1 deletions
diff --git a/packaging/macports/Makefile b/packaging/macports/Makefile
index af7891bd50..c629ce2f53 100644
--- a/packaging/macports/Makefile
+++ b/packaging/macports/Makefile
@@ -6,7 +6,16 @@ VERSION=$(shell echo $(TARBALL) | sed -e 's:rabbitmq-server-\(.*\)\.tar\.gz:\1:g
# The URL at which things really get deployed
REAL_WEB_URL=http://www.rabbitmq.com/
-DEST=macports/net/rabbitmq-server
+# The user@host for an OSX machine with macports installed, which is
+# used to generate the macports index files. That step will be
+# skipped if this variable is not set. If you do set it, you might
+# also want to set SSH_OPTS, which allows adding ssh options, e.g. to
+# specify a key that will get into the OSX machine without a
+# passphrase.
+MACPORTS_USERHOST=
+
+MACPORTS_DIR=macports
+DEST=$(MACPORTS_DIR)/net/rabbitmq-server
dirs:
mkdir -p $(DEST)/files
@@ -27,5 +36,19 @@ macports: dirs $(DEST)/Portfile
$(DEST)/files/rabbitmq-script-wrapper
cp patch-org.macports.rabbitmq-server.plist.diff $(DEST)/files
+macports_index:
+ if [ -n "$(MACPORTS_USERHOST)" ] ; then \
+ tar cf - -C $(MACPORTS_DIR) . | ssh $(SSH_OPTS) lshift@macrabbit ' \
+ d="/tmp/mkportindex.$$$$" ; \
+ mkdir $$d \
+ && cd $$d \
+ && tar xf - \
+ && /opt/local/bin/portindex >/dev/null \
+ && tar cf - PortIndex* \
+ && cd \
+ && rm -rf $$d' \
+ | tar xf - -C $(MACPORTS_DIR) ; \
+ fi
+
clean:
rm -rf $(DEST) checksums.sed