blob: d1cda62a62363d28d9666bfc2bcb9ed5f29bf6f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME = ishtar
%:
@dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_test:
sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "ishtar-setup-test";'
sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "test_ishtar-setup-test";'
sudo -u postgres psql -c 'DROP ROLE IF EXISTS "ishtar-setup-test";'
# superuser needed to create postgis extension...
sudo -u postgres createuser --superuser ishtar-setup-test
sudo -u postgres psql -c "ALTER USER \"ishtar-setup-test\" WITH PASSWORD 'ishtar-setup-test';"
sudo -u postgres createdb -O ishtar-setup-test ishtar-setup-test
dh_auto_test
sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "ishtar-setup-test";'
sudo -u postgres psql -c 'DROP ROLE IF EXISTS "ishtar-setup-test";'
#PYTHON2=$(shell pyversions -vr)
#
## Prevent setuptools/distribute from accessing the internet.
#export http_proxy = http://127.0.9.1:9
#
#%:
# dh $@
#
#override_dh_auto_build:
# echo "Building does nothing"
#
#override_dh_auto_configure:
# echo "Configuring does nothing"
#
#override_dh_auto_install:
# git ls-files \
# | grep -v ^debian \
# | grep -v ^django-simple-history \
# | grep -v ^doc \
# > install.list
# mkdir -p debian/tmp/var/lib/python-django-ishtar
# rsync -av --files-from install.list . debian/tmp/var/lib/python-django-ishtar
#
#override_dh_auto_clean:
# dh_auto_clean
# rm -f install.list
|