This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
mandaye-cud/rules

20 lines
666 B
Makefile
Executable File

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