root / snf-common / debian / rules @ 8a29271f
History | View | Annotate | Download (762 Bytes)
1 |
#!/usr/bin/make -f |
---|---|
2 |
|
3 |
%: |
4 |
dh $@ --with python2 |
5 |
|
6 |
package=snf-common |
7 |
config_lvl=00 |
8 |
|
9 |
override_dh_auto_install: |
10 |
dh_auto_install |
11 |
|
12 |
# this package provides the synnefo namespace __init__.py |
13 |
for py in $(shell pyversions -vr debian/control); do \ |
14 |
cp synnefo/__init__.py debian/$(package)/usr/lib/python$$py/*-packages/synnefo/; \ |
15 |
done |
16 |
|
17 |
mkdir -p debian/$(package)/etc/synnefo |
18 |
echo -e "# Place your custom configuration options here\n\n" > debian/$(package)/etc/synnefo/99-local.conf |
19 |
|
20 |
for f in admins logging; do \ |
21 |
cp synnefo/settings/default/$$f.py \ |
22 |
debian/$(package)/etc/synnefo/$(config_lvl)-$(package)-$$f.conf; \ |
23 |
done; |
24 |
|
25 |
for py in $(shell pyversions -vr debian/control); do \ |
26 |
rm debian/$(package)/usr/lib/python$$py/*-packages/*-nspkg.pth; \ |
27 |
done |
28 |
|