summaryrefslogtreecommitdiffstats
path: root/rules
blob: a319c67efc3edffa9904c9c88ba178fe18b6f3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

BUILD_DIR=$(CURDIR)/debian/mandaye-meyzieu

%:
	dh $@ --with python2

override_dh_install:
	dh_install
	for ver in $(shell pyversions -vr); do \
		ln -s /etc/mandaye-meyzieu/local_config.py $(BUILD_DIR)/usr/lib/python$$ver/dist-packages/rp_meyzieu/; \
	done
	install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-meyzieu
	install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-meyzieu/data
	install -d -m 0750 $(BUILD_DIR)/var/lib/mandaye-meyzieu/sessions
	install -d -m 0755 $(BUILD_DIR)/var/run/mandaye-meyzieu
	install -d -m 0755 $(BUILD_DIR)/var/log/mandaye-meyzieu
	install -d -m 0755 $(BUILD_DIR)/usr/share/mandaye-meyzieu
	cp -R rp_meyzieu/static $(BUILD_DIR)/usr/share/mandaye-meyzieu