diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-11-09 15:51:50 +0000 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-11-09 15:51:50 +0000 |
| commit | 7230cd8326c9232ad6d5d99794de32a0697e4ab4 (patch) | |
| tree | 9e49ae13332440335d0e2ae770c593e2be1ce91a /packaging/debs | |
| parent | c80d7965c163b6f4959ae104be893fe97daa6b86 (diff) | |
| download | rabbitmq-server-git-7230cd8326c9232ad6d5d99794de32a0697e4ab4.tar.gz | |
APT repository: Give more control to the caller
Diffstat (limited to 'packaging/debs')
| -rw-r--r-- | packaging/debs/apt-repository/Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/packaging/debs/apt-repository/Makefile b/packaging/debs/apt-repository/Makefile index ce4347bcb4..bbddc15a4e 100644 --- a/packaging/debs/apt-repository/Makefile +++ b/packaging/debs/apt-repository/Makefile @@ -1,27 +1,30 @@ -SIGNING_USER_EMAIL=info@rabbitmq.com +PACKAGES_DIR ?= ../../../PACKAGES +REPO_DIR ?= debian + +SIGNING_USER_EMAIL ?= info@rabbitmq.com ifeq "$(UNOFFICIAL_RELEASE)" "" -HOME_ARG=HOME=$(GNUPG_PATH) +HOME_ARG = HOME=$(GNUPG_PATH) endif all: debian_apt_repository clean: - rm -rf debian + rm -rf $(REPO_DIR) CAN_HAS_REPREPRO=$(shell [ -f /usr/bin/reprepro ] && echo true) ifeq ($(CAN_HAS_REPREPRO), true) debian_apt_repository: clean - mkdir -p debian/conf - cp -a distributions debian/conf + mkdir -p $(REPO_DIR)/conf + cp -a distributions $(REPO_DIR)/conf ifeq "$(UNOFFICIAL_RELEASE)" "" - echo SignWith: $(SIGNING_USER_EMAIL) >> debian/conf/distributions + echo SignWith: $(SIGNING_USER_EMAIL) >> $(REPO_DIR)/conf/distributions endif - for FILE in ../Debian/*.changes ; do \ + for FILE in $(PACKAGES_DIR)/*.changes ; do \ $(HOME_ARG) reprepro --ignore=wrongdistribution \ - -Vb debian include kitten $${FILE} ; \ + -Vb $(REPO_DIR) include kitten $${FILE} ; \ done - reprepro -Vb debian createsymlinks + reprepro -Vb $(REPO_DIR) createsymlinks else debian_apt_repository: @echo Not building APT repository as reprepro could not be found |
