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-cam/rules

19 lines
613 B
Makefile
Executable File

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