summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules15
1 files changed, 7 insertions, 8 deletions
diff --git a/debian/rules b/debian/rules
index 41ef77c..d257207 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,33 +5,32 @@ include /usr/share/dpkg/default.mk
export CFLAGS += $(shell getconf LFS_CFLAGS)
export LDFLAGS += $(shell getconf LFS_LDFLAGS)
-PREFIX_IPV4 = $(CURDIR)/debian/ucspi-tcp/usr
-PREFIX_IPV6 = $(CURDIR)/debian/ucspi-tcp-ipv6/usr
+PREFIX_IPV4 = $(CURDIR)/debian/ucspi-tcp
+PREFIX_IPV6 = $(CURDIR)/debian/ucspi-tcp-ipv6
%:
dh $@
override_dh_auto_configure:
- echo $(PREFIX_IPV4) > conf-home
mkdir ipv6
xargs install -t ipv6 < FILES
cd ipv6 && patch -p1 < ../debian/ipv6-support.patch
- echo $(PREFIX_IPV6) > ipv6/conf-home
+ echo '/usr' | tee conf-home ipv6/conf-home
echo '$(CC) $(CFLAGS) $(CPPFLAGS)' | tee ipv6/conf-cc conf-cc
echo '$(CC) $(LDFLAGS)' | tee ipv6/conf-ld conf-ld
override_dh_auto_build:
- $(MAKE)
- $(MAKE) -C ipv6
+ $(MAKE) DESTDIR=$(PREFIX_IPV4)
+ $(MAKE) -C ipv6 DESTDIR=$(PREFIX_IPV6)
override_dh_auto_install:
- mkdir -p $(PREFIX_IPV4) $(PREFIX_IPV6)
+ mkdir -p $(PREFIX_IPV4)/usr $(PREFIX_IPV6)/usr
./install
./instcheck
cd ipv6 && ./install && ./instcheck
# ./install incorrectly install manpages under /usr/man, not
# /usr/share/man.
- rm -r $(PREFIX_IPV6)/man
+ rm -r $(PREFIX_IPV6)/usr/man
# Upstream does strange thing -- its test suite assumes that programs
# are already installed. Normally, checks are performed between `build'