debian: change builddir variable

This commit is contained in:
Jérôme Schneider 2014-04-09 14:55:37 +02:00
parent 17e515b3f8
commit 21fa11a61d
1 changed files with 12 additions and 12 deletions

24
rules
View File

@ -1,19 +1,19 @@
#!/usr/bin/make -f
BUILD_DIR := 'debian/mandaye-vincennes'
BUILD_DIR=$(CURDIR)/debian/mandaye-vincennes
%:
dh $@ --with python2
override_dh_install:
dh_install
for ver in $(shell pyversions -vr); do \
ln -s /etc/mandaye-vincennes/local_config.py $(BUILD_DIR)/usr/lib/python$$ver/dist-packages/mandaye_vincennes/; \
done
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-vincennes
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-vincennes/data
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-vincennes/sessions
install -d -m 0755 $(BUILD_DIR)/var/run/mandaye-vincennes
install -d -m 0755 $(BUILD_DIR)/var/log/mandaye-vincennes
install -d -m 0755 $(BUILD_DIR)/usr/share/mandaye-vincennes
cp -R mandaye_vincennes/static $(BUILD_DIR)/usr/share/mandaye-vincennes
dh_install
for ver in $(shell pyversions -vr); do \
ln -s /etc/mandaye-vincennes/local_config.py $(BUILD_DIR)/usr/lib/python$$ver/dist-packages/mandaye_vincennes/; \
done
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-vincennes
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-vincennes/data
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-vincennes/sessions
install -d -m 0755 $(BUILD_DIR)/var/run/mandaye-vincennes
install -d -m 0755 $(BUILD_DIR)/var/log/mandaye-vincennes
install -d -m 0755 $(BUILD_DIR)/usr/share/mandaye-vincennes
cp -R mandaye_vincennes/static $(BUILD_DIR)/usr/share/mandaye-vincennes