[sr-dev] git:5.0:6c777c27: src/Makefile: fix make deb rules
Victor Seva
linuxmaniac at torreviejawireless.org
Fri Jun 2 11:46:48 CEST 2017
Module: kamailio
Branch: 5.0
Commit: 6c777c277e90e8e17196a1172fabd90b17b7cd63
URL: https://github.com/kamailio/kamailio/commit/6c777c277e90e8e17196a1172fabd90b17b7cd63
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2017-06-02T11:46:39+02:00
src/Makefile: fix make deb rules
* dpkg-buildpackage needs to be executed from the root of the project
* don't sign any file
(cherry picked from commit d0bfefd0f03962b61162eeb65fe01e8dff91674f)
---
Modified: src/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/6c777c277e90e8e17196a1172fabd90b17b7cd63.diff
Patch: https://github.com/kamailio/kamailio/commit/6c777c277e90e8e17196a1172fabd90b17b7cd63.patch
---
diff --git a/src/Makefile b/src/Makefile
index bbf5f8db8a..2bbbdc3c89 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -609,25 +609,27 @@ bin:
.PHONY: deb
deb:
- - at if [ -d debian ]; then \
- dpkg-buildpackage -rfakeroot -tc; \
+ (cd ..; \
+ if [ -d debian ]; then \
+ dpkg-buildpackage -rfakeroot -tc --no-sign; \
rm debian; \
else \
- ln -s ../pkg/$(MAIN_NAME)/deb/debian debian; \
- dpkg-buildpackage -rfakeroot -tc; \
+ ln -s pkg/$(MAIN_NAME)/deb/debian debian; \
+ dpkg-buildpackage -rfakeroot -tc --no-sign; \
rm debian; \
- fi
+ fi)
.PHONY: deb-stable
deb-stable:
- - at if [ -d debian ]; then \
- dpkg-buildpackage -rfakeroot -tc; \
+ (cd ..; \
+ if [ -d debian ]; then \
+ dpkg-buildpackage -rfakeroot -tc --no-sign; \
rm debian; \
else \
- ln -s ../pkg/$(MAIN_NAME)/deb/jessie debian; \
- dpkg-buildpackage -rfakeroot -tc; \
+ ln -s pkg/$(MAIN_NAME)/deb/jessie debian; \
+ dpkg-buildpackage -rfakeroot -tc --no-sign; \
rm debian; \
- fi
+ fi)
.PHONY: sunpkg
sunpkg:
More information about the sr-dev
mailing list