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
commit2b434121d464dafda33fef5751a6b7b7ab4e754e (patch)
treeba98e3044d5bccbb9ea1516d941abd2d1aeaa2d8
parentbaeb3e114e6a4ba617c8fb2339f7f3bb3b560bcb (diff)
downloadrabbitmq-server-2b434121d464dafda33fef5751a6b7b7ab4e754e.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 af7891bd..c629ce2f 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