Ubuntu Pastebin

Paste from kyrofa at Fri, 23 Dec 2016 19:22:05 +0000

Download as text
 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
parts:
  pgpool:
    plugin: autotools
    source: http://www.pgpool.net/download.php?f=pgpool-II-3.5.4.tar.gz
    configflags:
        - --prefix=/usr
        - --localstatedir=/etc
        - --sysconfdir=/var
        - --with-openssl
        - --enable-sequence-lock
        #- --with-pgsql=/usr
        - --with-memcached=/usr
        - --with-pam
    build-packages:
        - libssl-dev
        - libpq-dev
        - libmemcached-dev
        - libpgpool-dev
        - postgresql-server-dev-9.5
    #stage-packages:
    #    - libpgpool0
    install: |
        base = $(pwd)

        # Build pgpool-adm
        cd $base/src/sql/pgpool_adm
        make && make install DESTDIR=$SNAPCRAFT_PART_INSTALL

        # Build pgpool-recovery
        cd $base/src/sql/pgpool-recovery
        make && make install DESTDIR=$SNAPCRAFT_PART_INSTALL

        # Build pgpool-regclass
        cd $base/src/sql/pgpool-recovery
        make && make install DESTDIR=$SNAPCRAFT_PART_INSTALL
Download as text