diff options
author | Peter Palfrader <peter@palfrader.org> | 2005-09-14 13:05:58 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2005-09-14 13:05:58 +0000 |
commit | e4ee8a006949843541ecadcd380d4d7536b0e536 (patch) | |
tree | 836d2ef08f9dbe1061a8e80e16702c8e810e6fb3 /debian/rules | |
parent | 0119f554dae68ab7fe8a872ba202091735a6c488 (diff) | |
download | tor-e4ee8a006949843541ecadcd380d4d7536b0e536.tar.gz tor-e4ee8a006949843541ecadcd380d4d7536b0e536.zip |
Merge 0.1.0.14+XXXX changestor-0.1.1.7-alphadebian-version-0.1.1.6-alpha-2
svn:r5053
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 072302f3f1..1adeb8e0fd 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,7 @@ # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +LOCALHOST_IP ?= $(shell getent hosts localhost | awk '{print $$1}') CFLAGS = -Wall -g @@ -49,6 +50,7 @@ endif configure: patch-stamp config.status: configure + @if [ "$(LOCALHOST_IP)" != "127.0.0.1" ]; then echo; echo; echo; echo; echo; echo "######################################################################"; echo "WARNING: This system does not think localhost is 127.0.0.1. Will ignore result of testsuite. Please fix your system/chroot."; echo "######################################################################"; echo; echo; echo; echo; echo "Note: 'getent hosts localhost' should return '127.0.0.1 localhost'"; echo; fi dh_testdir CFLAGS="$(CFLAGS)" ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ @@ -70,8 +72,15 @@ build-stamp: config.status @echo @echo # Running unit tests - if [ "$(RUN_TEST)" != "no" ]; then \ - src/or/test; \ + @if [ "$(RUN_TEST)" != "no" ]; then \ + if [ "$(LOCALHOST_IP)" != "127.0.0.1" ]; then \ + echo; echo; echo "######################################################################"; echo "WARNING: This system does not think localhost is 127.0.0.1. Will ignore result of testsuite. Please fix your system/chroot."; echo "######################################################################"; echo; echo; \ + echo "src/or/test || true"; \ + src/or/test || true; \ + else \ + echo "src/or/test"; \ + src/or/test; \ + fi; \ else \ echo -e "\n\nSkipping unittests\n\n"; \ fi @@ -170,7 +179,8 @@ binary-arch: build install # dh_installcron dh_installman dh_link - #dh_strip + # Change this for debhelper compatibility level 5 or later! + dh_strip --dbg-package=tor dh_compress dh_fixperms dh_installdeb @@ -178,6 +188,7 @@ binary-arch: build install dh_gencontrol dh_md5sums dh_builddeb + @if [ "$(LOCALHOST_IP)" != "127.0.0.1" ]; then echo; echo; echo; echo; echo; echo "######################################################################"; echo "WARNING: This system does not think localhost is 127.0.0.1. Result of testsuite has been ignored. Please fix your system/chroot."; echo "######################################################################"; echo; echo; echo; echo; echo "Note: 'getent hosts localhost' should return '127.0.0.1 localhost'"; echo; fi binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install |