summaryrefslogtreecommitdiff
path: root/packaging/debs
diff options
context:
space:
mode:
authorSteve Powell <steve@rabbitmq.com>2012-02-17 11:24:57 +0000
committerSteve Powell <steve@rabbitmq.com>2012-02-17 11:24:57 +0000
commita0f9eea66641f60e19c94dfa2880e4811e43f3a1 (patch)
tree60a8d0665ada56aa39830d51d6b61d758f91df3d /packaging/debs
parent24f67f901475984be10f4fd6eb1960539a958c5e (diff)
parent3d2c8cc14338118e7ff31352545ed5e7ae343f9d (diff)
downloadrabbitmq-server-git-a0f9eea66641f60e19c94dfa2880e4811e43f3a1.tar.gz
Merge 24748 in to get renaming of portfile variable.
Diffstat (limited to 'packaging/debs')
-rw-r--r--packaging/debs/Debian/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/packaging/debs/Debian/Makefile b/packaging/debs/Debian/Makefile
index 79e9c1dd72..de9cf400e4 100644
--- a/packaging/debs/Debian/Makefile
+++ b/packaging/debs/Debian/Makefile
@@ -24,13 +24,14 @@ package: clean
cp $(COMMON_DIR)/* $(UNPACKED_DIR)/debian/
# Debian and descendants differ from most other distros in that
# runlevel 2 should start network services.
- sed -i \
- -e 's|^LOCK_FILE=.*$$|LOCK_FILE=|' \
- -e 's|^\(# Default-Start:\).*$$|\1 2 3 4 5|' \
- -e 's|^\(# Default-Stop:\).*$$|\1 0 1 6|' \
- $(UNPACKED_DIR)/debian/rabbitmq-server.init
- sed -i -e 's|@SU_RABBITMQ_SH_C@|su rabbitmq -s /bin/sh -c|' \
- $(UNPACKED_DIR)/debian/rabbitmq-script-wrapper
+ sed -e 's|^LOCK_FILE=.*$$|LOCK_FILE=|' \
+ -e 's|^\(# Default-Start:\).*$$|\1 2 3 4 5|' \
+ -e 's|^\(# Default-Stop:\).*$$|\1 0 1 6|' \
+ $(UNPACKED_DIR)/debian/rabbitmq-server.init >$(UNPACKED_DIR)/debian/rabbitmq-server.init.tmp \
+ && mv $(UNPACKED_DIR)/debian/rabbitmq-server.init.tmp $(UNPACKED_DIR)/debian/rabbitmq-server.init
+ sed -e 's|@SU_RABBITMQ_SH_C@|su rabbitmq -s /bin/sh -c|' \
+ $(UNPACKED_DIR)/debian/rabbitmq-script-wrapper >$(UNPACKED_DIR)/debian/rabbitmq-script-wrapper.tmp \
+ && mv $(UNPACKED_DIR)/debian/rabbitmq-script-wrapper.tmp $(UNPACKED_DIR)/debian/rabbitmq-script-wrapper
chmod a+x $(UNPACKED_DIR)/debian/rules
echo "This package was debianized by Tony Garnock-Jones <tonyg@rabbitmq.com> on\nWed, 3 Jan 2007 15:43:44 +0000.\n\nIt was downloaded from http://www.rabbitmq.com/\n\n" > $(UNPACKED_DIR)/debian/copyright
cat $(UNPACKED_DIR)/LICENSE >> $(UNPACKED_DIR)/debian/copyright