1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#!/usr/bin/make -f
ifeq ($(shell uname -s),Linux)
TARGET=linux26
else
TARGET=generic
endif
build:
test -d patches || ln -s debian/patches
quilt push -a || test $$? = 2
dh build --until dh_auto_configure
make PREFIX=/usr TARGET=$(TARGET) USE_PCRE=1 IGNOREGIT=true
dh build --after dh_auto_build
clean:
dh clean
quilt pop -a || test $$? = 2
rm -f patches
rm -rf .pc
install: build
binary-arch: install
dh binary-arch --before dh_auto_install
make TARGET=$(TARGET) DESTDIR=debian/haproxy PREFIX=/usr \
MANDIR=/usr/share/man DOCDIR=/usr/share/doc/haproxy install
cp README debian/haproxy/usr/share/doc/haproxy
mkdir -p debian/haproxy/etc/haproxy
cp -r examples/errorfiles debian/haproxy/etc/haproxy/errors
rm debian/haproxy/etc/haproxy/errors/README
cp debian/haproxy.cfg debian/haproxy/etc/haproxy
dh binary-arch --after dh_auto_install
binary-indep: install
dh binary-indep
binary: binary-arch binary-indep
|