summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-17 21:30:01 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-17 21:30:01 +0100
commit4e80d73be1188907b3310e5a9bdc028d17a53d41 (patch)
treeae36a6ded233a22b042e232d17a41fb55be0e1b2 /bin
parentce67e1eb80a1c7a76b68cee6fe1dcb85509cb4ae (diff)
downloaddeployment-4e80d73be1188907b3310e5a9bdc028d17a53d41.tar.gz
deployment-4e80d73be1188907b3310e5a9bdc028d17a53d41.tar.bz2
deployment-4e80d73be1188907b3310e5a9bdc028d17a53d41.zip
add build rules for sync
Diffstat (limited to 'bin')
-rwxr-xr-xbin/taler-config-generate1
-rwxr-xr-xbin/taler-deployment23
2 files changed, 24 insertions, 0 deletions
diff --git a/bin/taler-config-generate b/bin/taler-config-generate
index 8e233aa..1396d15 100755
--- a/bin/taler-config-generate
+++ b/bin/taler-config-generate
@@ -282,6 +282,7 @@ def main(currency, envname, outdir, exchange_pub, twisted):
sc = ConfigFile(envname, currency, exchange_pub, twisted, "sync.conf")
sc.cfg_put("sync", "annual_fee", sc.currency+":0.1")
sc.cfg_put("sync", "serve", "unix")
+ sc.cfg_put("syncdb-postgres", "config", "postgres:///taler{}" % envname)
sc.cfg_put("sync", "unixpath", "$HOME/sockets/sync.http")
config_files.append(sc)
diff --git a/bin/taler-deployment b/bin/taler-deployment
index 4e0a58d..1b76dbf 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -188,6 +188,23 @@ def build_merchant(r, p):
subprocess.run(["make", "install"], check=True)
(p / "taler-buildstamp").touch()
+def build_sync(r, p):
+ update_checkout(r, p)
+ subprocess.run(["./bootstrap"], check=True)
+ pfx = Path.home() / "local"
+ default_configure(
+ "CFLAGS=-ggdb -O0",
+ "--enable-logging=verbose",
+ f"--with-libgnurl={pfx}",
+ f"--with-microhttpd={pfx}",
+ f"--with-exchange={pfx}",
+ f"--with-merchant={pfx}",
+ f"--with-gnunet={pfx}",
+ "--disable-doc",
+ )
+ subprocess.run(["make", "install"], check=True)
+ (p / "taler-buildstamp").touch()
+
def build_bank(r, p):
update_checkout(r, p)
@@ -333,6 +350,12 @@ def get_repos(envname):
["exchange", "libmicrohttpd"],
build_merchant,
),
+ Repo(
+ "sync",
+ "git://git.taler.net/sync",
+ ["exchange", "merchant", "libmicrohttpd"],
+ build_sync,
+ ),
Repo("bank", "git://git.taler.net/bank", [], build_bank),
Repo("landing", "git://git.taler.net/landing", [], build_landing),
Repo("donations", "git://git.taler.net/donations", [], build_donations),