blob: 265ec52a52688b9c30cec66df3a717d8b8d4e8b8 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/pq/ $(POSTGRESQL_CPPFLAGS)
if USE_COVERAGE
AM_CFLAGS = --coverage -O0
XLIB = -lgcov
endif
pkgcfgdir = $(prefix)/share/taler/config.d/
pkgcfg_DATA = \
auditordb-postgres.conf
sqldir = $(prefix)/share/taler/sql/auditor/
sqlinputs = \
0002-*.sql \
auditor-0002.sql.in \
auditor_do_*.sql \
procedures.sql.in
sql_DATA = \
versioning.sql \
auditor-0001.sql \
auditor-0002.sql \
drop.sql \
restart.sql \
procedures.sql
CLEANFILES = \
auditor-0002.sql
procedures.sql: procedures.sql.in auditor_do_*.sql
chmod +w $@ 2> /dev/null || true
gcc -E -P -undef - < procedures.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@
chmod ugo-w $@
auditor-0002.sql: auditor-0002.sql.in 0002-*.sql
chmod +w $@ 2> /dev/null || true
gcc -E -P -undef - < auditor-0002.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@
chmod ugo-w $@
EXTRA_DIST = \
auditordb-postgres.conf \
test-auditor-db-postgres.conf \
$(sqlinputs) \
$(sql_DATA) \
pg_template.h pg_template.c \
pg_template.sh
plugindir = $(libdir)/taler
if HAVE_POSTGRESQL
plugin_LTLIBRARIES = \
libtaler_plugin_auditordb_postgres.la
endif
# MARK: CRUD
libtaler_plugin_auditordb_postgres_la_SOURCES = \
plugin_auditordb_postgres.c pg_helper.h \
pg_delete_deposit_confirmations.c pg_delete_deposit_confirmations.h \
pg_delete_pending_deposit.c pg_delete_pending_deposit.h \
pg_delete_purse_info.c pg_delete_purse_info.h \
pg_del_denomination_balance.h pg_del_denomination_balance.c \
pg_del_reserve_info.c pg_del_reserve_info.h \
pg_get_auditor_progress.c pg_get_auditor_progress.h \
pg_get_balance.c pg_get_balance.h \
pg_get_denomination_balance.c pg_get_denomination_balance.h \
pg_get_deposit_confirmations.c pg_get_deposit_confirmations.h \
pg_get_purse_info.c pg_get_purse_info.h \
pg_get_reserve_info.c pg_get_reserve_info.h \
pg_get_wire_fee_summary.c pg_get_wire_fee_summary.h \
pg_insert_auditor_progress.c pg_insert_auditor_progress.h \
pg_insert_balance.c pg_insert_balance.h \
pg_insert_denomination_balance.c pg_insert_denomination_balance.h \
pg_insert_deposit_confirmation.c pg_insert_deposit_confirmation.h \
pg_insert_historic_reserve_revenue.c pg_insert_historic_reserve_revenue.h \
pg_insert_pending_deposit.c pg_insert_pending_deposit.h \
pg_insert_purse_info.c pg_insert_purse_info.h \
pg_insert_reserve_info.c pg_insert_reserve_info.h \
pg_select_historic_denom_revenue.c pg_select_historic_denom_revenue.h \
pg_select_historic_reserve_revenue.c pg_select_historic_reserve_revenue.h \
pg_select_pending_deposits.c pg_select_pending_deposits.h \
pg_select_purse_expired.c pg_select_purse_expired.h \
pg_update_auditor_progress.c pg_update_auditor_progress.h \
pg_update_balance.c pg_update_balance.h \
pg_update_denomination_balance.c pg_update_denomination_balance.h \
pg_update_purse_info.c pg_update_purse_info.h \
pg_update_reserve_info.c pg_update_reserve_info.h \
pg_update_wire_fee_summary.c pg_update_wire_fee_summary.h \
pg_get_amount_arithmetic_inconsistency.c pg_get_amount_arithmetic_inconsistency.h \
pg_get_coin_inconsistency.c pg_get_coin_inconsistency.h \
pg_get_row_inconsistency.c pg_get_row_inconsistency.h \
pg_insert_amount_arithmetic_inconsistency.c pg_insert_amount_arithmetic_inconsistency.h \
pg_insert_coin_inconsistency.c pg_insert_coin_inconsistency.h \
pg_insert_row_inconsistency.c pg_insert_row_inconsistency.h \
pg_del_amount_arithmetic_inconsistency.c pg_del_amount_arithmetic_inconsistency.h \
pg_del_coin_inconsistency.c pg_del_coin_inconsistency.h \
pg_del_row_inconsistency.c pg_del_row_inconsistency.h \
pg_del_emergency.c pg_del_emergency.h \
pg_insert_emergency.c pg_insert_emergency.h \
pg_get_emergency.c pg_get_emergency.h \
pg_del_emergency_by_count.c pg_del_emergency_by_count.h \
pg_insert_emergency_by_count.c pg_insert_emergency_by_count.h \
pg_get_emergency_by_count.c pg_get_emergency_by_count.h \
pg_del_denomination_key_validity_withdraw_inconsistency.c pg_del_denomination_key_validity_withdraw_inconsistency.h \
pg_insert_denomination_key_validity_withdraw_inconsistency.c pg_insert_denomination_key_validity_withdraw_inconsistency.h \
pg_get_denomination_key_validity_withdraw_inconsistency.c pg_get_denomination_key_validity_withdraw_inconsistency.h \
pg_del_purse_not_closed_inconsistencies.c pg_del_purse_not_closed_inconsistencies.h \
pg_insert_purse_not_closed_inconsistencies.c pg_insert_purse_not_closed_inconsistencies.h \
pg_get_purse_not_closed_inconsistencies.c pg_get_purse_not_closed_inconsistencies.h \
pg_del_reserve_balance_insufficient_inconsistency.c pg_del_reserve_balance_insufficient_inconsistency.h \
pg_insert_reserve_balance_insufficient_inconsistency.c pg_insert_reserve_balance_insufficient_inconsistency.h \
pg_get_reserve_balance_insufficient_inconsistency.c pg_get_reserve_balance_insufficient_inconsistency.h \
pg_del_bad_sig_losses.c pg_del_bad_sig_losses.h \
pg_insert_bad_sig_losses.c pg_insert_bad_sig_losses.h \
pg_get_bad_sig_losses.c pg_get_bad_sig_losses.h \
pg_update_bad_sig_losses.c pg_update_bad_sig_losses.h \
pg_del_auditor_closure_lags.c pg_del_auditor_closure_lags.h \
pg_insert_auditor_closure_lags.c pg_insert_auditor_closure_lags.h \
pg_get_auditor_closure_lags.c pg_get_auditor_closure_lags.h \
pg_del_refreshes_hanging.c pg_del_refreshes_hanging.h \
pg_insert_refreshes_hanging.c pg_insert_refreshes_hanging.h \
pg_get_refreshes_hanging.c pg_get_refreshes_hanging.h \
pg_update_emergency_by_count.c pg_update_emergency_by_count.h \
pg_update_row_inconsistency.c pg_update_row_inconsistency.h \
pg_update_purse_not_closed_inconsistencies.c pg_update_purse_not_closed_inconsistencies.h \
pg_update_reserve_balance_insufficient_inconsistency.c pg_update_reserve_balance_insufficient_inconsistency.h \
pg_update_coin_inconsistency.c pg_update_coin_inconsistency.h \
pg_update_progress.c pg_update_progress.h \
pg_update_denomination_key_validity_withdraw_inconsistency.c pg_update_denomination_key_validity_withdraw_inconsistency.h \
pg_update_refreshes_hanging.c pg_update_refreshes_hanging.h \
pg_update_emergency.c pg_update_emergency.h \
pg_update_closure_lags.c pg_update_closure_lags.h \
pg_get_reserve_in_inconsistency.c pg_get_reserve_in_inconsistency.h \
pg_del_reserve_in_inconsistency.c pg_del_reserve_in_inconsistency.h \
pg_insert_reserve_in_inconsistency.c pg_insert_reserve_in_inconsistency.h \
pg_update_reserve_in_inconsistency.c pg_update_reserve_in_inconsistency.h \
pg_get_reserve_not_closed_inconsistency.c pg_get_reserve_not_closed_inconsistency.h \
pg_del_reserve_not_closed_inconsistency.c pg_del_reserve_not_closed_inconsistency.h \
pg_insert_reserve_not_closed_inconsistency.c pg_insert_reserve_not_closed_inconsistency.h \
pg_update_reserve_not_closed_inconsistency.c pg_update_reserve_not_closed_inconsistency.h \
pg_get_denominations_without_sigs.c pg_get_denominations_without_sigs.h \
pg_del_denominations_without_sigs.c pg_del_denominations_without_sigs.h \
pg_insert_denominations_without_sigs.c pg_insert_denominations_without_sigs.h \
pg_update_denominations_without_sigs.c pg_update_denominations_without_sigs.h \
pg_get_misattribution_in_inconsistency.c pg_get_misattribution_in_inconsistency.h \
pg_del_misattribution_in_inconsistency.c pg_del_misattribution_in_inconsistency.h \
pg_insert_misattribution_in_inconsistency.c pg_insert_misattribution_in_inconsistency.h \
pg_update_misattribution_in_inconsistency.c pg_update_misattribution_in_inconsistency.h \
pg_get_reserves.c pg_get_reserves.h \
pg_del_reserves.c pg_del_reserves.h \
pg_insert_reserves.c pg_insert_reserves.h \
pg_update_reserves.c pg_update_reserves.h \
pg_get_purses.c pg_get_purses.h \
pg_del_purses.c pg_del_purses.h \
pg_insert_purses.c pg_insert_purses.h \
pg_update_purses.c pg_update_purses.h \
pg_get_historic_denomination_revenue.c pg_get_historic_denomination_revenue.h \
pg_del_historic_denomination_revenue.c pg_del_historic_denomination_revenue.h \
pg_insert_historic_denomination_revenue.c pg_insert_historic_denomination_revenue.h \
pg_update_historic_denomination_revenue.c pg_update_historic_denomination_revenue.h \
pg_get_denomination_pending.c pg_get_denomination_pending.h \
pg_del_denomination_pending.c pg_del_denomination_pending.h \
pg_insert_denomination_pending.c pg_insert_denomination_pending.h \
pg_update_denomination_pending.c pg_update_denomination_pending.h \
pg_get_historic_reserve_summary.c pg_get_historic_reserve_summary.h \
pg_del_historic_reserve_summary.c pg_del_historic_reserve_summary.h \
pg_insert_historic_reserve_summary.c pg_insert_historic_reserve_summary.h \
pg_update_historic_reserve_summary.c pg_update_historic_reserve_summary.h \
pg_get_exchange_signkeys.c pg_get_exchange_signkeys.h \
pg_del_exchange_signkeys.c pg_del_exchange_signkeys.h \
pg_insert_exchange_signkeys.c pg_insert_exchange_signkeys.h \
pg_update_exchange_signkeys.c pg_update_exchange_signkeys.h \
pg_get_wire_format_inconsistency.c pg_get_wire_format_inconsistency.h \
pg_del_wire_format_inconsistency.c pg_del_wire_format_inconsistency.h \
pg_insert_wire_format_inconsistency.c pg_insert_wire_format_inconsistency.h \
pg_update_wire_format_inconsistency.c pg_update_wire_format_inconsistency.h \
pg_get_wire_out_inconsistency.c pg_get_wire_out_inconsistency.h \
pg_del_wire_out_inconsistency.c pg_del_wire_out_inconsistency.h \
pg_insert_wire_out_inconsistency.c pg_insert_wire_out_inconsistency.h \
pg_update_wire_out_inconsistency.c pg_update_wire_out_inconsistency.h \
pg_get_reserve_balance_summary_wrong_inconsistency.c pg_get_reserve_balance_summary_wrong_inconsistency.h \
pg_del_reserve_balance_summary_wrong_inconsistency.c pg_del_reserve_balance_summary_wrong_inconsistency.h \
pg_insert_reserve_balance_summary_wrong_inconsistency.c pg_insert_reserve_balance_summary_wrong_inconsistency.h \
pg_update_reserve_balance_summary_wrong_inconsistency.c pg_update_reserve_balance_summary_wrong_inconsistency.h \
pg_get_row_minor_inconsistencies.c pg_get_row_minor_inconsistencies.h \
pg_del_row_minor_inconsistencies.c pg_del_row_minor_inconsistencies.h \
pg_insert_row_minor_inconsistencies.c pg_insert_row_minor_inconsistencies.h \
pg_update_row_minor_inconsistencies.c pg_update_row_minor_inconsistencies.h \
pg_del_auditor_progress.c pg_del_auditor_progress.h \
pg_get_fee_time_inconsistency.c pg_get_fee_time_inconsistency.h \
pg_del_fee_time_inconsistency.c pg_del_fee_time_inconsistency.h \
pg_insert_fee_time_inconsistency.c pg_insert_fee_time_inconsistency.h \
pg_update_fee_time_inconsistency.c pg_update_fee_time_inconsistency.h \
pg_get_balances.c pg_get_balances.h \
pg_del_balances.c pg_del_balances.h \
pg_insert_balances.c pg_insert_balances.h \
pg_update_deposit_confirmations.c pg_update_deposit_confirmations.h \
pg_update_amount_arithmetic_inconsistency.c pg_update_amount_arithmetic_inconsistency.h \
pg_update_balances.c pg_update_balances.h
libtaler_plugin_auditordb_postgres_la_LDFLAGS = \
$(TALER_PLUGIN_LDFLAGS)
libtaler_plugin_auditordb_postgres_la_LIBADD = \
$(LTLIBINTL) \
$(top_builddir)/src/pq/libtalerpq.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetpq \
-lgnunetutil \
-lpq \
$(XLIB)
lib_LTLIBRARIES = \
libtalerauditordb.la
libtalerauditordb_la_SOURCES = \
auditordb_plugin.c
libtalerauditordb_la_LIBADD = \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetutil $(XLIB)
libtalerauditordb_la_LDFLAGS = \
$(POSTGRESQL_LDFLAGS) \
-version-info 0:0:0 \
-no-undefined
#EXTRA_test_auditordb_postgres_DEPENDENCIES = \
# libtaler_plugin_auditordb_postgres.la
check_PROGRAMS = \
test_auditordb_checkpoints-postgres \
test_auditordb-postgres
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
TESTS = \
test_auditordb_checkpoints-postgres \
test_auditordb-postgres
test_auditordb_checkpoints_postgres_SOURCES = \
test_auditordb_checkpoints.c
test_auditordb_checkpoints_postgres_LDADD = \
libtalerauditordb.la \
$(top_srcdir)/src/pq/libtalerpq.la \
$(top_srcdir)/src/util/libtalerutil.la \
-lgnunetutil \
$(XLIB)
test_auditordb_postgres_SOURCES = \
test_auditordb.c
test_auditordb_postgres_LDADD = \
libtalerauditordb.la \
$(top_srcdir)/src/pq/libtalerpq.la \
$(top_srcdir)/src/util/libtalerutil.la \
-lgnunetutil \
$(XLIB)
|