slackbuilds

My Slackbuilds
git clone git://git.server.ky/slackcoder/slackbuilds
Log | Files | Refs | README

README (2432B)


      1 The exchange for the Taler payment system.
      2 
      3 Building this package on Slackware 15.0 requires:
      4 
      5   - Postgres 15.x or greater, slackbuilds.org has version 14.x.
      6   - Build a newer version of llvm, by setting CC=clang, and installing llvm from Slackware Current.
      7   - The pre-release version of Gnunet.
      8 
      9 Installing this package automatically creates a number of supporting system
     10 users for the exchange.  All are listed in the 'taler-exchange' user group.
     11 
     12 The taler exchange runs in a system of services, and a postgres database must
     13 be configured to service them.  The setup described here assumes postgres was
     14 installed with using 'Peer authentication' by default (omitting '-A md5' when
     15 running 'initdb' after postgres installation).
     16 
     17 Create the database and its users for system users which require it:
     18 
     19 ```
     20 sudo -u postgres -- createuser taler-exchange-httpd
     21 sudo -u postgres -- createuser taler-exchange-aggregator
     22 sudo -u postgres -- createuser taler-exchange-closer
     23 sudo -u postgres -- createuser taler-exchange-transfer
     24 sudo -u postgres -- createuser taler-exchange-wirewatch
     25 sudo -u postgres -- createdb taler-exchange --owner taler-exchange-httpd
     26 ```
     27 
     28 Initialize the database schema, which should also be done after upgrades:
     29 
     30 ```
     31 sudo -u taler-exchange-httpd -- taler-exchange-dbinit
     32 ```
     33 
     34 Grant the user access to their tables in the database:
     35 
     36 ```
     37 sudo -u taler-exchange-httpd psql taler-exchange << EOF
     38   GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA exchange TO "taler-exchange-aggregator";
     39   GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA exchange TO "taler-exchange-closer";
     40   GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA exchange TO "taler-exchange-transfer";
     41   GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA exchange TO "taler-exchange-wirewatch";
     42   GRANT USAGE ON ALL SEQUENCES IN SCHEMA exchange TO "taler-exchange-aggregator";
     43   GRANT USAGE ON ALL SEQUENCES IN SCHEMA exchange TO "taler-exchange-closer";
     44   GRANT USAGE ON ALL SEQUENCES IN SCHEMA exchange TO "taler-exchange-transfer";
     45   GRANT USAGE ON ALL SEQUENCES IN SCHEMA exchange TO "taler-exchange-wirewatch";
     46 EOF
     47 ```
     48 
     49 To have the taler system start and stop with your host, add to /etc/rc.d/rc.local:
     50 
     51   if [ -x /etc/rc.d/rc.taler-exchange ]; then
     52     /etc/rc.d/rc.taler-exchange start
     53   fi
     54 
     55 And to /etc/rc.d/rc.local_shutdown (creating if needed):
     56 
     57   if [ -x /etc/rc.d/rc.taler-exchange ]; then
     58     /etc/rc.d/rc.taler-exchange stop
     59   fi