root / debian / rules @ 1a2d1d0e
History | View | Annotate | Download (1.4 kB)
1 |
#!/usr/bin/make -f |
---|---|
2 |
# Sample debian/rules that uses debhelper. |
3 |
# This file is public domain software, originally written by Joey Hess. |
4 |
# |
5 |
|
6 |
# Uncomment this to turn on verbose mode. |
7 |
export DH_VERBOSE=1 |
8 |
|
9 |
BUILDDIR := debian |
10 |
DESTDIR := ${CURDIR}/${BUILDDIR} |
11 |
|
12 |
PACKAGES = \ |
13 |
# snf-astakos-app \ |
14 |
# snf-common \ |
15 |
# snf-branding \ |
16 |
# snf-cyclades-app \ |
17 |
# snf-cyclades-gtools \ |
18 |
# snf-webproject \ |
19 |
# snf-pithos-app \ |
20 |
# snf-pithos-backend \ |
21 |
# snf-tools \ |
22 |
# snf-stats-app \ |
23 |
# snf-django-lib \ |
24 |
# snf-deploy |
25 |
|
26 |
PYTHON_PACKAGES = \ |
27 |
astakosclient |
28 |
|
29 |
%: |
30 |
dh $@ --with python2 |
31 |
|
32 |
|
33 |
override_dh_auto_install: |
34 |
for package in $(PACKAGES); do \ |
35 |
cd $$package ; \ |
36 |
python setup.py install --root=$(DESTDIR)/$$package --install-layout=deb ; \ |
37 |
cd - ; \ |
38 |
done |
39 |
for package in $(PYTHON_PACKAGES); do \ |
40 |
cd $$package ; \ |
41 |
python setup.py install --root=$(DESTDIR)/python-$$package --install-layout=deb ; \ |
42 |
cd - ; \ |
43 |
done |
44 |
# -for py in $(shell pyversions -vr debian/control); do \ |
45 |
# rm $(DESTDIR)/*/usr/lib/python$$py/*-packages/*-nspkg.pth; \ |
46 |
# done |
47 |
dh_install |
48 |
|
49 |
override_dh_fixperms: |
50 |
dh_fixperms |
51 |
chmod 0640 $(DESTDIR)/*/etc/synnefo/* |
52 |
chmod 0750 $(DESTDIR)/*/etc/synnefo |
53 |
chown -R root:www-data $(DESTDIR)/*/etc/synnefo |
54 |
|
55 |
override_dh_installinit: |
56 |
dh_installinit --name=snf-ganeti-eventd --error-handler=true -- defaults 20 80 -i |
57 |
dh_installinit --name=snf-dispatcher --error-handler=true -- defaults 20 80 -i |
58 |
|
59 |
override_dh_build: |