Index: trunk/debs/testswarm/debian/testswarm.substvars |
— | — | @@ -1 +1 @@ |
2 | | -misc:Depends= |
| 2 | +misc:Depends=debconf (>= 0.5) | debconf-2.0 |
Index: trunk/debs/testswarm/debian/rules |
— | — | @@ -21,14 +21,12 @@ |
22 | 22 | #$(MAKE) |
23 | 23 | touch $@ |
24 | 24 | |
25 | | -clean: |
| 25 | +clean: unpatch |
26 | 26 | dh_testdir |
27 | 27 | dh_testroot |
28 | | - rm -f build-stamp |
29 | | - #$(MAKE) clean |
| 28 | + rm -f build-stamp configure-stamp |
| 29 | + dh_clean |
30 | 30 | |
31 | | - dh_clean |
32 | | - |
33 | 31 | install: build |
34 | 32 | dh_testdir |
35 | 33 | dh_testroot |
— | — | @@ -55,6 +53,7 @@ |
56 | 54 | dh_installchangelogs |
57 | 55 | dh_installdocs |
58 | 56 | dh_installman |
| 57 | + dh_installdebconf |
59 | 58 | dh_link |
60 | 59 | dh_strip |
61 | 60 | dh_compress |
— | — | @@ -66,4 +65,4 @@ |
67 | 66 | dh_builddeb |
68 | 67 | |
69 | 68 | binary: binary-indep binary-arch |
70 | | -.PHONY: build clean binary-indep binary-arch binary install |
| 69 | +.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch |
Index: trunk/debs/testswarm/debian/testswarm.config |
— | — | @@ -5,9 +5,13 @@ |
6 | 6 | . /usr/share/debconf/confmodule |
7 | 7 | if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then |
8 | 8 | . /usr/share/dbconfig-common/dpkg/config.mysql |
| 9 | + dbc_first_version="0.0.20111012-1" |
| 10 | + dbc_load_include="php:/etc/testswarm/debian.php" |
9 | 11 | dbc_go testswarm $@ |
10 | 12 | fi |
11 | 13 | |
12 | 14 | db_go || true |
13 | 15 | |
| 16 | +#DEBHELPER# |
| 17 | + |
14 | 18 | exit 0 |
Index: trunk/debs/testswarm/debian/testswarm.debhelper.log |
— | — | @@ -2,6 +2,7 @@ |
3 | 3 | dh_installchangelogs |
4 | 4 | dh_installdocs |
5 | 5 | dh_installman |
| 6 | +dh_installdebconf |
6 | 7 | dh_link |
7 | 8 | dh_strip |
8 | 9 | dh_compress |
Index: trunk/debs/testswarm/debian/testswarm.postrm.debhelper |
— | — | @@ -0,0 +1,6 @@ |
| 2 | +# Automatically added by dh_installdebconf |
| 3 | +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then |
| 4 | + . /usr/share/debconf/confmodule |
| 5 | + db_purge |
| 6 | +fi |
| 7 | +# End automatically added section |
Index: trunk/debs/testswarm/debian/testswarm.postinst |
— | — | @@ -5,14 +5,16 @@ |
6 | 6 | |
7 | 7 | set -e |
8 | 8 | |
| 9 | +#export DEBCONF_DEBUG=developer |
| 10 | + |
9 | 11 | . /usr/share/debconf/confmodule |
10 | 12 | . /usr/share/dbconfig-common/dpkg/config.mysql |
11 | 13 | dbc_first_version="0.0.20111012-1" |
12 | | -dbc_generate_include="template:/usr/share/testswarm/site/config.ini" |
| 14 | +#dbc_generate_include="template:/usr/share/testswarm/site/config.ini" |
| 15 | +#dbc_generate_include_args="-otemplate_infile=/etc/testswarm/config.Debian.ini" |
| 16 | +dbc_generate_include="php:/etc/testswarm/debian.php" |
13 | 17 | dbc_generate_include_owner="root:www-data" |
14 | 18 | dbc_generate_include_perms="0640" |
15 | | -dbc_generate_include_args="-o template_infile=/etc/testswarm/config.Debian.ini --dbname=database_default --dbpass=database_password --dbuser=database_username --dbserver=database_hostname --dbport=database_port" |
16 | | -dbc_generate_include_args="-o template_infile=/etc/testswarm/config.Debian.ini" |
17 | 19 | dbc_go testswarm $@ |
18 | 20 | |
19 | 21 | # config/testswarm.sql |